hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahadev Konar <maha...@yahoo-inc.com>
Subject Re: JUnit tests do not produce logs if the JVM crashes
Date Thu, 04 Nov 2010 15:15:55 GMT
Hi Andras,
  Junit unit will always buffer the logs unless you print it out to console.

To do that, try running this

ant test -Dtest.output=yes

This will print out the logs to console as they are logged.

Thanks
mahadev


On 11/4/10 3:33 AM, "András Kövi" <allprog@gmail.com> wrote:

> Hi all, I'm new to Zookeeper and ran into an issue while trying to run the
> tests with ant.
> 
> It seems like the log output is buffered until the complete test suite
> finishes and it is flushed into its specific file only after then. I had to
> make some changes to the code (no JNI or similar) that resulted in JVM
> crashes. Since the logs are lost in this case, it is a little hard to debug
> the issue.
> 
> Do you have any idea how I could disable the buffering?
> 
> Thanks,
> Andras
> 


Mime
View raw message