dcapwell commented on code in PR #3493:
URL: https://github.com/apache/cassandra/pull/3493#discussion_r1731834677


##########
src/java/org/apache/cassandra/service/accord/AccordJournal.java:
##########
@@ -625,12 +630,18 @@ private static int msVersion(int version)
      * Handling topology changes / epoch shift
      */
 
-    private final class DelayedRequestProcessor extends Thread
+    private class DelayedRequestProcessor implements Interruptible.Task
     {
         private final ManyToOneConcurrentLinkedQueue<RequestContext> 
delayedRequests = new ManyToOneConcurrentLinkedQueue<>();
         private final LongArrayList waitForEpochs = new LongArrayList();
         private final Long2ObjectHashMap<List<RequestContext>> byEpoch = new 
Long2ObjectHashMap<>();
         private final AtomicReference<Condition> signal = new 
AtomicReference<>(Condition.newOneTimeCondition());
+        private Interruptible executor;

Review Comment:
   `volatile`?  started in one thread and closed in another thread *might not* 
have visibility.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to