codelipenghui commented on a change in pull request #10162:
URL: https://github.com/apache/pulsar/pull/10162#discussion_r615484278



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/transaction/timeout/TransactionTimeoutTrackerImpl.java
##########
@@ -40,11 +40,10 @@
     private final TripleLongPriorityQueue priorityQueue = new 
TripleLongPriorityQueue();
     private final long tickTimeMillis;
     private final Clock clock;
-    private Timeout currentTimeout;
+    private volatile Timeout currentTimeout;

Review comment:
       Do we need `volatile` here? Seem it is protected by the `synchronized`.




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

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


Reply via email to