Skip to content

[IOTDB-3562] Support Deactivate Template in cluster#7674

Merged
JackieTien97 merged 28 commits intoapache:masterfrom
MarcosZyk:deactivate_template
Oct 24, 2022
Merged

[IOTDB-3562] Support Deactivate Template in cluster#7674
JackieTien97 merged 28 commits intoapache:masterfrom
MarcosZyk:deactivate_template

Conversation

@MarcosZyk
Copy link
Contributor

@MarcosZyk MarcosZyk commented Oct 20, 2022

Description

Feature define and design

see https://apache-iotdb.feishu.cn/docx/doxcnkwSNwyVmvgWZmZFl8HCkNh

Modification

  1. Implement DeactivateTemplate config task
  2. Implement DeactivateTemplate procedure, including the following four stages:
    1. construct black list (pre deactivated template on related device node in related schema region)
    2. invalidate related schema cache on all dataNode
    3. delete data in related data region
    4. deactivate template in black list
  3. Implement related mechanism in schema region
    1. use templateId in device node to directly represent the template usage and activation in cluster
    2. make templateId negative to represent pre deactivated state
  4. Refacter show paths using template to support path pattern

Test

https://apache-iotdb.feishu.cn/docx/OMV3dqI26osPkCxHborcOaDfnzb

This reverts commit 8c363b0.
# Conflicts:
#	confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlanType.java
# Conflicts:
#	confignode/src/main/java/org/apache/iotdb/confignode/consensus/request/ConfigPhysicalPlan.java
#	confignode/src/main/java/org/apache/iotdb/confignode/persistence/executor/ConfigPlanExecutor.java
@JackieTien97 JackieTien97 merged commit f9f9721 into apache:master Oct 24, 2022
@MarcosZyk MarcosZyk deleted the deactivate_template branch November 1, 2022 01:46
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.

2 participants