flowchartsman opened a new issue #12314:
URL: https://github.com/apache/pulsar/issues/12314
**Describe the bug**
ProcessedSuccessfully metric is counted twice.
**To Reproduce**
Observe go function:
```
$ pulsarctl functions status --fqfn tenant/namespace/functionName
{
"numInstances": 1,
"numRunning": 1,
"instances": [
{
"instanceId": 0,
"status": {
"running": true,
"error": "",
"numRestarts": 0,
"numReceived": 39262,
"numSuccessfullyProcessed": 78524,
"numUserExceptions": 0,
"latestUserExceptions": [],
"numSystemExceptions": 0,
"latestSystemExceptions": [],
"averageLatency": 30.40593910217285,
"lastInvocationTime": 1633825900363513856,
"workerId": "c-iauto-poc-fw-10.13.2.228-8080"
}
}
]
}
```
`numSuccessfullyProcessed` is nearly twice `numReceived`, when it should
always be <=
First invocation is
https://github.com/apache/pulsar/blob/master/pulsar-function-go/pf/instance.go#L180,
second is
https://github.com/apache/pulsar/blob/master/pulsar-function-go/pf/instance.go#L373
Line 180 is likely the one that should be removed.
--
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]