You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/04/01 13:33:57 UTC

[GitHub] [incubator-druid] leventov opened a new issue #7391: MetadataSegmentView should correctly handle the situation of Coordinator being down or changed leadership

leventov opened a new issue #7391: MetadataSegmentView should correctly handle the situation of Coordinator being down or changed leadership
URL: https://github.com/apache/incubator-druid/issues/7391
 
 
   Regardless of whether any of the designs proposed for `MetadataSegmentView` here: https://github.com/apache/incubator-druid/issues/6834#issuecomment-478569365 is applied, `MetadataSegmentView` should document its behavior in the face of the Coordinator being down, or just started, or leadership changed.
   
   Currently, there is a single comment ["Note that coordinator must be up to get segments"](https://github.com/apache/incubator-druid/pull/6901/files#diff-5707cd19ee7a43a258f29e61fd385d4cR181) which, IMO, only adds FUD and doesn't explain anything.
   
   Ideally, `MetadataSegmentView` should correctly recognize the situations of changed Coordinator's leadership and not to flush all cached published segments.
   
   Explanation may look like the following:
   ```
   /**
    * When Coordinator is just started or leadership changed,
    * its SegmentsMetadata is unpopulated. Then the endpoint /metadata/abc/foo/bar
    * which we are querying returns code XXX (see {@link DataSourcesResource#theRelevantMethod}).
    * We process this code here and don't flush {@link #cachedPublishedSegments} in this case.
    */
   ```
   
   @FYI @surekhasaharan 

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


With regards,
Apache Git Services

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