guruguha commented on issue #5390:
URL: 
https://github.com/apache/incubator-pinot/issues/5390#issuecomment-637918220


   I have an initial approach to this issue:
   We can introduce a segment state monitor that keeps track of all the 
segments and their index version updates. Similar to 
`_lastKnownSegmentMetadataVersionMap`, but it is updated whenever a segment 
index is updated. The monitor could be the callback passed as part of the 
segment reload - currently there is none. 
   
   On the API front, 
   - provide an end point for users to query for segment status
   - get the version change status from the resource manager
   - parse the SegmentZKMetadata object to return the value as a JSON string
   
   Please let me know your thoughts and inputs.


----------------------------------------------------------------
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.

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

Reply via email to