-
Notifications
You must be signed in to change notification settings - Fork 333
SAMZA-1926: Fix standalone configurations in configuration table. #675
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@xinyuiscool @prateekm Please take a look when you get a chance. |
samza-core/src/main/java/org/apache/samza/config/JobCoordinatorConfig.java
Outdated
Show resolved
Hide resolved
|
|
||
| public String getJobCoordinationUtilsFactoryClassName() { | ||
| String className = get(JOB_COORDINATION_UTILS_FACTORY, DEFAULT_COORDINATION_UTILS_FACTORY); | ||
| String coordinatorFactory = get(JOB_COORDINATOR_FACTORY, DEFAULT_COORDINATOR_UTILS_FACTORY); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, typo. Fixed.
samza-core/src/main/java/org/apache/samza/config/JobCoordinatorConfig.java
Show resolved
Hide resolved
shanthoosh
left a comment
There was a problem hiding this 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.
samza-core/src/main/java/org/apache/samza/config/JobCoordinatorConfig.java
Show resolved
Hide resolved
|
|
||
| public String getJobCoordinationUtilsFactoryClassName() { | ||
| String className = get(JOB_COORDINATION_UTILS_FACTORY, DEFAULT_COORDINATION_UTILS_FACTORY); | ||
| String coordinatorFactory = get(JOB_COORDINATOR_FACTORY, DEFAULT_COORDINATOR_UTILS_FACTORY); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, typo. Fixed.
samza-core/src/main/java/org/apache/samza/config/JobCoordinatorConfig.java
Outdated
Show resolved
Hide resolved
* 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.
samza-core/src/main/java/org/apache/samza/config/JobCoordinatorConfig.java
Outdated
Show resolved
Hide resolved
prateekm
left a comment
There was a problem hiding this 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.
|
@vjagadish1989 Do these changes look reasonable? |
vjagadish1989
left a comment
There was a problem hiding this 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> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
merged and submitted. @prateekm and @shanthoosh. |
Changes:
coordination.utils.factoryconfiguration from the table(Infer that based upon job.coordinator.factory configuration). Remove the definition ofcoordination.utils.factoryfrom the configuration in unit tests.job.coordinator.factorytoZkJobCoordinatorFactoryif it is not defined by the user.