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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to