Technoboy- commented on code in PR #21423:
URL: https://github.com/apache/pulsar/pull/21423#discussion_r1432646120


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentDispatcherMultipleConsumers.java:
##########
@@ -123,6 +123,13 @@ public class PersistentDispatcherMultipleConsumers extends 
AbstractDispatcherMul
     protected final ExecutorService dispatchMessagesThread;
     private final SharedConsumerAssignor assignor;
 
+    /**
+     * Delivery was paused at least once in the earlier time, due to the 
cursor data can not fully persist.
+     * Note: do not use this field to confirm whether the delivery should be 
paused,
+     *       please call {@link #shouldPauseOnAckStatePersist}.
+     */
+    private volatile boolean pausedDueToCursorDataCanNotFullyPersist = false;

Review Comment:
   And also I think the `pausedDueToCursorDataCanNotFullyPersist`  should be 
named something like `BLOCKED_DISPATCHER_ON_CURSOR_DATA_NOT_FULLY_PERSIST`
   because we have defined `BLOCKED_DISPATCHER_ON_UNACKMSG`



-- 
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