[MDEV-15700] Spider ignores change to server object Created: 2018-03-27 Updated: 2018-05-22 Resolved: 2018-05-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation, Storage Engine - Spider |
| Affects Version/s: | 10.2.14 |
| Fix Version/s: | 10.3.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Jacob Mathew (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | spider | ||
| Description |
|
If you create a server object in MariaDB, and then create a Spider table that depends on that server, and then you have recreate the server for whatever reason, Spider continues to use the old definition. e.g. if I do the following on the remote server:
And then the following on the Spider server:
This is obviously a bad server definition, so querying this table will fail:
So the intuitive fix would be to drop the server object and recreate it with the fixed parameters:
However, Spider still seems to use the old definition of the server object:
Dropping the table and recreating it with the same definition allows the table to work:
|
| Comments |
| Comment by Jacob Mathew (Inactive) [ 2018-05-11 ] | |||||||||
|
When a server definition is dropped and recreated, this must be followed by FLUSH TABLES before again attempting to access the table. The FLUSH TABLES results in Spider closing the old server definition. On the next access to the table, Spider will reopen the server definition, this time getting the new server definition:
| |||||||||
| Comment by Jacob Mathew (Inactive) [ 2018-05-11 ] | |||||||||
|
The need for FLUSH TABLES after changing a server definition needs to be documented in a way that it is easy to find by anyone that is setting up a Spider cluster. If it is already documented, then I haven't found it yet. Reassigning the bug to Kenneth Dyer who is documenting Spider in MariaDB Server 10.3. Kenneth, you can assign it to me for review when you're done. Thanks. | |||||||||
| Comment by Jacob Mathew (Inactive) [ 2018-05-22 ] | |||||||||
|
Kenneth Dyer has documented the need for using FLUSH TABLES after changing a server definition: Unable-to-Connect-Errors |