[MDEV-12650] option 'server_id': unsigned value 0 adjusted to 1 Created: 2017-05-01 Updated: 2017-05-05 Resolved: 2017-05-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation |
| Affects Version/s: | 10.2.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Andrii Nikitin (Inactive) | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 10.2-ga | ||
| Issue Links: |
|
||||||||
| Description |
|
When starting 10.2 with server-id=0 or without server-id configured, following note is printed: 2017-05-01 8:26:22 140643309708800 [Warning] option 'server_id': unsigned value 0 adjusted to 1 And the value indeed becomes '1'
According to documentation '0' is valid value for server_id indicating that this server is not intended to be part of replication. Thus either 0 should preserve as valid value or documentation must be changed. |
| Comments |
| Comment by Andrii Nikitin (Inactive) [ 2017-05-01 ] | ||
|
I don't mind having server_id=1 by default; we just need to update documentation and probably provide instructions about steps which make sure that particular instance is not part of replication (if DBA want that and we want such feature) https://github.com/MariaDB/server/commit/1c91569 , (plus fix | ||
| Comment by Elena Stepanova [ 2017-05-01 ] | ||
|
Please find out where the change came from. I remember monty wanted to change the default, and it made sense, but I don't believe that's quite what was it meant to be. I think it should be the hard default that's changed – it makes no sense to set it to 0, then complain about it and adjust it to 1. And if it's set to 0 explicitly, it should be preserved. | ||
| Comment by Andrii Nikitin (Inactive) [ 2017-05-01 ] | ||
|
In provided commit and current tree indeed I see that default is adjusted to 1 as well, but probably it gets overwritten somewhere else:
| ||
| Comment by Vladislav Vaintroub [ 2017-05-02 ] | ||
|
It is not printed for me " without server-id configured". You probably have this server_id=0 in some my.cnf .Could you check? | ||
| Comment by Andrii Nikitin (Inactive) [ 2017-05-02 ] | ||
|
Yeah you are right - my fault - somehow I overlooked that dealing with many issues at the same time. I've asked Ian to address this in 10.2 documentation, will close the bug once documentation is fixed | ||
| Comment by Ian Gilfillan [ 2017-05-05 ] | ||
|
The change of default has been documented |