Skip to content

Commit 991dc57

Browse files
committed
HDDS-1492 Fix test clean up issue in TestSCMPipelineManager.
1 parent 0e403a5 commit 991dc57

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/pipeline/TestSCMPipelineManager.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,9 @@ public void testPipelineCreationFailedMetric() throws Exception {
271271
numPipelineCreateFailed = getLongCounter(
272272
"NumPipelineCreationFailed", metrics);
273273
Assert.assertTrue(numPipelineCreateFailed == 0);
274+
275+
// clean up
276+
pipelineManager.close();
274277
}
275278

276279
@Test
@@ -368,6 +371,8 @@ public void testPipelineOpenOnlyWhenLeaderReported() throws Exception {
368371

369372
Assert.assertEquals(Pipeline.PipelineState.OPEN,
370373
pipelineManager.getPipeline(pipeline.getId()).getPipelineState());
374+
375+
pipelineManager.close();
371376
}
372377

373378
private void sendPipelineReport(DatanodeDetails dn,

0 commit comments

Comments
 (0)