You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/test/java/org/apache/hadoop/mapred/TestShuffleChannelHandler.java
Copy file name to clipboardExpand all lines: hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/test/java/org/apache/hadoop/mapred/TestShuffleHandlerBase.java
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,13 @@ public void setup() throws IOException {
84
84
85
85
@AfterEach
86
86
publicvoidteardown() {
87
+
//Trigger GC so that we get the leak warnings early
88
+
System.gc();
89
+
try {
90
+
// Wait for logger to flush
91
+
Thread.sleep(1000);
92
+
} catch (InterruptedExceptione) {
93
+
}
87
94
System.setOut(standardOut);
88
95
System.out.print(outputStreamCaptor);
89
96
// For this to work ch.qos.logback.classic is needed for some reason
0 commit comments