Skip to content

Conversation

@shanthoosh
Copy link
Contributor

Changes:

  • Fix the default value of debounce time configuration.
  • Remove the coordination.utils.factory configuration from the table(Infer that based upon job.coordinator.factory configuration). Remove the definition of coordination.utils.factory from the configuration in unit tests.
  • Default the configuration job.coordinator.factory to ZkJobCoordinatorFactory if it is not defined by the user.

@shanthoosh
Copy link
Contributor Author

@xinyuiscool @prateekm Please take a look when you get a chance.


public String getJobCoordinationUtilsFactoryClassName() {
String className = get(JOB_COORDINATION_UTILS_FACTORY, DEFAULT_COORDINATION_UTILS_FACTORY);
String coordinatorFactory = get(JOB_COORDINATOR_FACTORY, DEFAULT_COORDINATOR_UTILS_FACTORY);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why default coordinator utils factory? Did you mean default coordinator factory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, typo. Fixed.

Copy link
Contributor Author

@shanthoosh shanthoosh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review.


public String getJobCoordinationUtilsFactoryClassName() {
String className = get(JOB_COORDINATION_UTILS_FACTORY, DEFAULT_COORDINATION_UTILS_FACTORY);
String coordinatorFactory = get(JOB_COORDINATOR_FACTORY, DEFAULT_COORDINATOR_UTILS_FACTORY);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, typo. Fixed.

* Fix the default value of debounce time configuration.
* Remove the coordination utils configuration from the table(Infer that based upon job.coordinator.factory configuration).
  Remove the defintion of coordination utils factory in configuration from unit-tests.
* Default job.coordinator.factory to ZkJobCoordinatorFactory if it is not defined by the user.
Copy link
Contributor

@prateekm prateekm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final suggestion, otherwise LGTM.
@dxichen FYI for config docs update.

@prateekm
Copy link
Contributor

prateekm commented Oct 4, 2018

@vjagadish1989 Do these changes look reasonable?

Copy link
Contributor

@vjagadish1989 vjagadish1989 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment, otherwise good to merge

<td class="description">
Class to use for job coordination. Currently available values are:
The fully-qualified name of the Java class which determines the factory class which will build the JobCoordinator.
The default configuration value if the property is not present is <code>job.coordinator.factory=org.apache.samza.zk.ZkJobCoordinatorFactory</code>.<br>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"The default configuration value if the property is not present is job.coordinator.factory=org.apache.samza.zk.ZkJobCoordinatorFactory" -> recommend deleting this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@asfgit asfgit closed this in 531b35e Oct 5, 2018
@vjagadish1989
Copy link
Contributor

merged and submitted. @prateekm and @shanthoosh.

asfgit pushed a commit that referenced this pull request Oct 8, 2018
Due to interleaved ordering of the PRs (#675 and #673), FaultInjectionTest is broken.

Author: bharathkk <codin.martial@gmail.com>

Reviewers: Shanthoosh Venkatraman <svenkatr@linkedin.com>

Closes #700 from bharathkk/fix-trunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants