On Mon, Jun 14, 2010 at 12:46, Kelly Campbell <
kel...@google.com> wrote:
> Our gerrit server got rebooted over the weekend, and after I restarted the
> gerrit service on it, we're seeing primary key issues while uploading new
> patchsets. As you can see, it went back to 1 for the change id. Subsequent
> calls get the next id. I couldn't find any known issues like this.
> This is using gerrit 2.1.2.5 and mysql 5.0.51a
Its a known issue with the MySQL implementation.
http://code.google.com/p/gerrit/issues/detail?id=518
To fix it for now, you'll need to do something like:
SELECT MAX(change_id) + 1 FROM changes;
INSERT INTO change_id VALUES (...that value...);
For each of the _id tables in your database, and their corresponding
data tables.