mynameborat commented on a change in pull request #1450:
URL: https://github.com/apache/samza/pull/1450#discussion_r539474378
##########
File path:
samza-core/src/main/java/org/apache/samza/clustermanager/ClusterBasedJobCoordinator.java
##########
@@ -267,9 +267,12 @@ public void run() {
MetadataResourceUtil metadataResourceUtil = new
MetadataResourceUtil(jobModel, this.metrics, config);
metadataResourceUtil.createResources();
- // 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) {
+ /*
+ * We fan out startpoint if and only if
+ * 1. Startpoint is enabled in configuration
+ * 2. If AM HA is enabled, fan out only if metadata changed
Review comment:
yeah. fanout messages are read as part of the container initialization
within OffsetManager. Container's don't read them after the it has started. So
it is guaranteed that the fanout message for a task will not be seen by an
existing container (which has the task assigned to).
----------------------------------------------------------------
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]