You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2020/01/15 19:41:00 UTC

[jira] [Resolved] (HDDS-2861) Support Freon progressbar in non-interactive environment

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

Attila Doroszlai resolved HDDS-2861.
------------------------------------
    Fix Version/s: 0.5.0
       Resolution: Done

> Support Freon progressbar in non-interactive environment
> --------------------------------------------------------
>
>                 Key: HDDS-2861
>                 URL: https://issues.apache.org/jira/browse/HDDS-2861
>             Project: Hadoop Distributed Data Store
>          Issue Type: Improvement
>            Reporter: Marton Elek
>            Assignee: Marton Elek
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.5.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Freon tests use the ProgressBar to show the current progress of the Freon tests.
>  
> Progress bar use "\r" to print out a nice, interactive progressbar to the same line.
>  
> Unfortunately this doesn't work very well when the standard output is redirected to a file (or in a containerized environment). I would suggest to use a simplified method using log4j in non-interactive environments.
>  
> The easiest way to do is to use "System.console()" java method. If it returns with null we are in a non interactive environment. We can also increase the logging period from 1s to 10s in case of non-interactive environment (==long term testing).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org