Skip to content

[IOTDB-4125] Clear NodeCache and RegionGroupCache in time#7057

Merged
Beyyes merged 1 commit intoapache:masterfrom
CRZbulabula:Clear_NodeCache_and_RegionGroupCache_in_time
Aug 21, 2022
Merged

[IOTDB-4125] Clear NodeCache and RegionGroupCache in time#7057
Beyyes merged 1 commit intoapache:masterfrom
CRZbulabula:Clear_NodeCache_and_RegionGroupCache_in_time

Conversation

@CRZbulabula
Copy link
Copy Markdown
Contributor

No description provided.

LOG.info("Remove Consensus Group {}", tConfigNodeLocation);
break;
case STOP_CONFIG_NODE:
env.broadCastTheLatestConfigNodeGroup();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why ? We should broadcast and quarantine before we delete it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old framework broadcasts as soon as the RemoveConfigNodeProcedure begins, which means the broadcasted ConfigNodeList still contain the ConfigNode to be removed. Therefore, we should broadcast the ConfigNodeList after we actually remove this ConfigNode.

Copy link
Copy Markdown
Member

@wangchao316 wangchao316 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Beyyes Beyyes merged commit 6389b5b into apache:master Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants