mynameborat commented on a change in pull request #1450:
URL: https://github.com/apache/samza/pull/1450#discussion_r538972316



##########
File path: 
samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java
##########
@@ -260,8 +267,9 @@ public void run() {
       MetadataResourceUtil metadataResourceUtil = new 
MetadataResourceUtil(jobModel, this.metrics, config);
       metadataResourceUtil.createResources();
 
-      // fan out the startpoints if startpoints is enabled
-      if (new JobConfig(config).getStartpointEnabled()) {
+      // fan out the startpoints if startpoints is enabled and if the metadata 
changed across attempts.
+      // the metadata changed should be false and only get evaluated if job 
coordinator high availability is enabled.
+      if (new JobConfig(config).getStartpointEnabled() && 
!metadataChangedAcrossAttempts) {

Review comment:
       Thanks for pointing this out. I intended to handle it as part of this PR.
   Fixed it and added unit tests.




----------------------------------------------------------------
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


Reply via email to