[MDEV-32506] Improve spider error messages when the remote server is unreachable Created: 2023-10-18  Updated: 2023-10-18

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - Spider
Fix Version/s: None

Type: Task Priority: Major
Reporter: Yuchen Pei Assignee: Yuchen Pei
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Issue split
split from MDEV-28676 Spider: Got error 12701 when reading ... Closed

 Description   

Spider tends to return error 12701 when the remote server is unreachable and the connection to the remote server has returned error 1429 ER_CONNECT_TO_FOREIGN_DATA_SOURCE.

A minimal example could be creating a spider table without specifying any connection info:

CREATE TABLE t (c INT) ENGINE=Spider;

When this table is accessed, it may output a 1429 and log a 12701 in the error log, and in either case, it does not explain why the server is unreachable (no server at /tmp/mysql.sock in this case).

So we should make it so that the error message contains some connect information for the remote server that could provide the user some hint on why it was unreachable.


Generated at Thu Feb 08 10:31:52 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.