ctubbsii commented on code in PR #2824:
URL: https://github.com/apache/accumulo/pull/2824#discussion_r929200619


##########
server/base/src/main/java/org/apache/accumulo/server/GarbageCollectionLogger.java:
##########
@@ -35,7 +36,7 @@ public class GarbageCollectionLogger {
   private final HashMap<String,Long> prevGcTime = new HashMap<>();
   private long lastMemorySize = 0;
   private long gcTimeIncreasedCount = 0;
-  private static long lastMemoryCheckTime = 0;
+  private static AtomicLong lastMemoryCheckTime = new AtomicLong(0);

Review Comment:
   This should be final.
   
   ```suggestion
     private static final AtomicLong lastMemoryCheckTime = new AtomicLong(0);
   ```



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