dlmarion opened a new issue, #5393:
URL: https://github.com/apache/accumulo/issues/5393

   **Is your feature request related to a problem? Please describe.**
   When a user shuts down the cluster it sets the Manager goal state
   to CLEAN_STOP, which will set the Manager to SAFE_MODE, which
   will set user table tablets goal state to UNASSIGNED. The Manager
   will then start to unload tablets for the user tables by calling the
   UnloadTabletHandler on the TabletServer, which in turn calls
   Tablet.close, which calls CompactableImpl.close. The following
   code block will wait for all internal major compactions to
   complete.
   
   
https://github.com/apache/accumulo/blob/9037d6112aced7c312a6cad31299809d83ae16e8/server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/CompactableImpl.java#L1602-L1624
   
   In the case of a tablet unload due to migration, waiting for the
   major compactions to complete might make sense as you may
   not want to lose the time spent on the compaction. When shutting
   down the system, you might not care about that, and just need
   to shut the system down now.
   
   **Describe the solution you'd like**
   When shutting down, don't wait for in-progress major compactions
   to complete. Cancel them instead.
   
   **Describe alternatives you've considered**
   The only option when in this state and needing to shutdown the
   cluster immediately is to kill the processes and incur the cost
   of recovery.
   


-- 
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.apache.org

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

Reply via email to