EdColeman commented on code in PR #3161:
URL: https://github.com/apache/accumulo/pull/3161#discussion_r1105005768


##########
server/base/src/main/java/org/apache/accumulo/server/compaction/FileCompactor.java:
##########
@@ -429,7 +429,13 @@ private void compactLocalityGroup(String lgName, 
Set<ByteSequence> columnFamilie
             } else {
               metrics.incrementMajCPause();
             }
-            Thread.sleep(500);
+            try {
+              Thread.sleep(500);
+            } catch (InterruptedException e) {
+              Thread.interrupted();

Review Comment:
   Why `Thread.interrupted();` to clear the interrupt status flag?  I think 
just catching the InterruptException has the same effect.
   
   The interrupt flag can be (re)set to show the interrupt occurred with 
`Thread.currentThread().interrupt()`



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