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
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/SubscriptionPrefetchingQueue.java
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -223,6 +223,10 @@ public SubscriptionEvent poll(final String consumerId) {
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/SubscriptionPrefetchingQueueStates.java
+25-7Lines changed: 25 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -106,12 +106,12 @@ public boolean shouldPrefetch() {
106
106
}
107
107
108
108
// 1.3. local event count
109
-
if (hasTooManyPrefetchedLocalEvent()) {
109
+
if (hasTooManyRetainedLocalEvent()) {
110
110
returnfalse;
111
111
}
112
112
113
113
// 1.4. global event count
114
-
if (hasTooManyPrefetchedGlobalEvent()) {
114
+
if (hasTooManyRetainedGlobalEvent()) {
115
115
returnfalse;
116
116
}
117
117
@@ -132,24 +132,40 @@ public boolean shouldPrefetch() {
Copy file name to clipboardExpand all lines: iotdb-core/datanode/src/main/java/org/apache/iotdb/db/subscription/broker/consensus/ConsensusPrefetchingQueue.java
+52-12Lines changed: 52 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -586,8 +586,11 @@ public SubscriptionEvent poll(final String consumerId, final RegionProgress regi
0 commit comments