-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReplayStatus always false and @DisallowReplay not working for TrackingEventProcessor with parallelProcessing in multinode environment #2233
Comments
When running a replay did you stop one of the event processors?
Resets in multi-node environments |
Yes @YvonneCeelie. I stopped all the processors in all instances before running the replay.
I am now testing if using PooledStreamingProcessor is going to work, but I hope not to do this config change even if this works:
Thanks!
|
Note that the annotations only impact events that have been handled before. Having stated that, would you be able to show the |
You are correct @smcvb . |
Aaah gotcha, good to know you found this, @arth-of-war. In most cases you wouldn't want tasks that introduce side-effects, like dispatching a command, to happen again during a replay. Would that solve the problem on your end, @arth-of-war? |
Hi @smcvb . Yeah I just added a condition to not dispatch the side effect commands during replay. |
Thanks for your two cents, @arth-of-war. Although I will close the issue, you should feel free to keep commenting here when applicable. |
Basic Information
Spring Boot 2.5.6
We are running 2 instances of the application. Trigger manual replay via ReplayAPI,
EventHandler methods annotated with @DisallowReplay are still invoked and the ReplayStatus is REGULAR (should be REPLAY).
The same piece of code works fine in a single node environment.
Steps to Reproduce
Unfortunately I cannot replicate it locally and it is complicated for me to setup multiple nodes so I cannot specifically pinpoint the cause of the issue. But it may be something similar to this ticket but for TrackingEventProcessor and while running in a multi node environment?
#2154
Expected behaviour
EventHandlerNotWorking.handle() should not be invoked. ReplayStatus should be REPLAYING
Actual behaviour
EventHandlerNotWorking.handle() is still invoked and the ReplayStatus is REGULAR
The text was updated successfully, but these errors were encountered: