Open jugomezv opened 1 year ago
This is for error handling purpose when Helix is re-deliver the message. IMO I don't want to introduce consuming state concept into the general SegmentDataManager
because it doesn't apply to offline segment.
But wouldn't that be cleaner? I can draft the change and you can tell us what you think. Seems to me that doing instance of breaks encapsulation.
As example take a look at this code in SegmentOnlineOfflineStateModelFactory.java::onBecomeOnlineFromConsuming()
The details of realtime segment data manger should be handled in that class on a method called when this transitions for all types of segment data managers. Default NOP implementation can be used for other types of segement data managers