jugomezv commented on code in PR #9994: URL: https://github.com/apache/pinot/pull/9994#discussion_r1060970122
########## pinot-segment-local/src/main/java/org/apache/pinot/segment/local/data/manager/TableDataManager.java: ########## @@ -201,4 +201,18 @@ void addOrReplaceSegment(String segmentName, IndexLoadingConfig indexLoadingConf * @return List of {@link SegmentErrorInfo} */ Map<String, SegmentErrorInfo> getSegmentErrors(); + + /** + * Interface to place actions to be performed when a Segment goes from CONSUMING to ONLINE. + * + * @param segmentNameStr name of segment for which the state change is being handled + */ + default void onConsumingToOnline(String segmentNameStr) { }; + + /** + * Interface to place actions to be performed when a Segment goes from CONSUMING to DROPPED. + * + * @param segmentNameStr name of segment for which the state change is being handled + */ + default void onConsumingToDropped(String segmentNameStr) { }; } Review Comment: Seems like a good suggestion to keep the high level interface simpler, working on this. -- 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