You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2020/12/05 21:04:19 UTC

[GitHub] [incubator-pinot] npawar commented on pull request #6322: API to get status of consumption of a table

npawar commented on pull request #6322:
URL: https://github.com/apache/incubator-pinot/pull/6322#issuecomment-739415872


   > Is the `_consumerState` a string or a well-defined set of values? If we are building an API, should we consider putting in a well-defined set of values in there, so that we can build (say) a management platform?
   > 
   > Also, is a map for the output better (instead of an array):
   > 
   > ```
   > {
   > "testTable__0__1__20201204T2030Z" : {
   >   "idealstate" : "CONSUMING",
   >   "externalView" : "ERROR",
   >   "maxOffsetConsumed" : "somevalueComparable",
   >   "consumerState" : "CONSUMING" // Can be one of CONSUMING, CATCHING_UP,  BUILDING_SEGMENT, etc..(TBD)
   > },
   > "testTable__0__2__whatever" : {
   > },
   > .
   > .
   > }
   > ```
   
   It is a well defined set of values, containing CONSUMING and NOT_CONSUMING for now. The controller API's output is a Map. For each segment there's an array of map, to return info per replica.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org