Skip to content

HDDS-16883. Acceptance artifact not uploaded due to invalid stack dump filename for HAProxy container - #11474

Merged
chungen0126 merged 1 commit into
apache:masterfrom
smengcl:HDDS-16883
Oct 12, 2026
Merged

chungen0126 merged 1 commit into
apache:masterfrom
smengcl:HDDS-16883

Conversation

@smengcl

@smengcl smengcl commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Generated-by: Claude Code (Opus 5.5)

What changes were proposed in this pull request?

When a test fails in ozone-ha/test-haproxy-s3g.sh, the acceptance-HA-unsecure artifact is not uploaded at all:

The path for one of the files in artifact is not valid: /ozone-ha/haproxy-s3g/ozone-ha-s3g-1_runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH.stack. Contains the following character:  Double quote "

create_stack_dumps lists Java processes with docker exec "${c}" bash -c "jps | grep -v Jps". The s3g service in the HAProxy setup is haproxy:lts-alpine, which has no bash. Docker prints the OCI runtime exec failed error to stdout, so it is read as pid procname and becomes part of the stack dump filename.

HDDS-9027 fixed this by using sh -c, which HDDS-11454 changed back to bash -c. This patch uses sh -c again: jps is not found in the HAProxy container, nothing reaches stdout, and no stack dump file is created for it.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-16883

How was this patch tested?

  • Ran both variants against a haproxy:lts-alpine container with stderr discarded: bash -c "jps | grep -v Jps" prints the OCI runtime exec failed error on stdout, sh -c "jps | grep -v Jps" prints nothing.
  • hadoop-ozone/dev-support/checks/bats.sh passes.

🤖 Generated with Claude Code

…p filename for HAProxy container

create_stack_dumps lists Java processes with `bash -c "jps | grep -v Jps"`.
The HAProxy s3g container (alpine) has no bash, and docker prints the
"OCI runtime exec failed" error to stdout, which ends up in the stack dump
filename. The quotes and colons in it make upload-artifact reject the whole
acceptance artifact.

HDDS-9027 fixed this with `sh -c`, which HDDS-11454 changed back to `bash -c`.
Use `sh -c` again.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings October 11, 2026 06:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@adoroszlai
adoroszlai marked this pull request as ready for review October 11, 2026 13:07

@Russole Russole left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@chungen0126
chungen0126 merged commit 5108acf into apache:master Oct 12, 2026
57 checks passed
@chungen0126

Copy link
Copy Markdown
Contributor

Merged. Thanks @smengcl for working on this, @adoroszlai @Russole for the review.

@smengcl

smengcl commented Oct 12, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @adoroszlai @Russole @chungen0126 for the reviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants