You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Chi-Hsuan Huang (Jira)" <ji...@apache.org> on 2026/06/29 14:00:00 UTC

[jira] [Commented] (HDDS-15660) Skip prometheus container during stack collection

    [ https://issues.apache.org/jira/browse/HDDS-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18092328#comment-18092328 ] 

Chi-Hsuan Huang commented on HDDS-15660:
----------------------------------------

No problem. Thanks for the context. I’ll close my PR.

> Skip prometheus container during stack collection
> -------------------------------------------------
>
>                 Key: HDDS-15660
>                 URL: https://issues.apache.org/jira/browse/HDDS-15660
>             Project: Apache Ozone
>          Issue Type: Task
>          Components: docker-compose
>            Reporter: Attila Doroszlai
>            Assignee: Chi-Hsuan Huang
>            Priority: Minor
>              Labels: pull-request-available
>
> Stack dump after test failures in acceptance check does not work on {{prometheus}} container, because it does not have {{bash}}:
> {code}
> 'result/ozone/ozone-prometheus-1_runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH'$'\r''.stack' -> '/home/runner/work/ozone/ozone/target/acceptance/ozone/ozone-prometheus-1_runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH'$'\r''.stack'
> {code}
> {code:title=https://github.com/apache/ozone/blob/d1905e147a067c11fcc84097d62c793d280af442/hadoop-ozone/dist/src/main/compose/testlib.sh#L290-L299}
> ## @description Create stack dump of each java process in each container
> create_stack_dumps() {
>   local c pid procname
>   for c in $(docker-compose ps | cut -f1 -d' ' | grep -e datanode -e om -e recon -e s3g -e scm); do
>     while read -r pid procname; do
>       echo "jstack $pid > ${RESULT_DIR}/${c}_${procname}.stack"
>       docker exec "${c}" bash -c "jstack $pid" > "${RESULT_DIR}/${c}_${procname}.stack"
>     done < <(docker exec "${c}" bash -c "jps | grep -v Jps" || true)
>   done
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org