lakshmi-manasa-g commented on a change in pull request #938: SAMZA-1531: Support run.id in standalone for batch processing. URL: https://github.com/apache/samza/pull/938#discussion_r264494011
########## File path: samza-core/src/main/java/org/apache/samza/runtime/LocalApplicationRunner.java ########## @@ -280,4 +376,68 @@ private void setApplicationFinalStatus() { } } } + + + /** + * Defines a specific implementation of {@link DistributedDataStateListener} for local {@link DistributedDataAccess} + */ + private final class LocalDistributedDataStateListener implements DistributedDataStateListener { + + /** + * upon reconnect check if global runid differs from local runid + */ + @Override + public void handleReconnect() { + if(coordinationUtils == null || runIdLock == null || runIdAccess == null ) { + LOG.warn("Stopping processor {} and shutting down due to failure reading global runid after reconnect", uid); Review comment: actually meant to say it could not read global runid. HOwever, this code is now moved out of LAR to make it cleaner ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services