You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ethan Rose (Jira)" <ji...@apache.org> on 2025/08/18 23:13:00 UTC

[jira] [Created] (HDDS-13593) Make container ListSubcommand use JsonUtils#getStdoutSequenceWriter

Ethan Rose created HDDS-13593:
---------------------------------

             Summary: Make container ListSubcommand use JsonUtils#getStdoutSequenceWriter
                 Key: HDDS-13593
                 URL: https://issues.apache.org/jira/browse/HDDS-13593
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Ethan Rose


Jackson's {{SequenceWriter}} will automatically close its output stream when closed. This is a problem when writing to stdout, because any more information that needs to go there (usually a trailing newline after the array) will be lost. {{ListSubcommand}} worked around this by creating a private {{NonClosingOutputStream}} wrapper for stdout. HDDS-12078 and likely other commands in the future also need this functionality, so it was copied inside a helper method {{JsonUtils#getStdoutSequenceWriter}}. Migrate {{ListSubcommand}} to use this new helper method and delete the duplicate 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