This is an automated email from the ASF dual-hosted git repository.
smengcl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 025266b52a6 HDDS-16881. Fix intermittent failure in
ozone-ha/test-haproxy-s3g.sh (#11475)
025266b52a6 is described below
commit 025266b52a6dcaf39508607cad736799c40907e8
Author: Siyao Meng <[email protected]>
AuthorDate: Sun Oct 11 23:47:51 2026 -0700
HDDS-16881. Fix intermittent failure in ozone-ha/test-haproxy-s3g.sh
(#11475)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
hadoop-ozone/dist/src/main/compose/testlib.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hadoop-ozone/dist/src/main/compose/testlib.sh
b/hadoop-ozone/dist/src/main/compose/testlib.sh
index 49bc31d0b1e..e3e178a947b 100755
--- a/hadoop-ozone/dist/src/main/compose/testlib.sh
+++ b/hadoop-ozone/dist/src/main/compose/testlib.sh
@@ -120,7 +120,8 @@ find_tests(){
## start while all backends are still in DOWN state and HAProxy returns 503.
## Only waits when the multi-instance HAProxy setup (s3g1/s3g2/s3g3) is
present.
wait_for_s3g_ready() {
- if ! docker-compose config --services 2>/dev/null | grep -q "^s3g1$"; then
+ # Not grep -q: exiting early may kill docker-compose with SIGPIPE, failing
the pipeline under pipefail
+ if ! docker-compose config --services 2>/dev/null | grep "^s3g1$" >
/dev/null; then
return 0
fi
echo "Waiting for S3 Gateway (s3g1) to report ready..."
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]