Skip to content
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

OF-2921: Async closure partial revert #2660

Merged

Conversation

guusdk
Copy link
Member

@guusdk guusdk commented Jan 14, 2025

Reverts some of the changes introduced to prevent a deadlock (OF-2921).

Routing the unavailable presence that's sent out when a session closes cannot be made asynchronous. If the 'next step' is done prior to the routing of unavailable presence having completed, the session seems to be (partially) re-added. This causes an invalid state: the routing table no longer has the session, but caches such as the Routing Users Cache does.

This incorrect behavior was introduced by a fix for OF-2921: b98a83d

It was already partially reverted by 7aca93f

The first commit in this PR reverts the remainder.

@guusdk guusdk force-pushed the OF-2921_Async-closure-partial-revert branch from 7ac55ac to 18783c1 Compare January 14, 2025 16:50
Routing the unavailable presence that's sent out when a session closes cannot be made asynchronous. If the 'next step' is done prior to the routing of unavailable presence having completed, the session seems to be (partially) re-added. This causes an invalid state: the routing table no longer has the session, but caches such as the Routing Users Cache does.

This incorrect behavior was introduced by a fix for OF-2921: igniterealtime@b98a83d

It was already partially reverted by igniterealtime@7aca93f

This commit reverts the remainder.
@guusdk guusdk force-pushed the OF-2921_Async-closure-partial-revert branch from 18783c1 to edf1570 Compare January 14, 2025 16:58
@akrherz akrherz merged commit 5606c82 into igniterealtime:main Jan 14, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants