You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by GitBox <gi...@apache.org> on 2022/04/12 14:48:53 UTC

[GitHub] [hbase] Apache9 commented on pull request #4340: HBASE-26947 Implement a special TestAppender to limit the size of tes…

Apache9 commented on PR #4340:
URL: https://github.com/apache/hbase/pull/4340#issuecomment-1096829643

   It is not easy to write a UT for the log4j2 appender so I just test it manually.
   
   Change the 'appender.console.maxSize' property in log4j2.properties to a very small value, for example, 1K, you will soon see this output when running UT in IDE
   
   ```
   2022-04-12 22:44:20,366 Time-limited test ERROR Log size exceeded the limit 1024, will stop logging to prevent eating too much disk space
   ```
   
   So I think this approach works.
   
   And I set default value to 1G, which should be enough for most cases...
   
   @busbey @ndimiduk FYI. I think this could solve the recent space problem of our ci system.


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

To unsubscribe, e-mail: issues-unsubscribe@hbase.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org