You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2025/01/02 18:26:30 UTC
Re: [PR] [Bug][pulsar-function]Pulsar Function processing time doesn't get properly recorded for asynchronous functions [pulsar]
lhotari commented on PR #23787:
URL: https://github.com/apache/pulsar/pull/23787#issuecomment-2568190959
> > This needs a different approach since there could be multiple messages in flight. The current duration calculation expects one-by-one messages handling.
>
> Sorry, I'm not quite sure I understand your point. Are you referring to the potential issue when multiple messages are being processed, where they might share the same stats variable, leading to the modification of the same processTimeStart variable after calling processTimeStart in ComponentStatsManager?
Yes, that's a problem which needs to be addressed. One possible solution is to keep the starting time state completely outside of the ComponentStatsManager.
--
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