You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2020/01/09 14:46:34 UTC

[GitHub] [hadoop-ozone] elek opened a new pull request #423: HDDS-2861. Support Freon progressbar in non-interactive element

elek opened a new pull request #423: HDDS-2861. Support Freon progressbar in non-interactive element
URL: https://github.com/apache/hadoop-ozone/pull/423
 
 
   ## What changes were proposed in this pull request?
   
   Freon tests use the `ProgressBar` to show the current progress of the Freon tests.
   
   Progress bar use `\r` to print out a nice, interactive progress bar 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).
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-2861
   
   ## How was this patch tested?
   
   ```
   cd hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/ozone
   export OZONE_REPLICATION_FACTOR=3
   ./run.sh -d
   ```
   
   Interactive (expected output is the one line progress bar as earlier):
   
   ```
   docker-compose exec scm bash
   ozone freon ockg -n 10
   ```
   
   Non-interactive (expected output is a log4j based testing):
   
   ```
   export COMPOSE_FILE=docker-compose.yaml:freon-ockg.yaml
   ./run.sh -d
   docker-compose logs freon
   ```
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] adoroszlai merged pull request #423: HDDS-2861. Support Freon progressbar in non-interactive environment

Posted by GitBox <gi...@apache.org>.
adoroszlai merged pull request #423: HDDS-2861. Support Freon progressbar in non-interactive environment
URL: https://github.com/apache/hadoop-ozone/pull/423
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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


[GitHub] [hadoop-ozone] adoroszlai commented on issue #423: HDDS-2861. Support Freon progressbar in non-interactive environment

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on issue #423: HDDS-2861. Support Freon progressbar in non-interactive environment
URL: https://github.com/apache/hadoop-ozone/pull/423#issuecomment-574822486
 
 
   Thanks @elek for the update.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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