keith-turner commented on code in PR #4667:
URL: https://github.com/apache/accumulo/pull/4667#discussion_r1639944046


##########
server/compactor/src/main/java/org/apache/accumulo/compactor/Compactor.java:
##########
@@ -515,13 +518,15 @@ protected FileCompactorRunnable createCompactionJob(final 
TExternalCompactionJob
 
     return new FileCompactorRunnable() {
 
-      private AtomicReference<FileCompactor> compactor = new 
AtomicReference<>();
+      private final AtomicReference<FileCompactor> compactor = new 
AtomicReference<>();
+      private long startTimeNanos = -1;

Review Comment:
   I think multiple threads are reading/writing this.  Should probably make it 
volatile or use AtomicLong



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