Skip to content
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

Merged
merged 1 commit into from
Nov 22, 2016

Conversation

alainjobart
Copy link
Contributor

To fix #2280

// 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.
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Member

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.

Copy link
Member

@enisoc enisoc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alainjobart alainjobart merged commit e959a53 into vitessio:master Nov 22, 2016
@alainjobart alainjobart deleted the serverid branch November 22, 2016 23:32
frouioui pushed a commit to planetscale/vitess that referenced this pull request Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit random MySQL server-id to 2^31-1
5 participants