-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix sequence in meta proto #4497
Conversation
@corylanou Will this break existing DBs? |
I'm not sure, it may, but I think that might be better than allowing the bug to live forever. It should only be part of the nightly for now and not a previous release. @pauldix thoughts? |
Does it matter? Just use 21 next time we have a message, right? |
@otoolep if you look further down, the messages use 121, and 122, not 122, and 123.. so this is likely going to be a bug some day for us I suspect. |
I took a look at the code. We store these commands in the Raft log AFAIK. Therefore this change is not backwards compatible and will force people to blow away their systems on upgrade. Normally this change would be a non-starter, but because no-one should have run these commands, we should be OK. |
At least, that is my reading from a quick glance at the code. Since this is code that should never have been run yet, +1 from me. |
For context the reason I caught this is I was doing a rebase on my branch where I used We would have these enums:
And these messages:
|
@corylanou The fix looks good to me. Where did 'drop server' go? That was the one that got added while I re-based and so I bumped up the sequence. Just want to make sure that it wasn't accidentally removed. |
@nathanielc It got reverted in a future pull. That makes sense why that got skipped then. The real issue is that the message numbers didn't line up with the enums. If it had, this would be a non-issue as we could of just used that on the next PR. Regardless, this should get everything synced up. Thanks! |
We skipped a sequence for some reason. Assuming this was not intentional.
The messages have the right sequence later in the file. This fix aligns the sequences back up.
@nathanielc can you verify this?