br icon indicating copy to clipboard operation
br copied to clipboard

fix restore auto increment ID overflow

Open 3pointer opened this issue 5 years ago • 2 comments

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

3pointer avatar Aug 14 '20 10:08 3pointer

Any update?

overvenus avatar Dec 01 '20 05:12 overvenus

/run-integration-tests

3pointer avatar Mar 28 '21 04:03 3pointer