From 4df1c9cbed7d035b0b2a6410bbd00a4ca15b0fe1 Mon Sep 17 00:00:00 2001 From: Dave Marion Date: Thu, 2 Nov 2023 11:41:14 -0400 Subject: [PATCH] Update server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java Co-authored-by: Keith Turner --- .../main/java/org/apache/accumulo/tserver/tablet/Tablet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java b/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java index ff50e60dc5b..e74a7030956 100644 --- a/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java +++ b/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java @@ -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