8000 Require READ_COMMITTED_SNAPSHOT isolation level on MS SQL Server · Issue #55788 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Require READ_COMMITTED_SNAPSHOT isolation level on MS SQL Server #55788

In progress

Description

@ahus1

Enhancement Description

Follow-up to #44611. Keycloak currently logs a warning on startup when MS SQL Server is not configured with READ_COMMITTED_SNAPSHOT isolation level. This should be elevated to a hard failure that prevents Keycloak from starting.

The migration guide should include a short statement advising users to enable READ_COMMITTED_SNAPSHOT before upgrading, and the documentation should be updated to reflect this as a requirement rather than a recommendation.

Value Proposition

Fewer deadlocks. Users are guaranteed to run with the correct isolation level, eliminating a class of hard-to-diagnose production issues.

Goals

  • Fail Keycloak startup when MS SQL Server does not have READ_COMMITTED_SNAPSHOT enabled
  • Add a migration guide entry advising users to enable READ_COMMITTED_SNAPSHOT before upgrading
  • Update documentation to reflect this as a requirement

Non-Goals

  • Automatically enabling READ_COMMITTED_SNAPSHOT on the database

Discussion

#44611

Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Fields

Value

None yet

Effort

None yet

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

0