[MXS-2463] maxctrl shows stale information on changing bootstrap node Created: 2019-05-01 Updated: 2019-05-07 Resolved: 2019-05-07 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | xpandmon |
| Affects Version/s: | None |
| Fix Version/s: | 2.4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Rahul Joshi (Inactive) | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MaxScale server karma136: |
||
| Attachments: |
|
| Description |
|
This is the working as expected config and maxctrl o/p:
Now, change the bootstrap server entry to a server that does not have clustrix (karma197, IP 10.2.13.97):
The first 3 entries for @@Clustrix:node-3/4/5 are for the old bootstrap server (karma016) which is no more part of the config file. Expected:
Relevant logs:
Full logs attached. |
| Comments |
| Comment by markus makela [ 2019-05-02 ] |
|
I guess this would be solved by never persisting the generated servers. |
| Comment by Johan Wikman [ 2019-05-02 ] |
|
The connection information (host + port) about the nodes detected at runtime is saved so that the Clustrix monitor can get going even if the bootstrap server is not present when MaxScale starts. It seems that the bootstrap server used for obtaining the information should be saved as well, so that the stored information is used only if there has been no change in the bootstrap server(s). |
| Comment by Johan Wikman [ 2019-05-07 ] |
|
Now it works so that if there has been any change in the bootstrap nodes, then the stored information is not used. |