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


##########
server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java:
##########
@@ -1597,4 +1597,12 @@ public void setLastAccessTime() {
     this.lastAccessTime = System.nanoTime();
   }
 
+  public boolean isInUse() {

Review Comment:
   The activeScan set is a hashset and writesInProgress is not volatile.  To go 
with the rest of the tablet code, need to sync to ensure getting latest data.
   
   ```suggestion
     public synchronized boolean isInUse() {
   ```



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