Skip to content

PersistentStreams should be re-established on reconnect requests#411

Merged
smcvb merged 2 commits intoconnector-2024.2.xfrom
fix-reconnect-persistent-streams
Feb 10, 2025
Merged

PersistentStreams should be re-established on reconnect requests#411
smcvb merged 2 commits intoconnector-2024.2.xfrom
fix-reconnect-persistent-streams

Conversation

@abuijze
Copy link
Contributor

@abuijze abuijze commented Feb 6, 2025

By reporting an error to downstream consumers, they are notified of the fact that the disconnect didn't happen for normal reasons, and the stream should be reopened if the application wishes to continue processing events.

This avoids problems due to clients not reconnecting their persistent streams after a reconnect request from Axon Server. Applications need to be restarted to recover from this situation.

With this PR, clients are notified of the disconnect and may re-establish a connection.

By reporting an error to downstream consumers, they are notified of the fact that the disconnect didn't happen for normal reasons, and the stream should be reopened if the application wishes to continue processing events.
@abuijze abuijze self-assigned this Feb 6, 2025
@abuijze abuijze changed the title PersistentStreams must report error on reconnect request PersistentStreams should be re-established on reconnect requests Feb 6, 2025
Copy link
Contributor

@smcvb smcvb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@sonarqubecloud
Copy link

1 similar comment
@sonarqubecloud
Copy link

@smcvb smcvb merged commit 6c17e15 into connector-2024.2.x Feb 10, 2025
7 checks passed
@smcvb smcvb deleted the fix-reconnect-persistent-streams branch February 10, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants