This is an automated email from the ASF dual-hosted git repository.
sanjeevrk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 4544f6e add function-name reference with function failure log (#2246)
4544f6e is described below
commit 4544f6eb3706e21c8953210c256eb22445a1a440
Author: Rajan Dhabalia <[email protected]>
AuthorDate: Thu Jul 26 23:36:06 2018 -0700
add function-name reference with function failure log (#2246)
---
.../main/java/org/apache/pulsar/functions/runtime/RuntimeSpawner.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/RuntimeSpawner.java
b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/RuntimeSpawner.java
index 8329ed7..6abb5fb 100644
---
a/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/RuntimeSpawner.java
+++
b/pulsar-functions/runtime/src/main/java/org/apache/pulsar/functions/runtime/RuntimeSpawner.java
@@ -82,7 +82,9 @@ public class RuntimeSpawner implements AutoCloseable {
@Override
public void run() {
if (!runtime.isAlive()) {
- log.error("Function Container is dead with exception",
runtime.getDeathException());
+ log.error("[{}-{}] Function Container is dead with
exception",
+ instanceConfig.getFunctionDetails().getName(),
instanceConfig.getInstanceId(),
+ runtime.getDeathException());
log.error("Restarting...");
// Just for the sake of sanity, just destroy the
runtime
runtime.stop();