Optimize HelixTaskExecutor reset() in event of shutdown (#2183)
authorQi (Quincy) Qu <qqu@linkedin.com>
Thu, 11 Aug 2022 17:57:59 +0000 (10:57 -0700)
committerGitHub <noreply@github.com>
Thu, 11 Aug 2022 17:57:59 +0000 (10:57 -0700)
commit3ea5d4a000d545381b1f280e17fa5ce3608607e2
tree1e157ebaac4442e162e6703a7915ee84e46752a1
parent11846ccbfe30820a4403b90e6b115c9cdb56416a
Optimize HelixTaskExecutor reset() in event of shutdown (#2183)

Optimize HelixTaskExecutor reset() in event of shutdown

Some instances maybe reset() multiple times during participant shutdown.
This commit refactor logic in HelixTaskExecutor to reduce unnecessary
method call.
helix-core/src/main/java/org/apache/helix/messaging/handling/HelixTaskExecutor.java
helix-core/src/main/java/org/apache/helix/participant/HelixStateMachineEngine.java
helix-core/src/test/java/org/apache/helix/messaging/handling/TestHelixTaskExecutor.java