jugomezv commented on code in PR #9994:
URL: https://github.com/apache/pinot/pull/9994#discussion_r1061972872


##########
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:
   We tried this but it made things a little more complicated so the change was 
rolled back



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to