J-HowHuang commented on code in PR #15175: URL: https://github.com/apache/pinot/pull/15175#discussion_r1995885374
########## pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/OfflineClusterIntegrationTest.java: ########## @@ -878,9 +878,10 @@ private void checkRebalancePreCheckStatus(RebalanceResult rebalanceResult, Rebal assertEquals(rebalanceResult.getStatus(), expectedStatus); Map<String, String> preChecksResult = rebalanceResult.getPreChecksResult(); assertNotNull(preChecksResult); - assertEquals(preChecksResult.size(), 2); + assertEquals(preChecksResult.size(), 3); assertTrue(preChecksResult.containsKey(DefaultRebalancePreChecker.IS_MINIMIZE_DATA_MOVEMENT)); assertTrue(preChecksResult.containsKey(DefaultRebalancePreChecker.NEEDS_RELOAD_STATUS)); + assertTrue(preChecksResult.containsKey(DefaultRebalancePreChecker.DISK_UTILIZATION)); Review Comment: `ResourceUtilizationInfo` holds the static variable `_instanceDiskUsageInfo` that stores the info of all servers. We can't assert any value unless explicitly acquire a lock and set a value. However if the servers involved in the rebalance are unique in all the tests, than likely we could expect `_totalSpaceBytes == -1` and have the fail message. I can add the comment addressing the assumption and add the assertion after #15233 merged -- 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