coderzc commented on code in PR #19577:
URL: https://github.com/apache/pulsar/pull/19577#discussion_r1119527328


##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/delayed/bucket/Bucket.java:
##########
@@ -54,17 +54,18 @@ abstract class Bucket {
 
     int lastSegmentEntryId;
 
-    int currentSegmentEntryId;
+    volatile int currentSegmentEntryId;
 
-    long snapshotLength;
+    volatile long snapshotLength;
 
     private volatile Long bucketId;
 
     private volatile CompletableFuture<Long> snapshotCreateFuture;
 
 
-    Bucket(ManagedCursor cursor, BucketSnapshotStorage storage, long 
startLedgerId, long endLedgerId) {
-        this(cursor, storage, startLedgerId, endLedgerId, new HashMap<>(), -1, 
-1, 0, 0, null, null);
+    Bucket(PersistentDispatcherMultipleConsumers dispatcher,

Review Comment:
   OK, I improve it.



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