Details
-
Test
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Originally found in TestDFSAdminWithHA#tearDown where System.out.flush() throws an NPE.
The cause is that if for any reason setUpHaCluster fails before storing System.out and System.err as member variables originOut and originErr, then in tearDown System.out and System.err are set to null. This could cause all following tests to fail when calling flush.
This jira tries to fix all similar occurrences of this issue