ibessonov commented on code in PR #7512:
URL: https://github.com/apache/ignite-3/pull/7512#discussion_r2763122733


##########
modules/raft/src/main/java/org/apache/ignite/raft/jraft/core/NodeImpl.java:
##########
@@ -315,6 +322,21 @@ private void reset() {
             }
             this.tasks.clear();
         }
+
+        private void decrementApplyQueueByteSize() {
+            long maxQueueSize = 
NodeImpl.this.raftOptions.getMaxApplyQueueByteSize();
+
+            if (maxQueueSize > 0) {
+                long totalSize = 0;
+                for (LogEntryAndClosure task : tasks) {
+                    ByteBuffer data = task.entry.getData();
+                    totalSize += data.remaining();
+                }

Review Comment:
   I guess I misinterpreted this code, these are not **all** tasks, but only 
those that we're executing



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to