You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 88f8532
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/source/dataregion/realtime/PipeRealtimeDataRegionTsFileSource.java
+24-7Lines changed: 24 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@
42
42
importjava.util.ArrayDeque;
43
43
importjava.util.Arrays;
44
44
importjava.util.Deque;
45
+
importjava.util.Iterator;
45
46
importjava.util.PriorityQueue;
46
47
importjava.util.Queue;
47
48
@@ -177,7 +178,7 @@ public void close() throws Exception {
177
178
publicEventsupply() {
178
179
if (isRegionLevelDowngradingEnabled) {
179
180
synchronized (tsFileOrderingLock) {
180
-
if (isClosed.get() || inFlightTsFileEpoch != null) {
181
+
if (isClosed.get()) {
181
182
returnnull;
182
183
}
183
184
@@ -191,21 +192,37 @@ public Event supply() {
191
192
bufferedEvents.offerLast(pendingEvent);
192
193
}
193
194
}
194
-
returnsupplyInternal();
195
+
// A heartbeat may trigger retry of the in-flight TsFile at the sink. Keep files and other
196
+
// events ordered behind it, but do not block those retries while waiting for its commit.
0 commit comments