[Bug] The eventMesh server delivers messages to multiple node consumers through grpc, and manually kills the listening process, resulting in message loss
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
- [x] I agree to follow this project's Code of Conduct *
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 |
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.
hi, I can take this issue.
Hi @Anon2Tokyo, Thanks for taking this! Please feel free to work on it and submit a PR
This problem has already been solved by others
I will work on this.
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.

