RobertIndie commented on code in PR #21143:
URL: https://github.com/apache/pulsar/pull/21143#discussion_r1324342769
##########
pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/BaseContext.java:
##########
@@ -217,4 +217,10 @@ default ClientBuilder getPulsarClientBuilder() {
throw new UnsupportedOperationException("not implemented");
}
+ /**
+ * Terminate the function instance with a fatal exception.
+ *
+ * @param t the fatal exception to be raised
+ */
+ void fatal(Throwable t);
Review Comment:
Yes, it's designed that way. The fatal method does not need to crash the
current thread.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]