sborya commented on a change in pull request #1213: SAMZA-2305: Stream
processor should ensure previous container is stopped during a rebalance
URL: https://github.com/apache/samza/pull/1213#discussion_r347641587
##########
File path:
samza-core/src/main/java/org/apache/samza/processor/StreamProcessor.java
##########
@@ -461,8 +480,25 @@ public void onJobModelExpired() {
} else {
LOGGER.info("Container: {} shutdown completed for stream
processor: {}.", container, processorId);
}
+ } else if (state == State.IN_REBALANCE) {
+ if (container != null) {
+ boolean hasContainerShutdown =
interruptContainerAndShutdownExecutorService();
+ if (!hasContainerShutdown) {
Review comment:
Please update the State Machine at the top.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services