srkukarni closed pull request #2427: Fix InputTopic Submission for Creating Sink
URL: https://github.com/apache/incubator-pulsar/pull/2427
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/validation/ValidatorImpls.java
b/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/validation/ValidatorImpls.java
index 33a2432cf8..cbeb970f77 100644
---
a/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/validation/ValidatorImpls.java
+++
b/pulsar-functions/utils/src/main/java/org/apache/pulsar/functions/utils/validation/ValidatorImpls.java
@@ -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());
}
}
@@ -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());
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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