-
Notifications
You must be signed in to change notification settings - Fork 6k
ddl: Non clustered reorg duplicate tidb rowid fix #60132
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
Merged
ti-chi-bot
merged 81 commits into
pingcap:master
from
mjonss:non-clustered-reorg-duplicate-_tidb_rowid-fix
Apr 10, 2025
Merged
Changes from 79 commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
afeae7f
Change from table.AddRecord, to txn.Set, with check for concurrent tr…
mjonss 73d75b2
Moved the AssertNotExists before txn.Set
mjonss 1f87051
Using LockKeys instead.
mjonss 75fc1b4
Added a comment.
mjonss fc27c67
Merge remote-tracking branch 'pingcap/master' into non-cluster-reorg-…
mjonss 1e26b51
Merge remote-tracking branch 'pingcap/master' into non-cluster-reorg-…
mjonss d3cf5bc
Updated test
mjonss 3c03c0e
Merge remote-tracking branch 'pingcap/master' into non-cluster-reorg-…
mjonss 12d12cb
Updated test
mjonss 21c0b51
refined test
mjonss 3c6b00d
tmp commit
mjonss 5567535
Fix for bad index asserts during REORGANIZE PARTITION
mjonss d77b897
Linting
mjonss 6269f23
Improved tests
mjonss ea73d39
Added more tests
mjonss af041af
Linting
mjonss 8fbad34
Added more tests and TODOs
mjonss 409e05b
Merge remote-tracking branch 'pingcap/master' into non-cluster-reorg-…
mjonss f0cc426
Fixed compilation
mjonss 285c254
bazel_prepare
mjonss 7265545
Refined test
mjonss b34318c
minor cleanups and added more tests
mjonss 9c9ea94
Only generate new _tidb_rowid in case of actual clash
mjonss b013c04
Updated test result
mjonss e61a688
Updated test results
mjonss 1049378
Cleanups and adding a simpler test case for the Assert.
mjonss 95278e5
Updated test.
mjonss 36f5314
Linting
mjonss bcd45c0
Merge branch 'non-cluster-reorg-tests' into non-clustered-reorg-part-fix
mjonss 06adad0
Also locked clustered tables, and enabled more testing
mjonss 4e31f62
Added test
mjonss 7b94940
Added map between _tidb_rowid for old and new partitions
mjonss 4ef60b3
Linting
mjonss ffdb38c
Linting
mjonss 8769496
Added test for concurrent DML during backfill to make it retry.
mjonss 552f20b
WIP!!! Added map for new _tidb_rowid's for non-clustered partitioned …
mjonss c2f0ed4
Missed slice index somehow?!?
mjonss e0df62d
current test works, but rest fails... WIP
mjonss 5ad9ef7
mostly cleanup
mjonss 7b4a52d
All tests passes, now time for cleanup and refactoring :)
mjonss ef9efe9
test cleanup
mjonss 2306147
Linting
mjonss ee29b13
Test fixes
mjonss 55677f5
Removed debug logs
mjonss 8f52d13
Merge branch 'master' into non-clustered-reorg-duplicate-_tidb_rowid-fix
mjonss 1bcbcce
Missed one place to set genRecordID for IsUpdate()
mjonss 4c007fa
Updated tests, shows missing cleanup of temporary index map
mjonss cf15a3e
Added deleteRange for temporary index map of _tidb_rowid
mjonss d68b493
Tests for temporary index map now passes
mjonss f18e90b
Fixed test
mjonss 86dc175
Test to show Delete needs to use map as well.
mjonss a75e82e
Added test case for showing missing deletes
mjonss eeb9272
Fixed delete for non-clus...
mjonss 57ef716
Still not reproduced the update deletes the wrong newFrom row, but fo…
mjonss 64d6255
Found a new issue, extra row?!?
mjonss a951c86
Fixed where we could miss to delete a key
mjonss 340b7d6
Fix for ddlargsv1
mjonss a415204
WIP: testing keeping both curr and other partition set in sync instea…
mjonss cbd8fdb
Changed to backfill does Remove+Add of curr rec
mjonss d6ca69c
Reverted change for temporary index map
mjonss 4a1bb9c
Linting
mjonss 4c6ecb2
Moved the full row check to be done if needed
mjonss eb4e471
removed debug code
mjonss fe5b854
code cleanups
mjonss dc4489d
minor test code cleanup
mjonss 33fbc9f
revert non-relevant ddlEventCh warn log
mjonss cf05cee
more code cleanup, fetchRowColVals
mjonss 2bdbe54
more code cleanups, to make the code diff smaller
mjonss 322f130
Use getPartition instead of GetPartition :)
mjonss 02e3554
test cleanup
mjonss c3ea51e
Test cleanup (and bug reporting)
mjonss ef0f5e9
Test cleanups
mjonss ea4bf0e
Test cleanups
mjonss 86cc881
Typo _tikv_rowid -> _tidb_rowid
mjonss 204b708
Addressed reviewers comments, simplified the code.
mjonss d674822
Merge remote-tracking branch 'pingcap/master' into non-clustered-reor…
mjonss 28936d6
Linting
mjonss 5a6f6a9
linting
mjonss d992efb
Merge remote-tracking branch 'pingcap/master' into non-clustered-reor…
mjonss 4d949dd
Replaced single key txn.BatchGet() with getKeyInTxn().
mjonss 372c795
Optimized partitionedTableUpdateRecord with txn.Get() instead of Batc…
mjonss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.