8000 Require READ_COMMITTED_SNAPSHOT isolation level on MS SQL Server by ahus1 · Pull Request #55789 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Require READ_COMMITTED_SNAPSHOT isolation level on MS SQL Server - #55789

Draft
ahus1 wants to merge 3 commits into
keycloak:mainfrom
ahus1:is-55788-require-rcsi-mssql
Draft

ahus1 wants to merge 3 commits into
keycloak:mainfrom
ahus1:is-55788-require-rcsi-mssql

Conversation

@ahus1
@ahus1 ahus1 commented Dec 3, 2026 •
Copy link
Copy Markdown
Member

Closes #55788

Follow-up to #44611: the startup warning is now a hard failure via ServerStartupError, preventing Keycloak from running against an MS SQL Server database without READ_COMMITTED_SNAPSHOT enabled.

Generated with the help of an AI coding agent.

Closes keycloak#55788

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
@keycloak-github-bot keycloak-github-bot Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreported flaky test detected, please review

@keycloak-github-bot
Copy link
Copy Markdown

Unreported flaky test detected

If the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR.

org.keycloak.testsuite.adapter.servlet.SAMLServletAdapterTest#salesPostEncSignedAssertionsAndDocumentTest

Keycloak CI - Adapter IT

org.opentest4j.AssertionFailedError: expected: <true> but was: <false>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at org.junit.jupiter.api.AssertTrue.failNotTrue(AssertTrue.java:63)
	at org.junit.jupiter.api.AssertTrue.assertTrue(AssertTrue.java:36)
...

Report flaky test

ahus1 and others added 2 commits December 3, 2026 17:19
The MSSQL integration test container now enables READ_COMMITTED_SNAPSHOT
on the master database after startup, matching the new requirement.
The old warning-only test is removed since the container now has RCSI.

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Add mssql-no-rcsi database alias for testing without RCSI enabled.
MssqlIsolationLevelDistTest verifies the server refuses to start.

Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Alexander Schwartz <alexander.schwartz@ibm.com>
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.

Require READ_COMMITTED_SNAPSHOT isolation level on MS SQL Server

1 participant

0