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

[jira] [Updated] (HDDS-2861) Support Freon progressbar in non-interactive element

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

Marton Elek updated HDDS-2861:
------------------------------
    Description: 
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).

  was:
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.


> Support Freon progressbar in non-interactive element
> ----------------------------------------------------
>
>                 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
>
> 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