Commit 586f197
MDEV-37098 Fix Spider test failures in network-less environments
When running tests in environments without a network interface (e.g.
Podman container launched with `--network=none`), Spider was not able to
retrieve a hardware address to generate a node ID. This triggered a
warning in the server log, causing MTR to fail multiple Spider tests due
to unexpected warnings and output result mismatches with:
[Warning] mariadbd: Can't get hardware address with error 2
Fix this by logging Spider hardware address errors to server log only
by setting it as a NOTE. This does not pollute the client output.
When`my_gethwaddr` fails, the code zeroes out the address buffer,
resulting in a `spider_unique_id` formatted like `-000000000000-PID-`,
which is fully valid and emitting warnings was a bit overkill to begin
with.1 parent 0ac1c08 commit 586f197
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6288 | 6288 | | |
6289 | 6289 | | |
6290 | 6290 | | |
6291 | | - | |
| 6291 | + | |
6292 | 6292 | | |
| 6293 | + | |
| 6294 | + | |
| 6295 | + | |
| 6296 | + | |
6293 | 6297 | | |
6294 | 6298 | | |
6295 | 6299 | | |
| |||
0 commit comments