提交 2a528712 编写于 作者: G Gyula Fora

[streaming] Proper exception propagation for udf exception + collector bugfix

上级 e038629e
......@@ -187,7 +187,7 @@ public class StreamConfig implements Serializable {
public void setOutputSelectors(List<OutputSelector<?>> outputSelector) {
try {
if (outputSelector != null) {
if (outputSelector != null && !outputSelector.isEmpty()) {
setDirectedEmit(true);
config.setBytes(OUTPUT_SELECTOR,
SerializationUtils.serialize((Serializable) outputSelector));
......
......@@ -128,6 +128,7 @@ public abstract class StreamInvokable<IN, OUT> implements Serializable {
LOG.error("Calling user function failed due to: {}",
StringUtils.stringifyException(e));
}
throw new RuntimeException(e);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册