chihsuan opened a new pull request, #10631:
URL: https://github.com/apache/ozone/pull/10631

   ## What changes were proposed in this pull request?
   
   Test-only change.
   
   **Problem.** On acceptance test failure, `create_stack_dumps()` iterates 
over the service containers and runs `jstack` in each one. The container filter 
`grep -e datanode -e om -e recon -e s3g -e scm` matches by substring, so 
`prometheus` (pr**om**etheus) is accidentally selected. The `prometheus` image 
has no `bash`, so the stack dump step fails with:
   
   ```
   exec: "bash": executable file not found in $PATH
   ```
   
   producing noise and a useless `.stack` file in the result directory.
   
   **Fix.** Exclude the `prometheus` container from the stack collection loop 
by appending `grep -v -e prometheus` to the filter. Java service containers 
(including HA `om1/om2/om3`, `scm1/scm2/scm3`) are still selected.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-15660
   
   ## How was this patch tested?
   
   - Verified the updated filter still matches `ozone-om1-1`, `ozone-scm2-1`, 
`ozone-recon-1` and no longer matches `ozone-prometheus-1` / `ozone-grafana-1`.
   


-- 
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