richardstartin commented on a change in pull request #8166: URL: https://github.com/apache/pinot/pull/8166#discussion_r801972296
########## File path: pinot-controller/src/test/java/org/apache/pinot/controller/helix/core/PinotHelixResourceManagerTest.java ########## @@ -755,6 +755,13 @@ public void testSegmentReplacementForRefresh() Assert.assertEquals(new HashSet<>(ControllerTestUtils.getHelixResourceManager() .getSegmentsFor(OFFLINE_SEGMENTS_REPLACE_TEST_REFRESH_TABLE_NAME, true)), new HashSet<>(Arrays.asList("s3", "s4", "s5"))); + // Try to revert the first entry should fail + try { + ControllerTestUtils.getHelixResourceManager() + .revertReplaceSegments(OFFLINE_SEGMENTS_REPLACE_TEST_REFRESH_TABLE_NAME, lineageEntryId, false); + } catch (Exception e) { + // expected Review comment: Can you put a `fail` after line 761 then please? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org