arunk-kumar commented on PR #6621: URL: https://github.com/apache/hive/pull/6621#issuecomment-5044706178
Thanks @dengzhhu653 — both addressed in the latest commit: - Switched the default `abortAction` from `System.exit(1)` to `ExitUtil.terminate(1)`, following the HIVE-29056 pattern. - Abort handler now closes the electors before invoking `abortAction`, so the mutex is released promptly. `close()` iterates a snapshot copy of `leaderElections` to avoid mid-iteration mutation as you suggested. `TestLeaderElection` still passes: `Tests run: 4, Failures: 0, Errors: 0, Skipped: 0`. -- 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]
