eventmesh icon indicating copy to clipboard operation
eventmesh copied to clipboard

[Bug] The eventMesh server delivers messages to multiple node consumers through grpc, and manually kills the listening process, resulting in message loss

Open linyf-B opened this issue 8 months ago • 7 comments

Search before asking

  • [x] I had searched in the issues and found no similar issues.

Environment

Linux

EventMesh version

1.10.0

What happened

Problem description: The server executes updateOffset, and the client ReceiveMsgHook.handle() does not receive the data on the stream.

Code link: On the gRPC stream push path, the runtime is after the server emitter.onNext succeeds in updateOffset (in StreamPushRequest). In the client, ReceiveMsgHook.handle() is executed after receiving the data on the gRPC stream, and is not included in the updateOffset decision condition.

Test scenario: version 1.10.0; The scenario is dual consumer + Eventmesh pushed by gRPC; One of the processes was manually killed and restarted about a minute; The phenomenon is that the sum of the two consumers received < the number of Eventmesh sent, which is manifested as a lost message.

How to reproduce

Debug logs


Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

linyf-B avatar Mar 30 '26 05:03 linyf-B

Welcome to the Apache EventMesh community!! We are glad that you are contributing by opening this issue. :D

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our project, please let us know! You can check out our contributing guide on contributing to EventMesh.

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

github-actions[bot] avatar Mar 30 '26 05:03 github-actions[bot]

It has been 90 days since the last activity on this issue. Apache EventMesh values the voices of the community. Please don't hesitate to share your latest insights on this matter at any time, as the community is more than willing to engage in discussions regarding the development and optimization directions of this feature.

If you feel that your issue has been resolved, please feel free to close it. Should you have any additional information to share, you are welcome to reopen this issue.

github-actions[bot] avatar Jun 28 '26 18:06 github-actions[bot]

hi, I can take this issue.

Anon2Tokyo avatar Aug 08 '26 06:08 Anon2Tokyo

Hi @Anon2Tokyo, Thanks for taking this! Please feel free to work on it and submit a PR

linyf-B avatar Aug 10 '26 01:08 linyf-B

This problem has already been solved by others

Anon2Tokyo avatar Aug 11 '26 14:08 Anon2Tokyo

I will work on this.

zhang-arvin avatar Aug 30 '26 15:08 zhang-arvin

This issue is resolved by the uni-architecture rewrite (the legacy gRPC transport code that called updateOffset before the client's ReceiveMsgHook.handle() was removed). The new architecture uses ReliableDispatcher with proper ACK tracking and the PushService long-polling model instead of gRPC stream push, which eliminates the message loss window.

Closing as completed by the architecture redesign.

zhang-arvin avatar Aug 30 '26 15:08 zhang-arvin