Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store/tikv: set short pessimistic lock TTL through failpoints #22431

Merged
merged 5 commits into from
Jan 21, 2021

Conversation

sticnarf
Copy link
Contributor

@sticnarf sticnarf commented Jan 19, 2021

What is changed and how it works?

Make it possible to set short TTL for pessimistic locks and skip running TTL manager. It helps tests (for example tikv/tikv#9523).

Check List

Tests

  • No code

Release note

  • No release note

Signed-off-by: Yilin Chen <sticnarf@gmail.com>
logutil.BgLogger().Info("[failpoint] injected failure at running ttlManager",
zap.Uint64("txnStartTS", c.startTS))
failpoint.Return()
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this redundant with doNotKeepAlive in this pr?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, yes. We should do these things in serial.

@ti-srebot ti-srebot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 21, 2021
Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-srebot ti-srebot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jan 21, 2021
@jackysp
Copy link
Member

jackysp commented Jan 21, 2021

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 21, 2021
@ti-srebot
Copy link
Contributor

Your auto merge job has been accepted, waiting for:

  • 22351

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@sticnarf merge failed.

@sticnarf
Copy link
Contributor Author

/run-unit-test

@jackysp
Copy link
Member

jackysp commented Jan 21, 2021

/merge

@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot ti-srebot merged commit 90a98ce into pingcap:master Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/test sig/transaction SIG:Transaction status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants