andyhuangdev opened a new pull request, #11936:
URL: https://github.com/apache/ozone/pull/11936

   ## What changes were proposed in this pull request?
   
   Recon currently stops its task controller and OM metadata manager before 
shutting down the OM DB sync scheduler. An in-progress sync can therefore 
access a closed DB or install a new snapshot after the metadata manager has 
stopped, leaving resources unclosed.
   
   This patch calls the existing stopSyncDataFromOMThread() before stopping the 
task controller and metadata manager, allowing the scheduler to terminate using 
the existing graceful shutdown and interruption timeouts.
   
   ## What is the link to the Apache JIRA
   
   [HDDS-17705](https://issues.apache.org/jira/browse/HDDS-17705)
   
   ## How was this patch tested?
   
   Added a regression test that uses latches to hold a scheduler task in 
progress and verifies that shutdown waits before stopping the task controller 
and metadata manager. The test failed before the fix and passed afterward.
   
   Validation:
   
   - All 17 tests in TestOzoneManagerServiceProviderImpl passed.
   - ./hadoop-ozone/dev-support/checks/checkstyle.sh passed.
   - git diff --check passed.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to