Skip to content

Commit

Permalink
SAMZA-1796: PassthroughJobCoordinator doesn't create changelog streams
Browse files Browse the repository at this point in the history
Currently only the ClusterBasedJobCoordinator and ZkJobCoordinator are creating changelog streams. The Passthrough one should also do it.

Author: xinyuiscool <xiliu@linkedin.com>

Reviewers: Bharath K <bharathkk@gmail.com>

Closes #595 from xinyuiscool/SAMZA-1796
  • Loading branch information
xinyuiscool committed Aug 1, 2018
1 parent 1d2f054 commit 5587ebf
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -29,6 +29,7 @@
import org.apache.samza.job.model.JobModel;
import org.apache.samza.coordinator.JobCoordinatorListener;
import org.apache.samza.runtime.ProcessorIdGenerator;
import org.apache.samza.storage.ChangelogStreamManager;
import org.apache.samza.system.StreamMetadataCache;
import org.apache.samza.system.SystemAdmins;
import org.apache.samza.util.*;
Expand Down Expand Up @@ -81,6 +82,8 @@ public void start() {
if (checkpointManager != null) {
checkpointManager.createResources();
}

ChangelogStreamManager.createChangelogStreams(config, jobModel.maxChangeLogStreamPartitions);
} catch (Exception e) {
LOGGER.error("Exception while trying to getJobModel.", e);
if (coordinatorListener != null) {
Expand Down

0 comments on commit 5587ebf

Please sign in to comment.