You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "smengcl (via GitHub)" <gi...@apache.org> on 2026/10/11 06:08:04 UTC
[PR] HDDS-16881. Fix intermittent failure in ozone-ha/test-haproxy-s3g.sh [ozone]
smengcl opened a new pull request, #11475:
URL: https://github.com/apache/ozone/pull/11475
Generated-by: Claude Code (Opus 5.5)
## What changes were proposed in this pull request?
`ozone-ha/test-haproxy-s3g.sh` intermittently fails in `acceptance (HA-unsecure)`: the first `awss3.robot` tests fail with `1 != 0` because the aws cli gets 503 from HAProxy.
HDDS-16360 made HAProxy gate S3 traffic on `/health/ready` and added `wait_for_s3g_ready` so tests start only after `s3g1` is ready. Its guard is `docker-compose config --services | grep -q "^s3g1$"`, and `testlib.sh` runs with `pipefail`. `grep -q` exits on the first match, so `docker-compose` can get SIGPIPE writing the remaining service names, the pipeline returns 141, and the wait is skipped. Passing runs log `Waiting for S3 Gateway (s3g1) to report ready...`; the failing runs do not.
This patch replaces `grep -q` with `grep ... > /dev/null`, so grep reads the whole output.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-16881
## How was this patch tested?
- Reproduced the mechanism with a line by line writer under `set -o pipefail`: `grep -q` returns 141 when lines follow the match, `grep > /dev/null` returns 0 (and still 1 when the service is absent).
- `hadoop-ozone/dev-support/checks/bats.sh` passes.
- CI [run](https://github.com/smengcl/hadoop-ozone/actions/runs/38116401034) on this branch: in progress
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16881. Fix intermittent failure in ozone-ha/test-haproxy-s3g.sh [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl merged PR #11475:
URL: https://github.com/apache/ozone/pull/11475
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-16881. Fix intermittent failure in ozone-ha/test-haproxy-s3g.sh [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on PR #11475:
URL: https://github.com/apache/ozone/pull/11475#issuecomment-6119222722
Thanks @cchung100m @chungen0126 for the reviews.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org