Skip to content

Drop onLastClose final-event assertion (flaky)#18

Closed
zspitzer wants to merge 4 commits intomasterfrom
fix/lifecycle-onlast-close-ordering
Closed

Drop onLastClose final-event assertion (flaky)#18
zspitzer wants to merge 4 commits intomasterfrom
fix/lifecycle-onlast-close-ordering

Conversation

@zspitzer
Copy link
Copy Markdown
Member

The lifecycle test asserted onLastClose must be the last event, but onLastClose runs on an async thread (AsyncInvoker in BaseWebSocketEndpoint) and can race with the final onClose. Observed failure: master CI run 24590755938 on 7.0/stable/jar showed events ending in onLastClose, onClose instead of the asserted …, onLastClose.

Presence + count of each event is still asserted — this only drops the relative-ordering check that was racy.

@zspitzer
Copy link
Copy Markdown
Member Author

superseded — commits cherry-picked to master (cf7d388, ffdb80f)

@zspitzer zspitzer closed this Apr 18, 2026
@zspitzer zspitzer deleted the fix/lifecycle-onlast-close-ordering branch April 18, 2026 08:21
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.

1 participant