br
br copied to clipboard
fix restore auto increment ID overflow
What problem does this PR solve?
when auto_increment id reached max.Int64, it can backs up success. but failed when restore. we should handle this situation.
What is changed and how it works?
if autoIncID overflowed. change is to max.Int64, to keep consistency with backup cluster.
Check List
Tests
- Integration test
Code changes
- Has exported function/method change
- Has exported variable/fields change
- Has interface methods change
- Has persistent data change
Side effects
- Possible performance regression
- Increased code complexity
- Breaking backward compatibility
Related changes
- Need to cherry-pick to the release branch
Release Note
- No release note
Any update?
/run-integration-tests