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



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

Reply via email to