Repository navigation
Conversation
ahus1
force-pushed
the
is-54133-read-committed-all-databases
branch
3 times, most recently
from
December 3, 2026 16:30
3ed8e6b to
469d043
Compare
Set the JDBC transaction isolation level to READ COMMITTED unconditionally via application.properties. MySQL and MariaDB default to REPEATABLE READ, which causes gap-lock deadlocks and stale-snapshot conflicts; the other supported databases already default to READ COMMITTED. Verify the effective isolation level on all databases at startup and refuse to start if it differs. Closes keycloak#54133 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
ahus1
force-pushed
the
is-54133-read-committed-all-databases
branch
from
December 3, 2026 16:31
469d043 to
c59399a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #54133
Set READ COMMITTED unconditionally via
application.propertiesinstead of conditionally through a property mapper gated on thestatelessfeature. Verify the effective JDBC isolation level at startup and refuse to start if it differs.Decisions and assumptions:
DatabasePropertyMapperstoapplication.propertiessince it is now a constant for the primary datasource. Secondary/named datasources are unaffected.statelessfeature, since READ COMMITTED is now always active.READ_COMMITTED_SNAPSHOTcheck is kept as a warning (the upgrade to a startup error is tracked separately in Require READ_COMMITTED_SNAPSHOT isolation level on MS SQL Server #55788).DefaultInfinispanTransactionProviderFactorycomment is updated to reflect that READ COMMITTED is now configured for all databases.Generated with the help of Claude Code.