foundationdb/fdbclient/tests
Michael Stack 7d04d9c03c
Make port collision detection more robust in fdb_cluster_fixture (#13249)
* Fix port retry in fdb_cluster_fixture by grepping stderr separately

The blob_backup_restore_tests ctest fails on busy CI instances when
ports are already in use by parallel tests. The existing loop retried
on port-in-use errors by grepping the output file for 'Local address
in use', but both stdout and stderr were tee'd to the same output file
via async process substitution, causing races where the grep misses
the error string and the loop exits prematurely.

Fix: tee stderr to a separate file (output.stderr) so the grep for
'Local address in use' is reliable and not corrupted by interleaved
stdout. Non-port-in-use failures still fail immediately with stderr
printed for debugging.

* Address feedback. Simplify stdout/stderr capture in fdb_cluster_fixture

Replace process substitution with tee with plain file redirects.
The tee was unnecessary since neither stream needs real-time terminal
output: stdout is only grepped for PIDs and stderr is only checked
for port collisions or dumped on failure.
2026-05-21 11:52:53 -07:00
..
aws_fixture.sh Fix typos (#12687) 2026-02-09 17:54:01 -08:00
bulkload_test.sh Remove duplicated code by using common s3 setup functions. (#12659) 2026-01-26 12:56:43 -08:00
fdb_cluster_fixture.sh Make port collision detection more robust in fdb_cluster_fixture (#13249) 2026-05-21 11:52:53 -07:00
gcp_fixture.sh Add GCS blob store support via S3-compatible XML API with OAuth2 auth (#12975) 2026-04-21 10:48:13 -07:00
mocks3_fixture.sh Add logging around cleanup and add a watchdog to kill regardless (#12587) 2025-12-09 20:09:47 -08:00
s3client_test.sh Add GCS blob store support via S3-compatible XML API with OAuth2 auth (#12975) 2026-04-21 10:48:13 -07:00
tests_common.sh Design changes to pass encryption_block_size to fdbbackup command and remove knob (#13023) 2026-04-30 13:32:14 -07:00