chungen0126 commented on code in PR #11936:
URL: https://github.com/apache/ozone/pull/11936#discussion_r4511360281
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/spi/impl/OzoneManagerServiceProviderImpl.java:
##########
@@ -393,9 +393,9 @@ public boolean triggerSyncDataFromOMImmediately() {
@Override
public void stop() throws Exception {
LOG.info("Stopping Ozone Manager Service Provider.");
+ stopSyncDataFromOMThread();
Review Comment:
Could `stop()` call `scheduler.shutdownNow()` and then `awaitTermination()`
instead? `stopSyncDataFromOMThread()` starts with `shutdown()`, so an
in-progress OM DB sync is not interrupted for up to 30s, which delays Recon
shutdown.
--
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]