dlmarion commented on code in PR #4558:
URL: https://github.com/apache/accumulo/pull/4558#discussion_r1613492183


##########
server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/Tablet.java:
##########
@@ -905,6 +909,19 @@ public void close(boolean saveState) throws IOException {
   void initiateClose(boolean saveState) {
     log.trace("initiateClose(saveState={}) {}", saveState, getExtent());
 
+    synchronized (this) {
+      if (closeState == CloseState.OPEN) {
+        closeRequestTime = System.nanoTime();
+      } else if (closeRequestTime != 0) {
+        long runningTime = Duration.ofNanos(System.nanoTime() - 
closeRequestTime).toMinutes();
+        if (runningTime >= 15) {
+          DEDUPE_LOGGER.info("Tablet {} close requested again, but has been 
closing for {} minutes",
+              this.extent, runningTime);
+        }
+      }
+      closeState = CloseState.REQUESTED;

Review Comment:
   Change made in 3fa4f87



-- 
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: notifications-unsubscr...@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to