[
https://issues.apache.org/jira/browse/KYLIN-1883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15374760#comment-15374760
]
Zhong Yanghong edited comment on KYLIN-1883 at 7/13/16 10:50 AM:
-----------------------------------------------------------------
The better way should be like this:
1. Firstly create a toDeleteSet;
2. Then create a referenceSet;
3. Remove the referenceSet from the toDeleteSet.
4. Finally delete those items in the toDeleteSet
was (Author: yaho):
The better way should be like this:
1. Firstly create a toDeleteSet;
2. Then create a referenceSet;
3. Remove the referenceSet from the toDeleteSet.
> Consensus Problem when running the tool, MetadataCleanupJob
> -----------------------------------------------------------
>
> Key: KYLIN-1883
> URL: https://issues.apache.org/jira/browse/KYLIN-1883
> Project: Kylin
> Issue Type: Bug
> Reporter: Zhong Yanghong
> Assignee: Zhong Yanghong
> Attachments:
> better_solution_for_consensus_issue_of_MetadataCleanupJob.patch
>
>
> When do the cleanup, current strategy is as follows:
> 1. firstly create an referenceSet
> 2. then add items not belonging to the referenceSet to the toDeleteSet
> 3. finally delete those items in the toDeleteSet
> Consensus issue will occur since we cannot make sure that all of the items in
> toDeleteSet are not referenced in case that referenceSet changes during the
> process.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)