Skip to content

Commit

Permalink
Fix InputTopic Submission for Creating Sink (apache#2427)
Browse files Browse the repository at this point in the history
* Fix Spelling mistake in error message

* Fix InputTopic Submission for Creating Sink
  • Loading branch information
aahmed-se authored and srkukarni committed Aug 23, 2018
1 parent 001445c commit 4694e6e
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ private static void doCommonChecks(FunctionConfig functionConfig) {
if (functionConfig.getTimeoutMs() != null
&& functionConfig.getProcessingGuarantees() != null
&& functionConfig.getProcessingGuarantees() != FunctionConfig.ProcessingGuarantees.ATLEAST_ONCE) {
throw new IllegalArgumentException("Message timeout can only be specifed with processing guarantee is "
throw new IllegalArgumentException("Message timeout can only be specified with processing guarantee is "
+ FunctionConfig.ProcessingGuarantees.ATLEAST_ONCE.name());
}
}
Expand Down Expand Up @@ -817,6 +817,9 @@ public void validateField(String name, Object o) {

private static Collection<String> collectAllInputTopics(SinkConfig sinkConfig) {
List<String> retval = new LinkedList<>();
if (sinkConfig.getInputs() != null) {
retval.addAll(sinkConfig.getInputs());
}
if (sinkConfig.getTopicToSerdeClassName() != null) {
retval.addAll(sinkConfig.getTopicToSerdeClassName().keySet());
}
Expand Down

0 comments on commit 4694e6e

Please sign in to comment.