Skip to content

CheckNotExists is checked in the prewrite phase and should not appear in the commit phase.#316

Closed
gfreezy wants to merge 2 commits intotikv:masterfrom
gfreezy:fix-check-not-exists
Closed

CheckNotExists is checked in the prewrite phase and should not appear in the commit phase.#316
gfreezy wants to merge 2 commits intotikv:masterfrom
gfreezy:fix-check-not-exists

Conversation

@gfreezy
Copy link
Copy Markdown
Contributor

@gfreezy gfreezy commented Aug 24, 2021

fixed #315

When we set the primary key of a transaction, the corresponding operation must not be CheckNotExists.

@ekexium CheckNotExists is already checked when set primary key.

… in the commit phase.

Signed-off-by: Alex.F <gfreezy@gmail.com>
@gfreezy gfreezy force-pushed the fix-check-not-exists branch from 1d31029 to 3fe6267 Compare August 24, 2021 06:43
@ekexium
Copy link
Copy Markdown
Collaborator

ekexium commented Aug 24, 2021

The change itself looks good to me.

I'd prefer to fix the primary key issue and add a test in the same PR to close #315 .

@andylokandy
Copy link
Copy Markdown
Collaborator

Can we merge it now?

@ekexium
Copy link
Copy Markdown
Collaborator

ekexium commented Dec 7, 2021

I think a test case is needed.

@gfreezy gfreezy closed this Nov 20, 2025
@gfreezy gfreezy deleted the fix-check-not-exists branch November 20, 2025 04:15
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.

TxnLockNotFound

3 participants