shanthoosh 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_r274054912
##########
File path:
samza-core/src/main/java/org/apache/samza/coordinator/stream/messages/SetChangelogMapping.java
##########
@@ -58,7 +58,8 @@ public String getTaskName() {
return getKey();
}
- public int getPartition() {
- return Integer.parseInt(getMessageValue(CHANGELOG_VALUE_KEY));
+ public Integer getPartition() {
+ String changelogPartition = getMessageValue(CHANGELOG_VALUE_KEY);
+ return (changelogPartition != null) ? Integer.parseInt(changelogPartition)
: null;
Review comment:
Done.
----------------------------------------------------------------
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