Skip to content

txm: rebind read trackers of rollbacked txns#6335

Merged
Korablev77 merged 1 commit intomasterfrom
Egor2001/gh-6325-not-serializable-read-before-rollback
Aug 18, 2021
Merged

txm: rebind read trackers of rollbacked txns#6335
Korablev77 merged 1 commit intomasterfrom
Egor2001/gh-6325-not-serializable-read-before-rollback

Conversation

@Egor2001
Copy link

RW transactions used to commit without problems after rollback of transactions holding stories responsible to track their reads.
That behaviour led to unserializable results. This patch fixes this problem.

Closes #6325

@Egor2001 Egor2001 requested a review from Korablev77 August 17, 2021 07:50
@Egor2001 Egor2001 force-pushed the Egor2001/gh-6325-not-serializable-read-before-rollback branch from 619c486 to f77d286 Compare August 17, 2021 08:16
Copy link
Contributor

@alyapunov alyapunov left a comment

Choose a reason for hiding this comment

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

Good, but it seems that it is half done job - what if the newer story is NULL? I guess we should rebind to older story. What if older story is NULL too? we should create hole record.

Copy link
Contributor

@VitaliyaIoffe VitaliyaIoffe left a comment

Choose a reason for hiding this comment

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

lgtm

RW transactions used to commit without problems after rollback
of transactions holding stories responsible to track their reads.
That behaviour led to unserializable results.
This patch fixes this problem.

Closes #6325
@Egor2001 Egor2001 force-pushed the Egor2001/gh-6325-not-serializable-read-before-rollback branch from f77d286 to c9b187c Compare August 18, 2021 14:18
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.001%) to 84.399% when pulling c9b187c on Egor2001/gh-6325-not-serializable-read-before-rollback into f2f9112 on master.

@Korablev77 Korablev77 merged commit 6c990a7 into master Aug 18, 2021
@Korablev77 Korablev77 deleted the Egor2001/gh-6325-not-serializable-read-before-rollback branch August 18, 2021 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

txm: not serializable read before rollback

5 participants