You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/04/27 18:22:01 UTC
[GitHub] jerrypeng commented on a change in pull request #1671: Better
Runtime failure mgmt
jerrypeng commented on a change in pull request #1671: Better Runtime failure mgmt
URL: https://github.com/apache/incubator-pulsar/pull/1671#discussion_r184768993
##########
File path: pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/instance/JavaInstanceRunnable.java
##########
@@ -229,10 +227,7 @@ public void run() {
}
} catch (Exception ex) {
log.error("Uncaught exception in Java Instance", ex);
- if (running.get()) {
Review comment:
why are we getting rid of this? The reason I had this in place is because when the function is killed, a interrupt exception will be thrown, if the function has already been "stop" then we ignore and let the thread die. If this check is not in place then the JavaInstanceRunnable thread will be restarted by the ThreadRuntime which is pointless and we don't want that behavior
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services