Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
loser646
TDengine
提交
3528ed61
T
TDengine
项目概览
loser646
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3528ed61
编写于
5月 28, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-335] rename mgmt to mnode
上级
453590e2
变更
68
隐藏空白更改
内联
并排
Showing
68 changed file
with
258 addition
and
258 deletion
+258
-258
packaging/cfg/taos.cfg
packaging/cfg/taos.cfg
+1
-1
src/client/inc/tsclient.h
src/client/inc/tsclient.h
+2
-2
src/client/src/tscParseInsert.c
src/client/src/tscParseInsert.c
+1
-1
src/client/src/tscServer.c
src/client/src/tscServer.c
+3
-3
src/client/src/tscSql.c
src/client/src/tscSql.c
+1
-1
src/client/src/tscSystem.c
src/client/src/tscSystem.c
+1
-1
src/common/src/tglobal.c
src/common/src/tglobal.c
+2
-2
src/dnode/src/dnodeMgmt.c
src/dnode/src/dnodeMgmt.c
+11
-11
src/dnode/src/dnodeModule.c
src/dnode/src/dnodeModule.c
+9
-9
src/inc/mnode.h
src/inc/mnode.h
+1
-1
src/inc/taosdef.h
src/inc/taosdef.h
+1
-1
src/mnode/inc/mnodeDnode.h
src/mnode/inc/mnodeDnode.h
+1
-1
src/mnode/inc/mnodeMnode.h
src/mnode/inc/mnodeMnode.h
+1
-1
src/mnode/src/mnodeDb.c
src/mnode/src/mnodeDb.c
+1
-1
src/mnode/src/mnodeDnode.c
src/mnode/src/mnodeDnode.c
+3
-3
src/mnode/src/mnodeMain.c
src/mnode/src/mnodeMain.c
+10
-10
src/mnode/src/mnodeMnode.c
src/mnode/src/mnodeMnode.c
+1
-1
src/mnode/src/mnodeTable.c
src/mnode/src/mnodeTable.c
+23
-23
src/mnode/src/mnodeVgroup.c
src/mnode/src/mnodeVgroup.c
+5
-5
tests/pytest/util/dnodes.py
tests/pytest/util/dnodes.py
+1
-1
tests/script/general/alter/count.sim
tests/script/general/alter/count.sim
+1
-1
tests/script/general/alter/import.sim
tests/script/general/alter/import.sim
+1
-1
tests/script/general/db/backup/keep.sim
tests/script/general/db/backup/keep.sim
+3
-3
tests/script/general/db/delete_reuse1.sim
tests/script/general/db/delete_reuse1.sim
+4
-4
tests/script/general/db/delete_reuse2.sim
tests/script/general/db/delete_reuse2.sim
+4
-4
tests/script/general/db/delete_writing1.sim
tests/script/general/db/delete_writing1.sim
+4
-4
tests/script/general/import/basic.sim
tests/script/general/import/basic.sim
+4
-4
tests/script/general/import/commit.sim
tests/script/general/import/commit.sim
+4
-4
tests/script/general/import/large.sim
tests/script/general/import/large.sim
+4
-4
tests/script/general/import/replica1.sim
tests/script/general/import/replica1.sim
+4
-4
tests/script/general/table/delete_reuse1.sim
tests/script/general/table/delete_reuse1.sim
+4
-4
tests/script/general/table/delete_reuse2.sim
tests/script/general/table/delete_reuse2.sim
+4
-4
tests/script/general/table/delete_writing.sim
tests/script/general/table/delete_writing.sim
+4
-4
tests/script/sh/clear.sh
tests/script/sh/clear.sh
+1
-1
tests/script/sh/deploy.sh
tests/script/sh/deploy.sh
+1
-1
tests/script/tmp/prepare.sim
tests/script/tmp/prepare.sim
+4
-4
tests/script/unique/cluster/balance1.sim
tests/script/unique/cluster/balance1.sim
+8
-8
tests/script/unique/cluster/balance2.sim
tests/script/unique/cluster/balance2.sim
+8
-8
tests/script/unique/cluster/balance3.sim
tests/script/unique/cluster/balance3.sim
+8
-8
tests/script/unique/db/commit.sim
tests/script/unique/db/commit.sim
+3
-3
tests/script/unique/db/delete_part.sim
tests/script/unique/db/delete_part.sim
+4
-4
tests/script/unique/db/replica_add12.sim
tests/script/unique/db/replica_add12.sim
+4
-4
tests/script/unique/db/replica_add13.sim
tests/script/unique/db/replica_add13.sim
+4
-4
tests/script/unique/db/replica_add23.sim
tests/script/unique/db/replica_add23.sim
+4
-4
tests/script/unique/db/replica_part.sim
tests/script/unique/db/replica_part.sim
+3
-3
tests/script/unique/db/replica_reduce21.sim
tests/script/unique/db/replica_reduce21.sim
+3
-3
tests/script/unique/db/replica_reduce31.sim
tests/script/unique/db/replica_reduce31.sim
+3
-3
tests/script/unique/db/replica_reduce32.sim
tests/script/unique/db/replica_reduce32.sim
+3
-3
tests/script/unique/dnode/balance1.sim
tests/script/unique/dnode/balance1.sim
+4
-4
tests/script/unique/dnode/balance2.sim
tests/script/unique/dnode/balance2.sim
+5
-5
tests/script/unique/dnode/balance3.sim
tests/script/unique/dnode/balance3.sim
+6
-6
tests/script/unique/dnode/balancex.sim
tests/script/unique/dnode/balancex.sim
+4
-4
tests/script/unique/dnode/monitor_bug.sim
tests/script/unique/dnode/monitor_bug.sim
+2
-2
tests/script/unique/dnode/offline1.sim
tests/script/unique/dnode/offline1.sim
+3
-3
tests/script/unique/dnode/offline2.sim
tests/script/unique/dnode/offline2.sim
+3
-3
tests/script/unique/dnode/remove1.sim
tests/script/unique/dnode/remove1.sim
+4
-4
tests/script/unique/dnode/remove2.sim
tests/script/unique/dnode/remove2.sim
+4
-4
tests/script/unique/dnode/vnode_clean.sim
tests/script/unique/dnode/vnode_clean.sim
+4
-4
tests/script/unique/import/replica2.sim
tests/script/unique/import/replica2.sim
+4
-4
tests/script/unique/import/replica3.sim
tests/script/unique/import/replica3.sim
+4
-4
tests/script/unique/stable/balance_replica1.sim
tests/script/unique/stable/balance_replica1.sim
+2
-2
tests/script/unique/stream/metrics_balance.sim
tests/script/unique/stream/metrics_balance.sim
+2
-2
tests/script/unique/stream/table_balance.sim
tests/script/unique/stream/table_balance.sim
+2
-2
tests/script/unique/stream/table_move.sim
tests/script/unique/stream/table_move.sim
+4
-4
tests/script/unique/vnode/many.sim
tests/script/unique/vnode/many.sim
+4
-4
tests/script/unique/vnode/replica2_basic2.sim
tests/script/unique/vnode/replica2_basic2.sim
+4
-4
tests/script/unique/vnode/replica2_repeat.sim
tests/script/unique/vnode/replica2_repeat.sim
+4
-4
tests/script/unique/vnode/replica3_repeat.sim
tests/script/unique/vnode/replica3_repeat.sim
+4
-4
未找到文件。
packaging/cfg/taos.cfg
浏览文件 @
3528ed61
...
...
@@ -155,7 +155,7 @@
# maxVnodeConnections 10000
# mnode take into account while balance, for cluster version only
# m
gmt
EqualVnodeNum 4
# m
node
EqualVnodeNum 4
# number of seconds allowed for a dnode to be offline, for cluster version only
# offlineThreshold 864000
...
...
src/client/inc/tsclient.h
浏览文件 @
3528ed61
...
...
@@ -284,8 +284,8 @@ typedef struct {
typedef
struct
STscObj
{
void
*
signature
;
void
*
pTimer
;
char
m
gmt
Ip
[
TSDB_USER_LEN
];
uint16_t
m
gmt
Port
;
char
m
node
Ip
[
TSDB_USER_LEN
];
uint16_t
m
node
Port
;
char
user
[
TSDB_USER_LEN
];
char
pass
[
TSDB_KEY_LEN
];
char
acctId
[
TSDB_DB_NAME_LEN
];
...
...
src/client/src/tscParseInsert.c
浏览文件 @
3528ed61
...
...
@@ -1361,7 +1361,7 @@ int tsParseSql(SSqlObj *pSql, bool initialParse) {
/*
* the pRes->code may be modified or released by another thread in tscTableMetaCallBack function,
* so do NOT use pRes->code to determine if the getTableMeta/getMetricMeta function
* invokes new threads to get data from m
gmt
node or simply retrieves data from cache.
* invokes new threads to get data from mnode or simply retrieves data from cache.
*
* do NOT assign return code to pRes->code for the same reason since it may be released by another thread
* pRes->code = ret;
...
...
src/client/src/tscServer.c
浏览文件 @
3528ed61
...
...
@@ -60,10 +60,10 @@ static void tscSetDnodeIpList(SSqlObj* pSql, SCMVgroupInfo* pVgroupInfo) {
void
tscPrintMgmtIp
()
{
if
(
tscMgmtIpSet
.
numOfIps
<=
0
)
{
tscError
(
"invalid m
gmt
IP list:%d"
,
tscMgmtIpSet
.
numOfIps
);
tscError
(
"invalid m
node
IP list:%d"
,
tscMgmtIpSet
.
numOfIps
);
}
else
{
for
(
int
i
=
0
;
i
<
tscMgmtIpSet
.
numOfIps
;
++
i
)
{
tscTrace
(
"m
gmt
index:%d %s:%d"
,
i
,
tscMgmtIpSet
.
fqdn
[
i
],
tscMgmtIpSet
.
port
[
i
]);
tscTrace
(
"m
node
index:%d %s:%d"
,
i
,
tscMgmtIpSet
.
fqdn
[
i
],
tscMgmtIpSet
.
port
[
i
]);
}
}
}
...
...
@@ -78,7 +78,7 @@ void tscSetMgmtIpList(SRpcIpSet *pIpList) {
void
tscUpdateIpSet
(
void
*
ahandle
,
SRpcIpSet
*
pIpSet
)
{
tscMgmtIpSet
=
*
pIpSet
;
tscTrace
(
"m
gmt
IP list is changed for ufp is called, numOfIps:%d inUse:%d"
,
tscMgmtIpSet
.
numOfIps
,
tscMgmtIpSet
.
inUse
);
tscTrace
(
"m
node
IP list is changed for ufp is called, numOfIps:%d inUse:%d"
,
tscMgmtIpSet
.
numOfIps
,
tscMgmtIpSet
.
inUse
);
for
(
int32_t
i
=
0
;
i
<
tscMgmtIpSet
.
numOfIps
;
++
i
)
{
tscTrace
(
"index:%d fqdn:%s port:%d"
,
i
,
tscMgmtIpSet
.
fqdn
[
i
],
tscMgmtIpSet
.
port
[
i
]);
}
...
...
src/client/src/tscSql.c
浏览文件 @
3528ed61
...
...
@@ -88,7 +88,7 @@ STscObj *taosConnectImpl(const char *ip, const char *user, const char *pass, con
strncpy
(
pObj
->
user
,
user
,
TSDB_USER_LEN
);
taosEncryptPass
((
uint8_t
*
)
pass
,
strlen
(
pass
),
pObj
->
pass
);
pObj
->
m
gmt
Port
=
port
?
port
:
tsDnodeShellPort
;
pObj
->
m
node
Port
=
port
?
port
:
tsDnodeShellPort
;
if
(
db
)
{
int32_t
len
=
strlen
(
db
);
...
...
src/client/src/tscSystem.c
浏览文件 @
3528ed61
...
...
@@ -116,7 +116,7 @@ void taos_init_imp() {
}
if
(
tscSetMgmtIpListFromCfg
(
tsFirst
,
tsSecond
)
<
0
)
{
tscError
(
"failed to init m
gmt
IP list"
);
tscError
(
"failed to init m
node
IP list"
);
return
;
}
...
...
src/common/src/tglobal.c
浏览文件 @
3528ed61
...
...
@@ -427,7 +427,7 @@ static void doInitGlobalConfig() {
cfg
.
unitType
=
TAOS_CFG_UTYPE_NONE
;
taosInitConfigOption
(
cfg
);
// 0-any; 1-m
gmt
; 2-dnode
// 0-any; 1-m
node
; 2-dnode
cfg
.
option
=
"alternativeRole"
;
cfg
.
ptr
=
&
tsAlternativeRole
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT32
;
...
...
@@ -875,7 +875,7 @@ static void doInitGlobalConfig() {
taosInitConfigOption
(
cfg
);
// module configs
cfg
.
option
=
"m
gmt
EqualVnodeNum"
;
cfg
.
option
=
"m
node
EqualVnodeNum"
;
cfg
.
ptr
=
&
tsMnodeEqualVnodeNum
;
cfg
.
valType
=
TAOS_CFG_VTYPE_INT32
;
cfg
.
cfgType
=
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_SHOW
;
...
...
src/dnode/src/dnodeMgmt.c
浏览文件 @
3528ed61
...
...
@@ -363,10 +363,10 @@ static void dnodeUpdateMnodeInfos(SDMMnodeInfos *pMnodes) {
static
bool
dnodeReadMnodeInfos
()
{
char
ipFile
[
TSDB_FILENAME_LEN
]
=
{
0
};
sprintf
(
ipFile
,
"%s/m
gmt
IpList.json"
,
tsDnodeDir
);
sprintf
(
ipFile
,
"%s/m
node
IpList.json"
,
tsDnodeDir
);
FILE
*
fp
=
fopen
(
ipFile
,
"r"
);
if
(
!
fp
)
{
dTrace
(
"failed to read mnode
mgmt
IpList.json, file not exist"
);
dTrace
(
"failed to read mnodeIpList.json, file not exist"
);
return
false
;
}
...
...
@@ -377,39 +377,39 @@ static bool dnodeReadMnodeInfos() {
if
(
len
<=
0
)
{
free
(
content
);
fclose
(
fp
);
dError
(
"failed to read mnode
mgmt
IpList.json, content is null"
);
dError
(
"failed to read mnodeIpList.json, content is null"
);
return
false
;
}
cJSON
*
root
=
cJSON_Parse
(
content
);
if
(
root
==
NULL
)
{
dError
(
"failed to read mnode
mgmt
IpList.json, invalid json format"
);
dError
(
"failed to read mnodeIpList.json, invalid json format"
);
goto
PARSE_OVER
;
}
cJSON
*
inUse
=
cJSON_GetObjectItem
(
root
,
"inUse"
);
if
(
!
inUse
||
inUse
->
type
!=
cJSON_Number
)
{
dError
(
"failed to read mnode
mgmt
IpList.json, inUse not found"
);
dError
(
"failed to read mnodeIpList.json, inUse not found"
);
goto
PARSE_OVER
;
}
tsDMnodeInfos
.
inUse
=
inUse
->
valueint
;
cJSON
*
nodeNum
=
cJSON_GetObjectItem
(
root
,
"nodeNum"
);
if
(
!
nodeNum
||
nodeNum
->
type
!=
cJSON_Number
)
{
dError
(
"failed to read mnode
mgmt
IpList.json, nodeNum not found"
);
dError
(
"failed to read mnodeIpList.json, nodeNum not found"
);
goto
PARSE_OVER
;
}
tsDMnodeInfos
.
nodeNum
=
nodeNum
->
valueint
;
cJSON
*
nodeInfos
=
cJSON_GetObjectItem
(
root
,
"nodeInfos"
);
if
(
!
nodeInfos
||
nodeInfos
->
type
!=
cJSON_Array
)
{
dError
(
"failed to read mnode
mgmt
IpList.json, nodeInfos not found"
);
dError
(
"failed to read mnodeIpList.json, nodeInfos not found"
);
goto
PARSE_OVER
;
}
int
size
=
cJSON_GetArraySize
(
nodeInfos
);
if
(
size
!=
tsDMnodeInfos
.
nodeNum
)
{
dError
(
"failed to read mnode
mgmt
IpList.json, nodeInfos size not matched"
);
dError
(
"failed to read mnodeIpList.json, nodeInfos size not matched"
);
goto
PARSE_OVER
;
}
...
...
@@ -419,14 +419,14 @@ static bool dnodeReadMnodeInfos() {
cJSON
*
nodeId
=
cJSON_GetObjectItem
(
nodeInfo
,
"nodeId"
);
if
(
!
nodeId
||
nodeId
->
type
!=
cJSON_Number
)
{
dError
(
"failed to read mnode
mgmt
IpList.json, nodeId not found"
);
dError
(
"failed to read mnodeIpList.json, nodeId not found"
);
goto
PARSE_OVER
;
}
tsDMnodeInfos
.
nodeInfos
[
i
].
nodeId
=
nodeId
->
valueint
;
cJSON
*
nodeEp
=
cJSON_GetObjectItem
(
nodeInfo
,
"nodeEp"
);
if
(
!
nodeEp
||
nodeEp
->
type
!=
cJSON_String
||
nodeEp
->
valuestring
==
NULL
)
{
dError
(
"failed to read mnode
mgmt
IpList.json, nodeName not found"
);
dError
(
"failed to read mnodeIpList.json, nodeName not found"
);
goto
PARSE_OVER
;
}
strncpy
(
tsDMnodeInfos
.
nodeInfos
[
i
].
nodeEp
,
nodeEp
->
valuestring
,
TSDB_EP_LEN
);
...
...
@@ -448,7 +448,7 @@ PARSE_OVER:
static
void
dnodeSaveMnodeInfos
()
{
char
ipFile
[
TSDB_FILENAME_LEN
]
=
{
0
};
sprintf
(
ipFile
,
"%s/m
gmt
IpList.json"
,
tsDnodeDir
);
sprintf
(
ipFile
,
"%s/m
node
IpList.json"
,
tsDnodeDir
);
FILE
*
fp
=
fopen
(
ipFile
,
"w"
);
if
(
!
fp
)
return
;
...
...
src/dnode/src/dnodeModule.c
浏览文件 @
3528ed61
...
...
@@ -45,12 +45,12 @@ static void dnodeUnSetModuleStatus(int32_t module) {
}
static
void
dnodeAllocModules
()
{
tsModule
[
TSDB_MOD_M
GMT
].
enable
=
false
;
tsModule
[
TSDB_MOD_M
GMT
].
name
=
"mgmt
"
;
tsModule
[
TSDB_MOD_M
GMT
].
initFp
=
mnodeInitSystem
;
tsModule
[
TSDB_MOD_M
GMT
].
cleanUpFp
=
mnodeCleanupSystem
;
tsModule
[
TSDB_MOD_M
GMT
].
startFp
=
mnodeStartSystem
;
tsModule
[
TSDB_MOD_M
GMT
].
stopFp
=
mgmt
StopSystem
;
tsModule
[
TSDB_MOD_M
NODE
].
enable
=
false
;
tsModule
[
TSDB_MOD_M
NODE
].
name
=
"mnode
"
;
tsModule
[
TSDB_MOD_M
NODE
].
initFp
=
mnodeInitSystem
;
tsModule
[
TSDB_MOD_M
NODE
].
cleanUpFp
=
mnodeCleanupSystem
;
tsModule
[
TSDB_MOD_M
NODE
].
startFp
=
mnodeStartSystem
;
tsModule
[
TSDB_MOD_M
NODE
].
stopFp
=
mnode
StopSystem
;
tsModule
[
TSDB_MOD_HTTP
].
enable
=
(
tsEnableHttpModule
==
1
);
tsModule
[
TSDB_MOD_HTTP
].
name
=
"http"
;
...
...
@@ -93,8 +93,8 @@ void dnodeCleanUpModules() {
}
}
if
(
tsModule
[
TSDB_MOD_M
GMT
].
enable
&&
tsModule
[
TSDB_MOD_MGMT
].
cleanUpFp
)
{
(
*
tsModule
[
TSDB_MOD_M
GMT
].
cleanUpFp
)();
if
(
tsModule
[
TSDB_MOD_M
NODE
].
enable
&&
tsModule
[
TSDB_MOD_MNODE
].
cleanUpFp
)
{
(
*
tsModule
[
TSDB_MOD_M
NODE
].
cleanUpFp
)();
}
}
...
...
@@ -124,7 +124,7 @@ void dnodeStartModules() {
}
void
dnodeProcessModuleStatus
(
uint32_t
moduleStatus
)
{
for
(
int32_t
module
=
TSDB_MOD_M
GMT
;
module
<
TSDB_MOD_HTTP
;
++
module
)
{
for
(
int32_t
module
=
TSDB_MOD_M
NODE
;
module
<
TSDB_MOD_HTTP
;
++
module
)
{
bool
enableModule
=
moduleStatus
&
(
1
<<
module
);
if
(
!
tsModule
[
module
].
enable
&&
enableModule
)
{
dPrint
(
"module status:%u is received, start %s module"
,
tsModuleStatus
,
tsModule
[
module
].
name
);
...
...
src/inc/mnode.h
浏览文件 @
3528ed61
...
...
@@ -57,7 +57,7 @@ void mnodeCleanupMsg(SMnodeMsg *pMsg);
int32_t
mnodeInitSystem
();
int32_t
mnodeStartSystem
();
void
mnodeCleanupSystem
();
void
m
gmt
StopSystem
();
void
m
node
StopSystem
();
void
sdbUpdateSync
();
bool
mnodeIsRunning
();
int32_t
mnodeProcessRead
(
SMnodeMsg
*
pMsg
);
...
...
src/inc/taosdef.h
浏览文件 @
3528ed61
...
...
@@ -373,7 +373,7 @@ typedef enum {
}
ETableType
;
typedef
enum
{
TSDB_MOD_M
GMT
,
TSDB_MOD_M
NODE
,
TSDB_MOD_HTTP
,
TSDB_MOD_MONITOR
,
TSDB_MOD_MQTT
,
...
...
src/mnode/inc/mnodeDnode.h
浏览文件 @
3528ed61
...
...
@@ -28,7 +28,7 @@ typedef enum {
}
EDnodeStatus
;
int32_t
mnodeInitDnodes
();
void
m
gmt
CleanupDnodes
();
void
m
node
CleanupDnodes
();
char
*
mnodeGetDnodeStatusStr
(
int32_t
dnodeStatus
);
void
mgmtMonitorDnodeModule
();
...
...
src/mnode/inc/mnodeMnode.h
浏览文件 @
3528ed61
...
...
@@ -29,7 +29,7 @@ typedef enum {
}
EMnodeStatus
;
int32_t
mnodeInitMnodes
();
void
m
gmt
CleanupMnodes
();
void
m
node
CleanupMnodes
();
int32_t
mnodeAddMnode
(
int32_t
dnodeId
);
int32_t
mnodeDropMnode
(
int32_t
dnodeId
);
...
...
src/mnode/src/mnodeDb.c
浏览文件 @
3528ed61
...
...
@@ -381,7 +381,7 @@ bool mnodeCheckIsMonitorDB(char *db, char *monitordb) {
}
#if 0
void m
gmt
PrintVgroups(SDbObj *pDb, char *oper) {
void m
node
PrintVgroups(SDbObj *pDb, char *oper) {
mPrint("db:%s, vgroup link from head, oper:%s", pDb->name, oper);
SVgObj *pVgroup = pDb->pHead;
while (pVgroup != NULL) {
...
...
src/mnode/src/mnodeDnode.c
浏览文件 @
3528ed61
...
...
@@ -169,7 +169,7 @@ int32_t mnodeInitDnodes() {
return
0
;
}
void
m
gmt
CleanupDnodes
()
{
void
m
node
CleanupDnodes
()
{
sdbCloseTable
(
tsDnodeSdb
);
}
...
...
@@ -671,8 +671,8 @@ int32_t mnodeRetrieveModules(SShowObj *pShow, char *data, int32_t rows, void *pC
pWrite
=
data
+
pShow
->
offset
[
cols
]
*
rows
+
pShow
->
bytes
[
cols
]
*
numOfRows
;
switch
(
moduleType
)
{
case
TSDB_MOD_M
GMT
:
strcpy
(
pWrite
,
"m
gmt
"
);
case
TSDB_MOD_M
NODE
:
strcpy
(
pWrite
,
"m
node
"
);
break
;
case
TSDB_MOD_HTTP
:
strcpy
(
pWrite
,
"http"
);
...
...
src/mnode/src/mnodeMain.c
浏览文件 @
3528ed61
...
...
@@ -43,11 +43,11 @@ static bool mnodeNeedStart() ;
int32_t
mnodeStartSystem
()
{
if
(
tsMgmtIsRunning
)
{
mPrint
(
"
TDengine mgmt
module already started..."
);
mPrint
(
"
mnode
module already started..."
);
return
0
;
}
mPrint
(
"starting to initialize
TDengine mgmt
..."
);
mPrint
(
"starting to initialize
mnode
..."
);
struct
stat
dirstat
;
if
(
stat
(
tsMnodeDir
,
&
dirstat
)
<
0
)
{
mkdir
(
tsMnodeDir
,
0755
);
...
...
@@ -114,7 +114,7 @@ int32_t mnodeStartSystem() {
grantReset
(
TSDB_GRANT_ALL
,
0
);
tsMgmtIsRunning
=
true
;
mPrint
(
"
TDengine mgmt
is initialized successfully"
);
mPrint
(
"
mnode
is initialized successfully"
);
return
0
;
}
...
...
@@ -126,7 +126,7 @@ int32_t mnodeInitSystem() {
}
void
mnodeCleanupSystem
()
{
mPrint
(
"starting to clean up m
gmt
"
);
mPrint
(
"starting to clean up m
node
"
);
tsMgmtIsRunning
=
false
;
dnodeFreeMnodeWqueue
();
...
...
@@ -137,24 +137,24 @@ void mnodeCleanupSystem() {
grantCleanUp
();
balanceCleanUp
();
sdbCleanUp
();
m
gmt
CleanupMnodes
();
m
node
CleanupMnodes
();
mnodeCleanupTables
();
mnodeCleanupVgroups
();
mnodeCleanupDbs
();
m
gmt
CleanupDnodes
();
m
node
CleanupDnodes
();
mnodeCleanupUsers
();
mnodeCleanupAccts
();
mPrint
(
"m
gmt
is cleaned up"
);
mPrint
(
"m
node
is cleaned up"
);
}
void
m
gmt
StopSystem
()
{
void
m
node
StopSystem
()
{
if
(
sdbIsMaster
())
{
mTrace
(
"it is a master m
gmt
node, it could not be stopped"
);
mTrace
(
"it is a master mnode, it could not be stopped"
);
return
;
}
mnodeCleanupSystem
();
mPrint
(
"m
gmt
file is removed"
);
mPrint
(
"m
node
file is removed"
);
remove
(
tsMnodeDir
);
}
...
...
src/mnode/src/mnodeMnode.c
浏览文件 @
3528ed61
...
...
@@ -161,7 +161,7 @@ int32_t mnodeInitMnodes() {
return
TSDB_CODE_SUCCESS
;
}
void
m
gmt
CleanupMnodes
()
{
void
m
node
CleanupMnodes
()
{
sdbCloseTable
(
tsMnodeSdb
);
mnodeMnodeDestroyLock
();
}
...
...
src/mnode/src/mnodeTable.c
浏览文件 @
3528ed61
...
...
@@ -80,14 +80,14 @@ static int32_t mnodeProcessTableCfgMsg(SMnodeMsg *mnodeMsg);
static
int32_t
mnodeProcessTableMetaMsg
(
SMnodeMsg
*
mnodeMsg
);
static
int32_t
mnodeGetSuperTableMeta
(
SMnodeMsg
*
pMsg
);
static
int32_t
mnodeGetChildTableMeta
(
SMnodeMsg
*
pMsg
);
static
int32_t
m
gmt
AutoCreateChildTable
(
SMnodeMsg
*
pMsg
);
static
int32_t
m
node
AutoCreateChildTable
(
SMnodeMsg
*
pMsg
);
static
int32_t
mnodeProcessAlterTableMsg
(
SMnodeMsg
*
mnodeMsg
);
static
void
mnodeProcessAlterTableRsp
(
SRpcMsg
*
rpcMsg
);
static
int32_t
mnodeFindSuperTableColumnIndex
(
SSuperTableObj
*
pStable
,
char
*
colName
);
static
void
m
gmt
DestroyChildTable
(
SChildTableObj
*
pTable
)
{
static
void
m
node
DestroyChildTable
(
SChildTableObj
*
pTable
)
{
tfree
(
pTable
->
info
.
tableId
);
tfree
(
pTable
->
schema
);
tfree
(
pTable
->
sql
);
...
...
@@ -95,7 +95,7 @@ static void mgmtDestroyChildTable(SChildTableObj *pTable) {
}
static
int32_t
mnodeChildTableActionDestroy
(
SSdbOper
*
pOper
)
{
m
gmt
DestroyChildTable
(
pOper
->
pObj
);
m
node
DestroyChildTable
(
pOper
->
pObj
);
return
TSDB_CODE_SUCCESS
;
}
...
...
@@ -248,7 +248,7 @@ static int32_t mnodeChildTableActionDecode(SSdbOper *pOper) {
int32_t
schemaSize
=
pTable
->
numOfColumns
*
sizeof
(
SSchema
);
pTable
->
schema
=
(
SSchema
*
)
malloc
(
schemaSize
);
if
(
pTable
->
schema
==
NULL
)
{
m
gmt
DestroyChildTable
(
pTable
);
m
node
DestroyChildTable
(
pTable
);
return
TSDB_CODE_INVALID_TABLE_TYPE
;
}
memcpy
(
pTable
->
schema
,
pOper
->
rowData
+
len
,
schemaSize
);
...
...
@@ -257,7 +257,7 @@ static int32_t mnodeChildTableActionDecode(SSdbOper *pOper) {
if
(
pTable
->
sqlLen
!=
0
)
{
pTable
->
sql
=
malloc
(
pTable
->
sqlLen
);
if
(
pTable
->
sql
==
NULL
)
{
m
gmt
DestroyChildTable
(
pTable
);
m
node
DestroyChildTable
(
pTable
);
return
TSDB_CODE_SERV_OUT_OF_MEMORY
;
}
memcpy
(
pTable
->
sql
,
pOper
->
rowData
+
len
,
pTable
->
sqlLen
);
...
...
@@ -395,7 +395,7 @@ static void mnodeRemoveTableFromStable(SSuperTableObj *pStable, SChildTableObj *
mnodeDecVgroupRef
(
pVgroup
);
}
static
void
m
gmt
DestroySuperTable
(
SSuperTableObj
*
pStable
)
{
static
void
m
node
DestroySuperTable
(
SSuperTableObj
*
pStable
)
{
if
(
pStable
->
vgHash
!=
NULL
)
{
taosHashCleanup
(
pStable
->
vgHash
);
pStable
->
vgHash
=
NULL
;
...
...
@@ -406,7 +406,7 @@ static void mgmtDestroySuperTable(SSuperTableObj *pStable) {
}
static
int32_t
mnodeSuperTableActionDestroy
(
SSdbOper
*
pOper
)
{
m
gmt
DestroySuperTable
(
pOper
->
pObj
);
m
node
DestroySuperTable
(
pOper
->
pObj
);
return
TSDB_CODE_SUCCESS
;
}
...
...
@@ -489,7 +489,7 @@ static int32_t mnodeSuperTableActionDecode(SSdbOper *pOper) {
int32_t
schemaSize
=
sizeof
(
SSchema
)
*
(
pStable
->
numOfColumns
+
pStable
->
numOfTags
);
pStable
->
schema
=
malloc
(
schemaSize
);
if
(
pStable
->
schema
==
NULL
)
{
m
gmt
DestroySuperTable
(
pStable
);
m
node
DestroySuperTable
(
pStable
);
return
TSDB_CODE_NOT_SUPER_TABLE
;
}
...
...
@@ -646,7 +646,7 @@ void mnodeCleanupTables() {
}
// todo move to name.h, add length of table name
static
void
m
gmt
ExtractTableName
(
char
*
tableId
,
char
*
name
)
{
static
void
m
node
ExtractTableName
(
char
*
tableId
,
char
*
name
)
{
int
pos
=
-
1
;
int
num
=
0
;
for
(
pos
=
0
;
tableId
[
pos
]
!=
0
;
++
pos
)
{
...
...
@@ -742,7 +742,7 @@ static int32_t mnodeProcessTableMetaMsg(SMnodeMsg *pMsg) {
return
TSDB_CODE_INVALID_TABLE
;
}
else
{
mTrace
(
"table:%s, failed to get table meta, start auto create table "
,
pInfo
->
tableId
);
return
m
gmt
AutoCreateChildTable
(
pMsg
);
return
m
node
AutoCreateChildTable
(
pMsg
);
}
}
else
{
if
(
pMsg
->
pTable
->
type
!=
TSDB_SUPER_TABLE
)
{
...
...
@@ -799,7 +799,7 @@ static int32_t mnodeProcessCreateSuperTableMsg(SMnodeMsg *pMsg) {
int32_t
code
=
sdbInsertRow
(
&
oper
);
if
(
code
!=
TSDB_CODE_SUCCESS
)
{
m
gmt
DestroySuperTable
(
pStable
);
m
node
DestroySuperTable
(
pStable
);
mError
(
"table:%s, failed to create, sdb error"
,
pCreate
->
tableId
);
return
TSDB_CODE_SDB_ERROR
;
}
else
{
...
...
@@ -821,7 +821,7 @@ static int32_t mnodeProcessDropSuperTableMsg(SMnodeMsg *pMsg) {
pDrop
->
contLen
=
htonl
(
sizeof
(
SMDDropSTableMsg
));
pDrop
->
vgId
=
htonl
(
pVgroup
->
vgId
);
pDrop
->
uid
=
htobe64
(
pStable
->
uid
);
m
gmt
ExtractTableName
(
pStable
->
info
.
tableId
,
pDrop
->
tableId
);
m
node
ExtractTableName
(
pStable
->
info
.
tableId
,
pDrop
->
tableId
);
mPrint
(
"stable:%s, send drop stable msg to vgId:%d"
,
pStable
->
info
.
tableId
,
pVgroup
->
vgId
);
SRpcIpSet
ipSet
=
mnodeGetIpSetFromVgroup
(
pVgroup
);
...
...
@@ -1146,7 +1146,7 @@ int32_t mnodeRetrieveShowSuperTables(SShowObj *pShow, char *data, int32_t rows,
}
memset
(
stableName
,
0
,
tListLen
(
stableName
));
m
gmt
ExtractTableName
(
pTable
->
info
.
tableId
,
stableName
);
m
node
ExtractTableName
(
pTable
->
info
.
tableId
,
stableName
);
if
(
pShow
->
payloadLen
>
0
&&
patternMatch
(
pShow
->
payload
,
stableName
,
TSDB_TABLE_NAME_LEN
,
&
info
)
!=
TSDB_PATTERN_MATCH
)
{
mnodeDecTableRef
(
pTable
);
...
...
@@ -1325,7 +1325,7 @@ static void mnodeProcessDropSuperTableRsp(SRpcMsg *rpcMsg) {
mPrint
(
"drop stable rsp received, result:%s"
,
tstrerror
(
rpcMsg
->
code
));
}
static
void
*
m
gmt
BuildCreateChildTableMsg
(
SCMCreateTableMsg
*
pMsg
,
SChildTableObj
*
pTable
)
{
static
void
*
m
node
BuildCreateChildTableMsg
(
SCMCreateTableMsg
*
pMsg
,
SChildTableObj
*
pTable
)
{
STagData
*
pTagData
=
NULL
;
int32_t
tagDataLen
=
0
;
int32_t
totalCols
=
0
;
...
...
@@ -1346,7 +1346,7 @@ static void *mgmtBuildCreateChildTableMsg(SCMCreateTableMsg *pMsg, SChildTableOb
return
NULL
;
}
m
gmt
ExtractTableName
(
pTable
->
info
.
tableId
,
pCreate
->
tableId
);
m
node
ExtractTableName
(
pTable
->
info
.
tableId
,
pCreate
->
tableId
);
pCreate
->
contLen
=
htonl
(
contLen
);
pCreate
->
vgId
=
htonl
(
pTable
->
vgId
);
pCreate
->
tableType
=
pTable
->
info
.
type
;
...
...
@@ -1356,7 +1356,7 @@ static void *mgmtBuildCreateChildTableMsg(SCMCreateTableMsg *pMsg, SChildTableOb
pCreate
->
uid
=
htobe64
(
pTable
->
uid
);
if
(
pTable
->
info
.
type
==
TSDB_CHILD_TABLE
)
{
m
gmt
ExtractTableName
(
pTable
->
superTable
->
info
.
tableId
,
pCreate
->
superTableId
);
m
node
ExtractTableName
(
pTable
->
superTable
->
info
.
tableId
,
pCreate
->
superTableId
);
pCreate
->
numOfColumns
=
htons
(
pTable
->
superTable
->
numOfColumns
);
pCreate
->
numOfTags
=
htons
(
pTable
->
superTable
->
numOfTags
);
pCreate
->
sversion
=
htonl
(
pTable
->
superTable
->
sversion
);
...
...
@@ -1516,7 +1516,7 @@ static int32_t mnodeProcessCreateChildTableMsg(SMnodeMsg *pMsg) {
return
terrno
;
}
SMDCreateTableMsg
*
pMDCreate
=
m
gmt
BuildCreateChildTableMsg
(
pCreate
,
(
SChildTableObj
*
)
pMsg
->
pTable
);
SMDCreateTableMsg
*
pMDCreate
=
m
node
BuildCreateChildTableMsg
(
pCreate
,
(
SChildTableObj
*
)
pMsg
->
pTable
);
if
(
pMDCreate
==
NULL
)
{
return
terrno
;
}
...
...
@@ -1723,7 +1723,7 @@ static int32_t mnodeDoGetChildTableMeta(SMnodeMsg *pMsg, STableMetaMsg *pMeta) {
return
TSDB_CODE_SUCCESS
;
}
static
int32_t
m
gmt
AutoCreateChildTable
(
SMnodeMsg
*
pMsg
)
{
static
int32_t
m
node
AutoCreateChildTable
(
SMnodeMsg
*
pMsg
)
{
SCMTableInfoMsg
*
pInfo
=
pMsg
->
rpcMsg
.
pCont
;
STagData
*
pTag
=
(
STagData
*
)
pInfo
->
tags
;
...
...
@@ -1879,7 +1879,7 @@ static int32_t mnodeProcessTableCfgMsg(SMnodeMsg *pMsg) {
}
SMDCreateTableMsg
*
pMDCreate
=
NULL
;
pMDCreate
=
m
gmt
BuildCreateChildTableMsg
(
NULL
,
(
SChildTableObj
*
)
pTable
);
pMDCreate
=
m
node
BuildCreateChildTableMsg
(
NULL
,
(
SChildTableObj
*
)
pTable
);
if
(
pMDCreate
==
NULL
)
{
mnodeDecTableRef
(
pTable
);
return
terrno
;
...
...
@@ -2098,7 +2098,7 @@ static int32_t mnodeGetShowTableMeta(STableMetaMsg *pMeta, SShowObj *pShow, void
return
0
;
}
static
void
m
gmt
VacuumResult
(
char
*
data
,
int32_t
numOfCols
,
int32_t
rows
,
int32_t
capacity
,
SShowObj
*
pShow
)
{
static
void
m
node
VacuumResult
(
char
*
data
,
int32_t
numOfCols
,
int32_t
rows
,
int32_t
capacity
,
SShowObj
*
pShow
)
{
if
(
rows
<
capacity
)
{
for
(
int32_t
i
=
0
;
i
<
numOfCols
;
++
i
)
{
memmove
(
data
+
pShow
->
offset
[
i
]
*
rows
,
data
+
pShow
->
offset
[
i
]
*
capacity
,
pShow
->
bytes
[
i
]
*
rows
);
...
...
@@ -2132,7 +2132,7 @@ static int32_t mnodeRetrieveShowTables(SShowObj *pShow, char *data, int32_t rows
char
tableName
[
TSDB_TABLE_NAME_LEN
+
1
]
=
{
0
};
// pattern compare for table name
m
gmt
ExtractTableName
(
pTable
->
info
.
tableId
,
tableName
);
m
node
ExtractTableName
(
pTable
->
info
.
tableId
,
tableName
);
if
(
pShow
->
payloadLen
>
0
&&
patternMatch
(
pShow
->
payload
,
tableName
,
TSDB_TABLE_NAME_LEN
,
&
info
)
!=
TSDB_PATTERN_MATCH
)
{
mnodeDecTableRef
(
pTable
);
...
...
@@ -2163,7 +2163,7 @@ static int32_t mnodeRetrieveShowTables(SShowObj *pShow, char *data, int32_t rows
memset
(
tableName
,
0
,
tListLen
(
tableName
));
if
(
pTable
->
info
.
type
==
TSDB_CHILD_TABLE
)
{
m
gmt
ExtractTableName
(
pTable
->
superTable
->
info
.
tableId
,
tableName
);
m
node
ExtractTableName
(
pTable
->
superTable
->
info
.
tableId
,
tableName
);
STR_WITH_MAXSIZE_TO_VARSTR
(
pWrite
,
tableName
,
TSDB_TABLE_NAME_LEN
);
}
...
...
@@ -2176,7 +2176,7 @@ static int32_t mnodeRetrieveShowTables(SShowObj *pShow, char *data, int32_t rows
pShow
->
numOfReads
+=
numOfRows
;
const
int32_t
NUM_OF_COLUMNS
=
4
;
m
gmt
VacuumResult
(
data
,
NUM_OF_COLUMNS
,
numOfRows
,
rows
,
pShow
);
m
node
VacuumResult
(
data
,
NUM_OF_COLUMNS
,
numOfRows
,
rows
,
pShow
);
mnodeDecDbRef
(
pDb
);
return
numOfRows
;
...
...
src/mnode/src/mnodeVgroup.c
浏览文件 @
3528ed61
...
...
@@ -284,7 +284,7 @@ void mnodeUpdateVgroupStatus(SVgObj *pVgroup, SDnodeObj *pDnode, SVnodeLoad *pVl
}
if
(
pVload
->
cfgVersion
!=
pVgroup
->
pDb
->
cfgVersion
||
pVload
->
replica
!=
pVgroup
->
numOfVnodes
)
{
mError
(
"dnode:%d, vgId:%d, vnode cfgVersion:%d repica:%d not match with m
gmt
cfgVersion:%d replica:%d"
,
mError
(
"dnode:%d, vgId:%d, vnode cfgVersion:%d repica:%d not match with m
node
cfgVersion:%d replica:%d"
,
pDnode
->
dnodeId
,
pVload
->
vgId
,
pVload
->
cfgVersion
,
pVload
->
replica
,
pVgroup
->
pDb
->
cfgVersion
,
pVgroup
->
numOfVnodes
);
mnodeSendCreateVgroupMsg
(
pVgroup
,
NULL
);
...
...
@@ -532,7 +532,7 @@ void mnodeRemoveTableFromVgroup(SVgObj *pVgroup, SChildTableObj *pTable) {
mnodeDecVgroupRef
(
pVgroup
);
}
SMDCreateVnodeMsg
*
m
gmt
BuildCreateVnodeMsg
(
SVgObj
*
pVgroup
)
{
SMDCreateVnodeMsg
*
m
node
BuildCreateVnodeMsg
(
SVgObj
*
pVgroup
)
{
SDbObj
*
pDb
=
pVgroup
->
pDb
;
if
(
pDb
==
NULL
)
return
NULL
;
...
...
@@ -595,7 +595,7 @@ SRpcIpSet mnodeGetIpSetFromIp(char *ep) {
void
mnodeSendCreateVnodeMsg
(
SVgObj
*
pVgroup
,
SRpcIpSet
*
ipSet
,
void
*
ahandle
)
{
mTrace
(
"vgId:%d, send create vnode:%d msg, ahandle:%p"
,
pVgroup
->
vgId
,
pVgroup
->
vgId
,
ahandle
);
SMDCreateVnodeMsg
*
pCreate
=
m
gmt
BuildCreateVnodeMsg
(
pVgroup
);
SMDCreateVnodeMsg
*
pCreate
=
m
node
BuildCreateVnodeMsg
(
pVgroup
);
SRpcMsg
rpcMsg
=
{
.
handle
=
ahandle
,
.
pCont
=
pCreate
,
...
...
@@ -648,7 +648,7 @@ static void mnodeProcessCreateVnodeRsp(SRpcMsg *rpcMsg) {
}
}
static
SMDDropVnodeMsg
*
m
gmt
BuildDropVnodeMsg
(
int32_t
vgId
)
{
static
SMDDropVnodeMsg
*
m
node
BuildDropVnodeMsg
(
int32_t
vgId
)
{
SMDDropVnodeMsg
*
pDrop
=
rpcMallocCont
(
sizeof
(
SMDDropVnodeMsg
));
if
(
pDrop
==
NULL
)
return
NULL
;
...
...
@@ -657,7 +657,7 @@ static SMDDropVnodeMsg *mgmtBuildDropVnodeMsg(int32_t vgId) {
}
void
mnodeSendDropVnodeMsg
(
int32_t
vgId
,
SRpcIpSet
*
ipSet
,
void
*
ahandle
)
{
SMDDropVnodeMsg
*
pDrop
=
m
gmt
BuildDropVnodeMsg
(
vgId
);
SMDDropVnodeMsg
*
pDrop
=
m
node
BuildDropVnodeMsg
(
vgId
);
SRpcMsg
rpcMsg
=
{
.
handle
=
ahandle
,
.
pCont
=
pDrop
,
...
...
tests/pytest/util/dnodes.py
浏览文件 @
3528ed61
...
...
@@ -159,7 +159,7 @@ class TDDnode:
self
.
cfg
(
"dataDir"
,
self
.
dataDir
)
self
.
cfg
(
"logDir"
,
self
.
logDir
)
self
.
cfg
(
"numOfLogLines"
,
"100000000"
)
self
.
cfg
(
"m
gmt
EqualVnodeNum"
,
"0"
)
self
.
cfg
(
"m
node
EqualVnodeNum"
,
"0"
)
self
.
cfg
(
"clog"
,
"1"
)
self
.
cfg
(
"statusInterval"
,
"1"
)
self
.
cfg
(
"numOfTotalVnodes"
,
"64"
)
...
...
tests/script/general/alter/count.sim
浏览文件 @
3528ed61
...
...
@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
print ========= start dnode1 as master
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/alter/import.sim
浏览文件 @
3528ed61
...
...
@@ -4,7 +4,7 @@ system sh/deploy.sh -n dnode1 -i 1
system sh/cfg.sh -n dnode1 -c wallevel -v 0
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
print ========= start dnode1 as master
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/db/backup/keep.sim
浏览文件 @
3528ed61
...
...
@@ -12,9 +12,9 @@ system sh/cfg.sh -n dnode3 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
print ========= start dnode1 as master
system sh/exec.sh -n dnode1 -s start
...
...
tests/script/general/db/delete_reuse1.sim
浏览文件 @
3528ed61
...
...
@@ -15,10 +15,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/general/db/delete_reuse2.sim
浏览文件 @
3528ed61
...
...
@@ -15,10 +15,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/general/db/delete_writing1.sim
浏览文件 @
3528ed61
...
...
@@ -15,10 +15,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/general/import/basic.sim
浏览文件 @
3528ed61
...
...
@@ -9,10 +9,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
...
...
tests/script/general/import/commit.sim
浏览文件 @
3528ed61
...
...
@@ -9,10 +9,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
...
...
tests/script/general/import/large.sim
浏览文件 @
3528ed61
...
...
@@ -9,10 +9,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
...
...
tests/script/general/import/replica1.sim
浏览文件 @
3528ed61
...
...
@@ -10,10 +10,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
...
...
tests/script/general/table/delete_reuse1.sim
浏览文件 @
3528ed61
...
...
@@ -14,10 +14,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/general/table/delete_reuse2.sim
浏览文件 @
3528ed61
...
...
@@ -14,10 +14,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/general/table/delete_writing.sim
浏览文件 @
3528ed61
...
...
@@ -14,10 +14,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/sh/clear.sh
浏览文件 @
3528ed61
...
...
@@ -106,7 +106,7 @@ echo "monitor 0" >> $TAOS_CFG
echo
"numOfThreadsPerCore 2.0"
>>
$TAOS_CFG
echo
"defaultPass taosdata"
>>
$TAOS_CFG
echo
"numOfLogLines 100000000"
>>
$TAOS_CFG
echo
"m
gmt
EqualVnodeNum 0"
>>
$TAOS_CFG
echo
"m
node
EqualVnodeNum 0"
>>
$TAOS_CFG
echo
"clog 0"
>>
$TAOS_CFG
echo
"statusInterval 1"
>>
$TAOS_CFG
echo
"numOfTotalVnodes 4"
>>
$TAOS_CFG
...
...
tests/script/sh/deploy.sh
浏览文件 @
3528ed61
...
...
@@ -115,7 +115,7 @@ echo "http 0" >> $TAOS_CFG
echo
"numOfThreadsPerCore 2.0"
>>
$TAOS_CFG
echo
"defaultPass taosdata"
>>
$TAOS_CFG
echo
"numOfLogLines 100000000"
>>
$TAOS_CFG
echo
"m
gmt
EqualVnodeNum 0"
>>
$TAOS_CFG
echo
"m
node
EqualVnodeNum 0"
>>
$TAOS_CFG
echo
"clog 2"
>>
$TAOS_CFG
echo
"statusInterval 1"
>>
$TAOS_CFG
echo
"numOfTotalVnodes 4"
>>
$TAOS_CFG
...
...
tests/script/tmp/prepare.sim
浏览文件 @
3528ed61
...
...
@@ -15,10 +15,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/cluster/balance1.sim
浏览文件 @
3528ed61
...
...
@@ -26,14 +26,14 @@ system sh/cfg.sh -n dnode6 -c numOfMpeers -v 3
system sh/cfg.sh -n dnode7 -c numOfMpeers -v 3
system sh/cfg.sh -n dnode8 -c numOfMpeers -v 3
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode5 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode6 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode7 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode8 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode5 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode6 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode7 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode8 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/cluster/balance2.sim
浏览文件 @
3528ed61
...
...
@@ -35,14 +35,14 @@ system sh/cfg.sh -n dnode6 -c wallevel -v 1
system sh/cfg.sh -n dnode7 -c wallevel -v 1
system sh/cfg.sh -n dnode8 -c wallevel -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode5 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode6 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode7 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode8 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode5 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode6 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode7 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode8 -c m
node
EqualVnodeNum -v 0
print ============== step1
print ========= start dnode1
...
...
tests/script/unique/cluster/balance3.sim
浏览文件 @
3528ed61
...
...
@@ -27,14 +27,14 @@ system sh/cfg.sh -n dnode6 -c numOfMpeers -v 3
system sh/cfg.sh -n dnode7 -c numOfMpeers -v 3
system sh/cfg.sh -n dnode8 -c numOfMpeers -v 3
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode5 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode6 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode7 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode8 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode5 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode6 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode7 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode8 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/db/commit.sim
浏览文件 @
3528ed61
...
...
@@ -9,9 +9,9 @@ system sh/cfg.sh -n dnode3 -c walLevel -v 2
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
print ========= start dnode1 as master
system sh/exec_up.sh -n dnode1 -s start
...
...
tests/script/unique/db/delete_part.sim
浏览文件 @
3528ed61
...
...
@@ -14,10 +14,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/db/replica_add12.sim
浏览文件 @
3528ed61
...
...
@@ -15,10 +15,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/db/replica_add13.sim
浏览文件 @
3528ed61
...
...
@@ -15,10 +15,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/db/replica_add23.sim
浏览文件 @
3528ed61
...
...
@@ -15,10 +15,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/db/replica_part.sim
浏览文件 @
3528ed61
...
...
@@ -10,9 +10,9 @@ system sh/cfg.sh -n dnode3 -c wallevel -v 2
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode3 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/db/replica_reduce21.sim
浏览文件 @
3528ed61
...
...
@@ -10,9 +10,9 @@ system sh/cfg.sh -n dnode3 -c wallevel -v 2
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode3 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/db/replica_reduce31.sim
浏览文件 @
3528ed61
...
...
@@ -10,9 +10,9 @@ system sh/cfg.sh -n dnode3 -c wallevel -v 2
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode3 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/db/replica_reduce32.sim
浏览文件 @
3528ed61
...
...
@@ -10,9 +10,9 @@ system sh/cfg.sh -n dnode3 -c wallevel -v 2
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode3 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/dnode/balance1.sim
浏览文件 @
3528ed61
...
...
@@ -10,10 +10,10 @@ system sh/cfg.sh -n dnode2 -c balanceInterval -v 10
system sh/cfg.sh -n dnode3 -c balanceInterval -v 10
system sh/cfg.sh -n dnode4 -c balanceInterval -v 10
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 2
system sh/cfg.sh -n dnode2 -c wallevel -v 2
...
...
tests/script/unique/dnode/balance2.sim
浏览文件 @
3528ed61
...
...
@@ -6,11 +6,11 @@ system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/deploy.sh -n dnode5 -i 5
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode5 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode5 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/dnode/balance3.sim
浏览文件 @
3528ed61
...
...
@@ -7,12 +7,12 @@ system sh/deploy.sh -n dnode4 -i 4
system sh/deploy.sh -n dnode5 -i 5
system sh/deploy.sh -n dnode6 -i 6
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode5 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode6 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode5 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode6 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/dnode/balancex.sim
浏览文件 @
3528ed61
...
...
@@ -5,10 +5,10 @@ system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/dnode/monitor_bug.sim
浏览文件 @
3528ed61
...
...
@@ -3,8 +3,8 @@ system sh/stop_dnodes.sh
system sh/deploy.sh -n dnode1 -i 1
system sh/deploy.sh -n dnode2 -i 2
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/dnode/offline1.sim
浏览文件 @
3528ed61
...
...
@@ -12,9 +12,9 @@ system sh/cfg.sh -n dnode1 -c balanceInterval -v 5
system sh/cfg.sh -n dnode2 -c balanceInterval -v 5
system sh/cfg.sh -n dnode3 -c balanceInterval -v 5
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/dnode/offline2.sim
浏览文件 @
3528ed61
...
...
@@ -12,9 +12,9 @@ system sh/cfg.sh -n dnode1 -c balanceInterval -v 5
system sh/cfg.sh -n dnode2 -c balanceInterval -v 5
system sh/cfg.sh -n dnode3 -c balanceInterval -v 5
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/dnode/remove1.sim
浏览文件 @
3528ed61
...
...
@@ -5,10 +5,10 @@ system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/dnode/remove2.sim
浏览文件 @
3528ed61
...
...
@@ -5,10 +5,10 @@ system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 2
system sh/cfg.sh -n dnode2 -c wallevel -v 2
...
...
tests/script/unique/dnode/vnode_clean.sim
浏览文件 @
3528ed61
...
...
@@ -5,10 +5,10 @@ system sh/deploy.sh -n dnode2 -i 2
system sh/deploy.sh -n dnode3 -i 3
system sh/deploy.sh -n dnode4 -i 4
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c wallevel -v 1
system sh/cfg.sh -n dnode2 -c wallevel -v 1
...
...
tests/script/unique/import/replica2.sim
浏览文件 @
3528ed61
...
...
@@ -10,10 +10,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
...
...
tests/script/unique/import/replica3.sim
浏览文件 @
3528ed61
...
...
@@ -10,10 +10,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 10
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 2000
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 2000
...
...
tests/script/unique/stable/balance_replica1.sim
浏览文件 @
3528ed61
...
...
@@ -9,8 +9,8 @@ system sh/cfg.sh -n dnode1 -c balanceInterval -v 10
system sh/cfg.sh -n dnode2 -c balanceInterval -v 10
system sh/cfg.sh -n dnode1 -c walLevel -v 2
system sh/cfg.sh -n dnode2 -c walLevel -v 2
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 4
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 4
...
...
tests/script/unique/stream/metrics_balance.sim
浏览文件 @
3528ed61
...
...
@@ -12,8 +12,8 @@ system sh/cfg.sh -n dnode1 -c balanceInterval -v 10
system sh/cfg.sh -n dnode2 -c balanceInterval -v 10
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode2 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode2 -c maxTablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c tableMetaKeepTimer -v 5
...
...
tests/script/unique/stream/table_balance.sim
浏览文件 @
3528ed61
...
...
@@ -12,8 +12,8 @@ system sh/cfg.sh -n dnode1 -c balanceInterval -v 10
system sh/cfg.sh -n dnode2 -c balanceInterval -v 10
system sh/cfg.sh -n dnode1 -c walLevel -v 0
system sh/cfg.sh -n dnode2 -c walLevel -v 0
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 4
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 4
system sh/cfg.sh -n dnode1 -c numOfMPeers -v 2
...
...
tests/script/unique/stream/table_move.sim
浏览文件 @
3528ed61
...
...
@@ -30,10 +30,10 @@ system sh/cfg.sh -n dnode2 -c wallevel -v 1
system sh/cfg.sh -n dnode3 -c wallevel -v 1
system sh/cfg.sh -n dnode4 -c wallevel -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 0
system sh/cfg.sh -n dnode1 -c maxtablesPerVnode -v 4
system sh/cfg.sh -n dnode2 -c maxtablesPerVnode -v 4
...
...
tests/script/unique/vnode/many.sim
浏览文件 @
3528ed61
...
...
@@ -12,10 +12,10 @@ system sh/cfg.sh -n dnode1 -c numofMpeers -v 1
system sh/cfg.sh -n dnode2 -c numofMpeers -v 1
system sh/cfg.sh -n dnode3 -c numofMpeers -v 1
system sh/cfg.sh -n dnode4 -c numofMpeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode3 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/vnode/replica2_basic2.sim
浏览文件 @
3528ed61
...
...
@@ -15,10 +15,10 @@ system sh/cfg.sh -n dnode2 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode3 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode4 -c numOfMPeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c numOfTotalVnodes -v 4
system sh/cfg.sh -n dnode2 -c numOfTotalVnodes -v 4
...
...
tests/script/unique/vnode/replica2_repeat.sim
浏览文件 @
3528ed61
...
...
@@ -12,10 +12,10 @@ system sh/cfg.sh -n dnode1 -c numofMpeers -v 1
system sh/cfg.sh -n dnode2 -c numofMpeers -v 1
system sh/cfg.sh -n dnode3 -c numofMpeers -v 1
system sh/cfg.sh -n dnode4 -c numofMpeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/exec_up.sh -n dnode1 -s start
sql connect
...
...
tests/script/unique/vnode/replica3_repeat.sim
浏览文件 @
3528ed61
...
...
@@ -12,10 +12,10 @@ system sh/cfg.sh -n dnode1 -c numofMpeers -v 1
system sh/cfg.sh -n dnode2 -c numofMpeers -v 1
system sh/cfg.sh -n dnode3 -c numofMpeers -v 1
system sh/cfg.sh -n dnode4 -c numofMpeers -v 1
system sh/cfg.sh -n dnode1 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
gmt
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode1 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode2 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode3 -c m
node
EqualVnodeNum -v 4
system sh/cfg.sh -n dnode4 -c m
node
EqualVnodeNum -v 4
system sh/exec_up.sh -n dnode1 -s start
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录