[
https://issues.apache.org/jira/browse/HDDS-15660?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chi-Hsuan Huang reopened HDDS-15660:
------------------------------------
> 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: [email protected]
For additional commands, e-mail: [email protected]