[MDEV-27400] Spider attempts localhost TCP/IP connection, even when none is specified. Created: 2022-01-01 Updated: 2023-05-23 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Yuchen Pei |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Execute on first instance:
Then, if the table t on the secondary instance is SPIDER, the result will be:
Note that it is trying to make a TCP/IP connection to localhost rather than using the socket. The same happens when using CREATE SERVER with SOCKET specified. 10.2, 10.3 Presumed affected. Tested 10.4 and 10.8, same result. |
| Comments |
| Comment by Roel Van de Paar [ 2022-01-01 ] | |||||
|
Found a repeatable single-server testcase and the cause. The issue only happens if the target table is SPIDER also. Using a single server only, this will fail:
With ERROR 1429 (HY000): Unable to connect to foreign data source: localhost. If table t1 is changed to InnoDB, it works fine. | |||||
| Comment by Nayuta Yanagisawa (Inactive) [ 2022-01-06 ] | |||||
|
Spider tends not to do validation before actual querying. This is a typical example. I will add some validation. |