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

   ## What changes were proposed in this pull request?
   
   Generalize `HostNameParameters` to allow various parameters to be supplied 
via stdin.  Reuse in `ozone admin container info` for container ID list.
   
   Avoid duplicate parsing of arguments in `Shell`, because the first one 
consumes inputs from stdin, and the command hangs waiting for further input.
   
   https://issues.apache.org/jira/browse/HDDS-12408
   
   ## How was this patch tested?
   
   Tested in `ozone` compose environment:
   
   ```bash
   $ ozone freon ockg -n1 -t1
   ...
   
   $ ozone admin container close 1
   
   $ ozone freon ockg -n1 -t1
   ...
   
   $ ozone admin container info -
   1
   2
   ^D
   
   Container id: 1
   ...
   
   Container id: 2
   ...
   
   $ ozone admin container info --json - <<EOF | jq -r 
'.[].containerInfo.containerID'
   > 1
   > 2
   > EOF
   1
   2
   
   $ ozone admin container info --json 1 2 | jq -r 
'.[].containerInfo.containerID'
   1
   2
   ```
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/13520031977


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