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

Fix bug 1233431 ([ERROR] Cannot find index <col> in InnoDB index tran… #297

Merged
merged 1 commit into from
Jan 19, 2016

Conversation

laurynas-biveinis
Copy link
Contributor

…slation table ...)

The issue is that temporary tables also are subject to
expand_fast_index_creation, which results in InnoDB index translation
table being obsoleted during the secondary key delete/re-add. As a later
access to the modified temp table skips ha_innobase::open (which would
happen for a regular not temp table), the translation table rebuild is
skipped as well, resulting in the warning and error of the bug report.

Backport the fix from 5.7: make ha_innobase::final_add_index call
innobase_build_index_translation, which is exported from ha_innodb.cc
for this purpose.

Backport the innodb.percona_expand_fast_index_creation_innodb testcase
from 5.7 and add a testcase for bug 1529555 too (which does not fail
on 5.5).

http://jenkins.percona.com/job/percona-server-5.5-param/1198/

…slation table ...)

The issue is that temporary tables also are subject to
expand_fast_index_creation, which results in InnoDB index translation
table being obsoleted during the secondary key delete/re-add. As a later
access to the modified temp table skips ha_innobase::open (which would
happen for a regular not temp table), the translation table rebuild is
skipped as well, resulting in the warning and error of the bug report.

Backport the fix from 5.7: make ha_innobase::final_add_index call
innobase_build_index_translation, which is exported from ha_innodb.cc
for this purpose.

Backport the innodb.percona_expand_fast_index_creation_innodb testcase
from 5.7 and add a testcase for bug 1529555 too (which does not fail
on 5.5).
@kbauskar
Copy link
Contributor

Changes look good to me. OK to Push.

laurynas-biveinis added a commit that referenced this pull request Jan 19, 2016
Fix bug 1233431 ([ERROR] Cannot find index <col> in InnoDB index tran…
@laurynas-biveinis laurynas-biveinis merged commit c5df867 into percona:5.5 Jan 19, 2016
@laurynas-biveinis laurynas-biveinis deleted the bug1529555-5.5 branch January 19, 2016 08:32
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 5, 2016
Summary:
In MyRocks, transactions may get "deadlock" errors on snapshot
conflicts, when using repeatable read isolation level.
This diff adds a status counter to track how many times
the errors are returned.

Test Plan: mtr

Reviewers: jkedgar, spetrunia, santoshb, hermanlee4

Reviewed By: hermanlee4

Subscribers: webscalesql-eng

Differential Revision: https://reviews.facebook.net/D61761
george-lorch pushed a commit to george-lorch/percona-server that referenced this pull request Oct 5, 2016
Summary:
In MyRocks, transactions may get "deadlock" errors on snapshot
conflicts, when using repeatable read isolation level.
This diff adds a status counter to track how many times
the errors are returned.

Test Plan: mtr

Reviewers: jkedgar, spetrunia, santoshb, hermanlee4

Reviewed By: hermanlee4

Subscribers: webscalesql-eng

Differential Revision: https://reviews.facebook.net/D61761
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 23, 2020
Summary:
In MyRocks, transactions may get "deadlock" errors on snapshot
conflicts, when using repeatable read isolation level.
This diff adds a status counter to track how many times
the errors are returned.

Differential Revision: https://reviews.facebook.net/D61761

fbshipit-source-id: 09a250bf446
inikep pushed a commit to inikep/percona-server that referenced this pull request Feb 24, 2021
Summary:
In MyRocks, transactions may get "deadlock" errors on snapshot
conflicts, when using repeatable read isolation level.
This diff adds a status counter to track how many times
the errors are returned.

Differential Revision: https://reviews.facebook.net/D61761

fbshipit-source-id: 09a250bf446
inikep pushed a commit to inikep/percona-server that referenced this pull request Nov 15, 2021
Summary:
In MyRocks, transactions may get "deadlock" errors on snapshot
conflicts, when using repeatable read isolation level.
This diff adds a status counter to track how many times
the errors are returned.

Differential Revision: https://reviews.facebook.net/D61761

fbshipit-source-id: b744dd65da7
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 15, 2022
Summary:
In MyRocks, transactions may get "deadlock" errors on snapshot
conflicts, when using repeatable read isolation level.
This diff adds a status counter to track how many times
the errors are returned.

Differential Revision: https://reviews.facebook.net/D61761
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 9, 2024
Summary:
In MyRocks, transactions may get "deadlock" errors on snapshot
conflicts, when using repeatable read isolation level.
This diff adds a status counter to track how many times
the errors are returned.

Differential Revision: https://reviews.facebook.net/D61761
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.

2 participants