jtao15 commented on a change in pull request #8422: URL: https://github.com/apache/pinot/pull/8422#discussion_r839008960
########## File path: pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/PinotHelixResourceManager.java ########## @@ -3285,10 +3324,11 @@ private void waitForSegmentsBecomeOnline(String tableNameWithType, Set<String> s tableNameWithType, segmentsToCheck)); } - private Set<String> getOnlineSegmentsFromExternalView(String tableNameWithType) { + public Set<String> getOnlineSegmentsFromExternalView(String tableNameWithType) { ExternalView externalView = getTableExternalView(tableNameWithType); - Preconditions - .checkState(externalView != null, String.format("External view is null for table (%s)", tableNameWithType)); + if (externalView == null) { Review comment: We use `getOnlineSegmentsFromExternalView()` in `updateSegmentLineageEntryToReverted()` to check if `segmentsFrom` for target lineage are all online. The `externalview` should be null only for newly created table, so it make sense to return empty set. -- 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