Skip to content

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

Merged
blizzz merged 1 commit into
stable26from
backport/46398/stable26
Jul 16, 2024
Merged

[stable26] fix(Session): avoid race conditions on clustered setups#46420
blizzz merged 1 commit into
stable26from
backport/46398/stable26

Conversation

@blizzz

Copy link
Copy Markdown
Member

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 a team, Altahrim, juliusknorr, nickvergessen, sorbaugh and yemkareems and removed request for a teamJuly 10, 2024 16:57
@blizzz
blizzz merged commit 7826984 into stable26Jul 16, 2024
@blizzz
blizzz deleted the backport/46398/stable26 branch July 16, 2024 09:03
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@blizzz@AndyScherzinger@Altahrim@juliusknorr