mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
56 lines
1.6 KiB
Python
56 lines
1.6 KiB
Python
###################################################################
|
|
# Copyright (c) 2016 by TAOS Technologies, Inc.
|
|
# All rights reserved.
|
|
#
|
|
# This file is proprietary and confidential to TAOS Technologies.
|
|
# No part of this file may be reproduced, stored, transmitted,
|
|
# disclosed or used in any form or by any means other than as
|
|
# expressly provided by the written permission from Jianhui Tao
|
|
#
|
|
###################################################################
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from new_test_framework.utils import tdLog, tdSql
|
|
import sys
|
|
import os
|
|
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
|
|
from restore_basic import *
|
|
|
|
|
|
class TestClusterRestoreDnode:
|
|
# init
|
|
def setup_class(cls):
|
|
tdLog.debug("start to execute %s" % __file__)
|
|
cls.basic = RestoreBasic()
|
|
cls.basic.init(cls.replicaVar)
|
|
|
|
# run
|
|
def test_cluster_restore_dnode(self):
|
|
"""Cluster restore dnode
|
|
|
|
1. Create 5 dnode 3 mnode cluster
|
|
2. Create 1 db, 1 stable, 100 childs table
|
|
3. Insert 10w records for each child table
|
|
4. Stop dnode 2
|
|
5. Delete the data folder of dnode 2
|
|
6. Start dnode 2
|
|
7. Restore dnode 2 data with "restore dnode 2"
|
|
8. Check data correctness
|
|
|
|
Since: v3.0.0.0
|
|
|
|
Labels: common,ci
|
|
|
|
Jira: None
|
|
|
|
History:
|
|
- 2025-10-31 Alex Duan Migrated from uncatalog/system-test/3-enterprise/restore/test_restore_dnode.py
|
|
|
|
"""
|
|
self.basic.restore_dnode(2)
|
|
|
|
# stop
|
|
self.basic.stop()
|
|
tdLog.success("%s successfully executed" % __file__)
|
|
|