-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Limiting random MySQL server ids to 2^31-1. #2291
Conversation
// that implies is a full 32 bits number, and the code that encodes or | ||
// decodes serverIDs from core mysqld, which uses signed int32. | ||
// Such an ID may also be responsible for a mysqld crash in semi-sync code, | ||
// although we haven't been able to verify that yet. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add the link to the GitHub issue here?
// - It avoids the 2^31 - 2^32-1 range, as there seems to be some confusion | ||
// between the documentation at: | ||
// http://dev.mysql.com/doc/refman/5.7/en/replication-options.html | ||
// that implies is a full 32 bits number, and the code that encodes or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"that implies is a full ..."
nit: A word before "is" is missing?
// between the documentation at: | ||
// http://dev.mysql.com/doc/refman/5.7/en/replication-options.html | ||
// that implies serverID is a full 32 bits number, and the code that encodes or | ||
// decodes serverIDs from core mysqld, which uses signed int32. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't seen any evidence that code in core mysqld uses signed int32. The problem I observed was that the semi-sync plugin appears to use signed int32.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
87db199
to
9030d35
Compare
To fix #2280