Skip to content

Commit

Permalink
Update server/tserver/src/main/java/org/apache/accumulo/tserver/table…
Browse files Browse the repository at this point in the history
…t/Tablet.java

Co-authored-by: Keith Turner <[email protected]>
  • Loading branch information
dlmarion and keith-turner authored Nov 2, 2023
1 parent c9cd274 commit 4df1c9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ public void setLastAccessTime() {
this.lastAccessTime = System.nanoTime();
}

public boolean isInUse() {
public synchronized boolean isInUse() {
// We can't use the lastAccessTime to determine if a Tablet is in use
// because it is only set when TabletServer.getOnlineTablet is called
// **and** that method is not called in every case where the Tablet
Expand Down

0 comments on commit 4df1c9c

Please sign in to comment.