Skip to content

Commit

Permalink
HDDS-11359. Intermittent timeout in TestPipelineManagerMXBean#testPip…
Browse files Browse the repository at this point in the history
…elineInfo (apache#7132)
  • Loading branch information
chungen0126 authored Aug 29, 2024
1 parent cc4e026 commit 47564bb
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import org.apache.hadoop.hdds.conf.OzoneConfiguration;
import org.apache.hadoop.ozone.MiniOzoneCluster;
import org.apache.ozone.test.GenericTestUtils;
import org.apache.ozone.test.tag.Flaky;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -62,16 +61,15 @@ public void init()
*
* @throws Exception
*/
@Flaky("HDDS-11359")
@Test
public void testPipelineInfo() throws Exception {
ObjectName bean = new ObjectName(
"Hadoop:service=SCMPipelineManager,name=SCMPipelineManagerInfo");
Map<String, Integer> pipelineStateCount = cluster
.getStorageContainerManager().getPipelineManager().getPipelineInfo();

GenericTestUtils.waitFor(() -> {
try {
Map<String, Integer> pipelineStateCount = cluster
.getStorageContainerManager().getPipelineManager().getPipelineInfo();
final TabularData data = (TabularData) mbs.getAttribute(
bean, "PipelineInfo");
for (Map.Entry<String, Integer> entry : pipelineStateCount.entrySet()) {
Expand Down

0 comments on commit 47564bb

Please sign in to comment.