dnishimura commented on a change in pull request #990: SAMZA-2161: Move
ChangelogPartitionManager and CoordinatorStream ConfigReader to MetadataStore.
URL: https://github.com/apache/samza/pull/990#discussion_r274063698
##########
File path:
samza-core/src/main/java/org/apache/samza/coordinator/stream/messages/SetChangelogMapping.java
##########
@@ -60,6 +62,6 @@ public String getTaskName() {
public Integer getPartition() {
String changelogPartition = getMessageValue(CHANGELOG_VALUE_KEY);
- return (changelogPartition != null) ? Integer.parseInt(changelogPartition)
: null;
+ return StringUtils.isBlank(changelogPartition) ?
Integer.parseInt(changelogPartition) : null;
Review comment:
Think you selected the wrong autocomplete. Should be
`.isNotBlank(changelogPartition)`.
----------------------------------------------------------------
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]
With regards,
Apache Git Services