-
Notifications
You must be signed in to change notification settings - Fork 5
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
Debugging using breakpoints causes any further event processing from happening #22
Comments
Caused by muoncore/muon-java#60 |
Newton: 0.0.10-SNAPSHOT (20170622.114215-22) Putting a breakpoint in a command's executeAndReturnEvents method. (In this instance it was on a call to EventSourceRepository.load but I'm quite sure I've seen it happen in other places too.) Hitting the breakpoint and waiting a few seconds and then resuming results in the following error being thrown several times:
|
Fixed in muoncore/stack-event@c61b939 |
Updated the summary to reflect the actual cause now that we have a better handle on this one. Will retest soon |
To be clear on whats happening and what the above NPE and subsequent fix do. This is the root cause of things topping when you hit a breakpoint in this code. A more full featured solution would handle the thread management of this portion of newton independently of the underlying event dispatch. This is now improved due to the fix mentioned above, and you can see the current state of this putting a breakpoint in
As the underlying communication channels shut down due to a keep alive failure. This is not a complete fix. The solution is to isolate muon message dispatch (which needs to be a ringbuffer for performance reasons) from application code, which needs to be debuggable and doesn't have the same performance constraints per se. I will analyse the thread management in commands specifically and identify what it causing the freezing behaviour. |
Resolved !!!! |
Muon Version: 0.0.5
Language: Java
Services in Use: photon, newton
As soon as a consumer of newton gets into a state which causes exception to be thrown while processing events coming from eventstore (such as event subscription), the eventstore gets into a state where any further submissions cannot be proccessed with the following type of exception:
_ “Failed to persist domain event **Event(...):A timeout occurred, the remote service did not send a response”,_
To reproduce:
The text was updated successfully, but these errors were encountered: