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

tidb_constraint_check_in_place_pessimistic should not be global scope, and should not affect internal sessions #38766

Closed
ekexium opened this issue Oct 31, 2022 · 2 comments · Fixed by #38767
Labels

Comments

@ekexium
Copy link
Contributor

ekexium commented Oct 31, 2022

Enhancement

Changing this variable can lead to unexpected results. Internals sessions shouldn't be affected by it as well, e.g. the imeplementation of get_lock() depends on tidb_contraint_check_in_place_pessimistic=1to work.
We should only allow sessions that are aware of its effects use it.

@ekexium ekexium added the type/enhancement The issue or PR belongs to an enhancement. label Oct 31, 2022
@sticnarf
Copy link
Contributor

Is it the exact reason of the inconsistency in system tables?

@ekexium
Copy link
Contributor Author

ekexium commented Oct 31, 2022

Is it the exact reason of the inconsistency in system tables?

Well I haven't investigated it. It might be. After the fix we can see if it still happens since it is said to be reproducible.

@ekexium ekexium added type/bug The issue is confirmed as a bug. severity/major labels Nov 4, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 labels Nov 4, 2022
@ekexium ekexium removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 labels Nov 4, 2022
ti-chi-bot pushed a commit to ti-chi-bot/tidb that referenced this issue Nov 7, 2022
@ekexium ekexium added sig/transaction SIG:Transaction severity/critical and removed type/enhancement The issue or PR belongs to an enhancement. severity/major labels Nov 7, 2022
@ti-chi-bot ti-chi-bot added may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 labels Nov 7, 2022
@ekexium ekexium changed the title tidb_constraint_check_in_place_pessimistic should not be global scope tidb_constraint_check_in_place_pessimistic should not be global scope, and should not affect internal sessions Nov 7, 2022
@ekexium ekexium added affects-6.3 and removed may-affects-4.0 This bug maybe affects 4.0.x versions. may-affects-5.1 This bug maybe affects 5.1.x versions. may-affects-5.2 This bug maybe affects 5.2.x versions. may-affects-5.3 This bug maybe affects 5.3.x versions. may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-5.0 This bug maybe affects 5.0.x versions. may-affects-6.0 may-affects-6.1 may-affects-6.2 may-affects-6.3 labels Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants