New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 3 users

Issue metadata

Status: Submitted
Owner:
Closed: May 2018
Cc:
Components:



Sign in to add a comment
link

Issue 8861: Invalid Change sequence after migration to NoteDb

Reported by luca.mil...@gmail.com, Apr 26 2018 Project Member

Issue description

*****************************************************************
*****                                                       *****
***** !!!! THIS BUG TRACKER IS FOR GERRIT CODE REVIEW !!!!  *****
*****                                                       *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, CYANOGENMOD,  *****
***** INTERNAL ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.*****
*****                                                       *****
*****   THOSE ISSUES BELONG IN DIFFERENT ISSUE TRACKERS     *****
*****                                                       *****
*****************************************************************

Affected Version: 2.15.1

What steps will reproduce the problem?
1. Migrate to NoteDb
2. Interrupt the migration at the state READ_WRITE_WITH_SEQUENCE_REVIEW_DB_PRIMARY
3. Create new changes using ReviewDb
4. Migrate again to NoteDb until the end

What is the expected output?

Gerrit is successfully migrated to NoteDb and new changes start from the MAX(ReviewDb sequence) + 1

What do you see instead?

Gerrit is not able to push new changes because the new Changes on NoteDb have sequence numbers conflicting with the changes created at the step 3.

Please provide any additional information below.

The problem happened on GerritHub.io just after the migration to NoteDb.
See the details at:
https://groups.google.com/forum/#!topic/repo-discuss/ZMf4tZiGbvE
 

Comment 1 by luca.mil...@gmail.com, Apr 27 2018

Project Member
Status: Accepted (was: New)
Fix available at:
https://gerrit-review.googlesource.com/c/gerrit/+/174750

Comment 2 by luca.mil...@gmail.com, Apr 27 2018

Project Member
Status: Started (was: Accepted)

Comment 3 by luca.mil...@gmail.com, Apr 27 2018

Project Member
Status: ChangeUnderReview (was: Started)

Comment 4 by luca.mil...@gmail.com, Apr 27 2018

Project Member

Comment 5 by david.pu...@gmail.com, May 4 2018

Labels: FixedIn-2.15.2
Status: Submitted (was: ChangeUnderReview)

Sign in to add a comment