MDEV-36330: SERIALIZABLE read inconsistency #4050
Open
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.
Description
trans_begin()
: AtSERIALIZABLE
isolation level, handleSTART TRANSACTION
in the same way asSTART TRANSACTION WITH CONSISTENT SNAPSHOT
so that write/read conflicts can be detected.innobase_start_trx_and_assign_read_view()
: At any other isolation level thanREAD UNCOMMITTED
, do create a read view. This is needed so that atSERIALIZABLE
isolation level andinnodb_snapshot_isolation=ON
we are able to flagER_CHECKREAD
when reading data that was committed after the transaction started.Release Notes
Transactions running at
SERIALIZABLE
isolation level failed to returnER_CHECKREAD
for non-serializable executions (reading data that was committed after the current transaction started) even ifinnodb_snapshot_isolation=ON
.How can this PR be tested?
Basing the PR against the correct MariaDB version
main
branch.PR quality check