[MDEV-11959] SET GLOBAL wsrep_provider_options='pc.weight=<n>' not set properly, always one behind. Needs to be set twice. Created: 2017-02-01 Updated: 2023-06-06 Resolved: 2023-06-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera |
| Affects Version/s: | 10.1.21, 5.5.54-galera, 10.0.29-galera, 10.3.5 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Claudio Nanni | Assignee: | Seppo Jaakola |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | galera, pc.weight | ||
| Description |
|
Upstream: https://github.com/codership/galera/issues/446 On multiple MariaDB Server versions (5.5.x & 10.0.x). SHOW GLOBAL VARIABLES like 'wsrep_provider%'; SET GLOBAL wsrep_provider_options='pc.weight=5'; SET GLOBAL wsrep_provider_options='pc.weight=9'; SET GLOBAL wsrep_provider_options='pc.weight=22'; So basically to set the parameter I have to set it twice to the same value: SET GLOBAL wsrep_provider_options='pc.weight=45'; Please note: This does not happen if only one Galera node is running. |
| Comments |
| Comment by Claudio Nanni [ 2017-02-01 ] | |||||||||||||||||||||||
|
It looks it's a know issue: SET GLOBAL wsrep_provider_options="pc.weight=3"; Galera Cluster applies the new weight on the delivery of a message that carries a weight. At the moment, there is no mechanism to notify the application of a new weight, but will eventually happen when the message is delivered. Not sure what that means:
| |||||||||||||||||||||||
| Comment by Chris Calender (Inactive) [ 2017-02-01 ] | |||||||||||||||||||||||
|
To be clear, the "second" SET GLOBAL command only makes it so you now see the "first" SET GLOBAL. If you start mix-matching values for pc.weight, you will see this. So in effect, the "second" SET GLOBAL carries weight in that you can now see what was set in the "first" SET GLOBAL, but you are still not seeing what was set via the "second" SET GLOBAL. It just looks like it does if you use the same value for pc.weight. We should just force this to take effect when it is set the first time. This is very confusing. | |||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-04-10 ] | |||||||||||||||||||||||
|
set some other dynamic wsrep_provider_options
after setting some other dynamic wsrep_provider_options
| |||||||||||||||||||||||
| Comment by Teemu Ollakka [ 2019-10-10 ] | |||||||||||||||||||||||
|
This issue has been fixed in Galera: https://github.com/codership/galera/issues/505 and the fix has been merged into MariaDB/Galera tree. This bug could be closed. |