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 2019/08/22 00:54:48 UTC
[GitHub] [pulsar] jerrypeng opened a new pull request #5007: Need to
reinitialize certain components for externally managed runtimes when moving
functions
jerrypeng opened a new pull request #5007: Need to reinitialize certain components for externally managed runtimes when moving functions
URL: https://github.com/apache/pulsar/pull/5007
### Motivation
In Pulsar Functions, for externally managed runtimes e.g. KubernetesRuntime, certain components such as GRPC channels need to be reinitialized when moving functions from one machine to another. If this is not done then exception like this
```
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Not alive
at org.apache.pulsar.functions.worker.rest.api.ComponentImpl$GetStatus.getComponentInstanceStatus(ComponentImpl.java:164) ~[org.apache.pulsar-pulsar-functions-worker-2.4.0-streamlio-32.jar:2.4.0-streamlio-32]
at org.apache.pulsar.functions.worker.rest.api.FunctionsImpl$GetFunctionStatus.getStatusExternal(FunctionsImpl.java:556) ~[org.apache.pulsar-pulsar-functions-worker-2.4.0-streamlio-32.jar:2.4.0-streamlio-32]
at org.apache.pulsar.functions.worker.rest.api.FunctionsImpl$GetFunctionStatus.getStatusExternal(FunctionsImpl.java:446) ~[org.apache.pulsar-pulsar-functions-worker-2.4.0-streamlio-32.jar:2.4.0-streamlio-32]
at org.apache.pulsar.functions.worker.rest.api.ComponentImpl$GetStatus.getComponentStatus(ComponentImpl.java:220)
```
will keep on being thrown when getting metrics or status of the function
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services