[ 
https://issues.apache.org/jira/browse/HDDS-13593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sreeja reassigned HDDS-13593:
-----------------------------

    Assignee: Sreeja

> 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
>            Assignee: Sreeja
>            Priority: Minor
>              Labels: newbie
>
> 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-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to