You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "flowchartsman (via GitHub)" <gi...@apache.org> on 2023/05/25 19:20:58 UTC
[GitHub] [pulsar] flowchartsman opened a new issue, #20403: [Bug] Unable to communicate with Go Pulsar functions using the Kubernetes runtime.
flowchartsman opened a new issue, #20403:
URL: https://github.com/apache/pulsar/issues/20403
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.
### Version
When setting up functions to run as pods in the Kubernetes runtime, exported metrics work fine, but we are unable to get results from `pulsar-admin functions get status`:
```
pulsar-admin functions status --tenant public --namespace default --name function_test_10
{
"numInstances" : 1,
"numRunning" : 0,
"instances" : [ {
"instanceId" : 0,
"status" : {
"running" : false,
"error" : "UNAVAILABLE: io exception",
"numRestarts" : 0,
"numReceived" : 0,
"numSuccessfullyProcessed" : 0,
"numUserExceptions" : 0,
"latestUserExceptions" : [ ],
"numSystemExceptions" : 0,
"latestSystemExceptions" : [ ],
"averageLatency" : 0.0,
"lastInvocationTime" : 0,
"workerId" : "pulsar-function-0"
}
} ]
}
```
A look at the logs gives a clue as to why:
```
2023/05/24 13:32:33.266 log.go:47: [info] Serving InstanceCommunication on port 44491 @flow_id=function_test_10
```
### Minimal reproduce step
1. Deploy a go function using the kubernetes function runtime.
2. pulsar-admin functions status --tenant <tenant> --namespace <namespace> --name <function name>
### What did you expect to see?
Function status.
### What did you see instead?
` "error" : "UNAVAILABLE: io exception",`
### Anything else?
I believe this happens because the instance config is falling back to the default of a random port, instead of setting the static `grpcPort` of the `KubernetesRuntimeFactory`. Python functions get the `--port` argument that overrides this, however Go functions use a serialized instanceconfig instead, and it is not correctly set there.
I have a PR ready to address this.
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
--
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: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] lhotari closed issue #20403: [Bug] Unable to communicate with Go Pulsar functions using the Kubernetes runtime.
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
lhotari closed issue #20403: [Bug] Unable to communicate with Go Pulsar functions using the Kubernetes runtime.
URL: https://github.com/apache/pulsar/issues/20403
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org