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

Mention that postRemove may still see removed entities in in-memory collections #11146

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Jan 2, 2024

... plus minor tweaks.

Depending on how we proceed with #11132, we might want to document that post* Events should not expect collections to be in a clean state, and that the transaction has not yet been committed at that point.

The warning about flush() reentrance belongs to a more general place, not only to postPersist/postRemove/postUpdate events.

@SenseException SenseException merged commit e585a92 into 2.17.x Jan 2, 2024
1 check passed
@SenseException SenseException deleted the post-event-docs branch January 2, 2024 20:31
@mpdude
Copy link
Contributor Author

mpdude commented Jan 12, 2024

#11132 might change this a tad to also update the in-memory collections before the event is omitted. OTOH, this consistency isn't guaranteed for the other events either, so I am not sure it's worth to bother about it.

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