mirror of
https://github.com/taosdata/TDengine
synced 2026-05-24 10:09:01 +00:00
* [TD-3414]<test>: add insert function with json files of taodemo-testcase -repeat * [TD-3879]add stmt mode for taodemo go * [TD-3414]<test>: add insert function with json files of taodemo-testcase * [TD-3918] <test> add case to verify the bug of TD-3897 * [TD-3453]<test>:modify filepath in scripts * Update fulltest.sh * [TD-3918] <test> fix the case * Update queryFilterTswithDateUnit.py * [TD-3850]<fix>: fix vnode write enqueue flowctrl UAF & no response * Hotfix/sangshuduo/td 3401 query statistic (#5907) * [TD-3401]<fix>: taosdemo query statistic. refactor func name. * [TD-3401]<fix>: taosdemo query statistic. refactor func name 2. * [TD-3401]<fix>: taosdemo support query statistic. implementation. * cleanup * [TD-3401]<fix>: taosdemo query statistic. change us to ms. * [TD-3401]<fix>: taosdemo query statistic. increase sql buffer for query. * [TD-3401]<fix>: taosdemo query statistic more accurate result. * [TD-3401]<fix>: taosdemo query statistic. modify last time logic. Co-authored-by: Shuduo Sang <sdsang@taosdata.com> * improve coverage of operations * [TD-3944]<fix>: make default offline threshold to 10 days. (#5912) Co-authored-by: Shuduo Sang <sdsang@taosdata.com> * [TD-3572]<enhance>: response out of dnodes if #dnodes <= maxDbReplica * [TD-3937]<test>: add taosdemo performance test compare scripts * update script * Hotfix/sangshuduo/td 3317 for master (#5921) * [TD-3317]<fix>: taosdemo interlace insertion. patch for master. * [TD-3317]<fix>: taosdemo support interlace mode. adjust remainder rows logic. * [TD-3317]<fix>: taosdemo support interlace mode. fix global and stable interlace rows logic. * [TD-3317]<fix>: taosdemo support interlace mode. fix 'interlaceRows' is used uninitialized Co-authored-by: Shuduo Sang <sdsang@taosdata.com> * [TD-3968]<fix>: taosdemo data length should be 16*1024 Co-authored-by: tomchon <haoran920c@163.com> Co-authored-by: liuyq-617 <yqliu@taosdata.com> Co-authored-by: wu champion <wuchampion@foxmail.com> Co-authored-by: wu champion <cpwu@taosdata.com> Co-authored-by: Minglei Jin <mljin@taosdata.com> Co-authored-by: huili <52318143+plum-lihui@users.noreply.github.com> Co-authored-by: Shengliang Guan <slguan@taosdata.com> Co-authored-by: Shuduo Sang <sdsang@taosdata.com> Co-authored-by: Ping Xiao <pxiao@taosdata.com>
55 lines
No EOL
1.6 KiB
Python
55 lines
No EOL
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 -*-
|
|
|
|
import os
|
|
import sys
|
|
sys.path.insert(0, os.getcwd())
|
|
from util.log import *
|
|
from util.sql import *
|
|
from util.dnodes import *
|
|
import taos
|
|
import threading
|
|
|
|
|
|
class TwoClients:
|
|
def initConnection(self):
|
|
self.host = "127.0.0.1"
|
|
self.user = "root"
|
|
self.password = "taosdata"
|
|
self.config = "/home/chr/taosdata/TDengine/sim/dnode1/cfg "
|
|
|
|
def newCloseCon(times):
|
|
newConList = []
|
|
for times in range(0,times) :
|
|
newConList.append(taos.connect(self.host, self.user, self.password, self.config))
|
|
for times in range(0,times) :
|
|
newConList[times].close()
|
|
|
|
def run(self):
|
|
tdDnodes.init("")
|
|
tdDnodes.setTestCluster(False)
|
|
tdDnodes.setValgrind(False)
|
|
|
|
tdDnodes.stopAll()
|
|
tdDnodes.deploy(1)
|
|
tdDnodes.start(1)
|
|
|
|
# multiple new and cloes connection
|
|
for m in range(1,101) :
|
|
t= threading.Thread(target=newCloseCon,args=(10,))
|
|
t.start()
|
|
|
|
|
|
clients = TwoClients()
|
|
clients.initConnection()
|
|
clients.run() |