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

[stable26] fix(Session): avoid race conditions on clustered setups #46420

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

blizzz
Copy link
Member

@blizzz blizzz commented Jul 10, 2024

Backport of #46398

In stable26 only a runtime cache is used, so it is sufficient to incorporate the DB transaction.

- re-stablishes old behaviour with cache to return null instead of throwing
  an InvalidTokenException when the token is cached as non-existing
- token invalidation and re-generation are bundled in a DB transaction now

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@blizzz blizzz requested review from nickvergessen, Altahrim, juliusknorr, a team, yemkareems and sorbaugh and removed request for a team July 10, 2024 16:57
@blizzz blizzz requested a review from ChristophWurst July 11, 2024 08:40
@blizzz blizzz merged commit 7826984 into stable26 Jul 16, 2024
37 of 38 checks passed
@blizzz blizzz deleted the backport/46398/stable26 branch July 16, 2024 09:03
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.

4 participants