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/01/13 01:10:30 UTC

[GitHub] jihoonson opened a new issue #6849: [Proposal] Consolidated segment metadata management

jihoonson opened a new issue #6849: [Proposal] Consolidated segment metadata management
URL: https://github.com/apache/incubator-druid/issues/6849
 
 
   ## Motivation
   Druid currently stores segment metadata in two places, i.e., metadata store and deep storage. In metadata store, segment metadata is stored in `segments` table. In deep storage, it's stored in `descriptor.json` file.
   
   Druid core retrieves segment metadata only from the metadata store, and only `insert-segment-to-db` tool uses `descriptor.json` file to find segment files in deep storage.
   
   However, storing metadata in two different places has several drawbacks.
   
   1. An additional effort is required to make sure that the same segment metadata is stored in metadata store and deep storage (https://github.com/apache/incubator-druid/issues/4170). 
   2. Deep storage migration is complex because it needs to update metadata in both metadata store and deep storage.
   
   `insert-segment-to-db` tool seems to be introduced for recovery when the metadata store is broken (https://github.com/apache/incubator-druid/pull/1861), but another approach should be employed to handle that kind of error, e.g., replicating metadata store.
   
   ## Public Interfaces
   `DataSegmentFinder` will be removed.
   
   ## Proposed Changes
   The segment metadata is stored only in the metadata store.
   
   ## Compatibility, Deprecation, and Migration Plan
   This is not a backward compatible change. `descriptor.json` file is no longer stored in deep storage. `insert-segment-to-db` tool will be removed.
   
   Deep storage migration would become simpler since segment metadata needs to be updated in only metadata store.
   
   ## Test Plan
   N/A
   
   ## Rejected Alternatives
   N/A

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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