Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c4ee7142
T
TDengine
项目概览
taosdata
/
TDengine
11 个月 前同步成功
通知
1179
Star
22014
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c4ee7142
编写于
4月 10, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix[cluster]: manage mnode in multi-process mode
上级
3feca940
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
5 deletion
+15
-5
source/dnode/mgmt/main/dndTransport.c
source/dnode/mgmt/main/dndTransport.c
+2
-1
source/dnode/mgmt/mm/mmHandle.c
source/dnode/mgmt/mm/mmHandle.c
+1
-1
source/dnode/mgmt/mm/mmInt.c
source/dnode/mgmt/mm/mmInt.c
+3
-0
source/dnode/mgmt/test/mnode/dmnode.cpp
source/dnode/mgmt/test/mnode/dmnode.cpp
+1
-1
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+8
-2
未找到文件。
source/dnode/mgmt/main/dndTransport.c
浏览文件 @
c4ee7142
...
@@ -448,7 +448,8 @@ static void dndConsumeChildQueue(SMgmtWrapper *pWrapper, SNodeMsg *pMsg, int16_t
...
@@ -448,7 +448,8 @@ static void dndConsumeChildQueue(SMgmtWrapper *pWrapper, SNodeMsg *pMsg, int16_t
static
void
dndConsumeParentQueue
(
SMgmtWrapper
*
pWrapper
,
SRpcMsg
*
pMsg
,
int16_t
msgLen
,
void
*
pCont
,
int32_t
contLen
,
static
void
dndConsumeParentQueue
(
SMgmtWrapper
*
pWrapper
,
SRpcMsg
*
pMsg
,
int16_t
msgLen
,
void
*
pCont
,
int32_t
contLen
,
ProcFuncType
ftype
)
{
ProcFuncType
ftype
)
{
pMsg
->
pCont
=
pCont
;
pMsg
->
pCont
=
pCont
;
dTrace
(
"msg:%p, get from parent queue, ftype:%d handle:%p, app:%p"
,
pMsg
,
ftype
,
pMsg
->
handle
,
pMsg
->
ahandle
);
dTrace
(
"msg:%p, get from parent queue, ftype:%d handle:%p code:0x%04x mtype:%d, app:%p"
,
pMsg
,
ftype
,
pMsg
->
handle
,
pMsg
->
code
&
0xFFFF
,
pMsg
->
msgType
,
pMsg
->
ahandle
);
switch
(
ftype
)
{
switch
(
ftype
)
{
case
PROC_REGIST
:
case
PROC_REGIST
:
...
...
source/dnode/mgmt/mm/mmHandle.c
浏览文件 @
c4ee7142
...
@@ -96,7 +96,7 @@ int32_t mmProcessAlterReq(SMnodeMgmt *pMgmt, SNodeMsg *pMsg) {
...
@@ -96,7 +96,7 @@ int32_t mmProcessAlterReq(SMnodeMgmt *pMgmt, SNodeMsg *pMsg) {
if
(
alterReq
.
dnodeId
!=
pDnode
->
dnodeId
)
{
if
(
alterReq
.
dnodeId
!=
pDnode
->
dnodeId
)
{
terrno
=
TSDB_CODE_INVALID_OPTION
;
terrno
=
TSDB_CODE_INVALID_OPTION
;
dError
(
"failed to alter mnode since %s
"
,
terrstr
()
);
dError
(
"failed to alter mnode since %s
, dnodeId:%d input:%d"
,
terrstr
(),
pDnode
->
dnodeId
,
alterReq
.
dnodeId
);
return
-
1
;
return
-
1
;
}
else
{
}
else
{
return
mmAlter
(
pMgmt
,
&
alterReq
);
return
mmAlter
(
pMgmt
,
&
alterReq
);
...
...
source/dnode/mgmt/mm/mmInt.c
浏览文件 @
c4ee7142
...
@@ -112,6 +112,9 @@ static int32_t mmOpenImp(SMnodeMgmt *pMgmt, SDCreateMnodeReq *pReq) {
...
@@ -112,6 +112,9 @@ static int32_t mmOpenImp(SMnodeMgmt *pMgmt, SDCreateMnodeReq *pReq) {
if
(
!
deployed
)
{
if
(
!
deployed
)
{
dInfo
(
"mnode start to deploy"
);
dInfo
(
"mnode start to deploy"
);
if
(
pMgmt
->
pWrapper
->
procType
==
PROC_CHILD
)
{
pMgmt
->
pDnode
->
dnodeId
=
1
;
}
mmBuildOptionForDeploy
(
pMgmt
,
&
option
);
mmBuildOptionForDeploy
(
pMgmt
,
&
option
);
}
else
{
}
else
{
dInfo
(
"mnode start to open"
);
dInfo
(
"mnode start to open"
);
...
...
source/dnode/mgmt/test/mnode/dmnode.cpp
浏览文件 @
c4ee7142
...
@@ -188,7 +188,7 @@ TEST_F(DndTestMnode, 03_Drop_Mnode) {
...
@@ -188,7 +188,7 @@ TEST_F(DndTestMnode, 03_Drop_Mnode) {
SRpcMsg
*
pRsp
=
test
.
SendReq
(
TDMT_DND_ALTER_MNODE
,
pReq
,
contLen
);
SRpcMsg
*
pRsp
=
test
.
SendReq
(
TDMT_DND_ALTER_MNODE
,
pReq
,
contLen
);
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_NE
(
pRsp
,
nullptr
);
ASSERT_EQ
(
pRsp
->
code
,
TSDB_CODE_
RPC_REDIRECT
);
ASSERT_EQ
(
pRsp
->
code
,
TSDB_CODE_
NODE_NOT_DEPLOYED
);
}
}
{
{
...
...
tests/script/jenkins/basic.txt
浏览文件 @
c4ee7142
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
./test.sh -f tsim/bnode/basic1.sim
./test.sh -f tsim/bnode/basic1.sim
# ---- mnode
# ---- mnode
./test.sh -f tsim/
b
node/basic1.sim
./test.sh -f tsim/
m
node/basic1.sim
# ---- show
# ---- show
./test.sh -f tsim/show/basic.sim
./test.sh -f tsim/show/basic.sim
...
@@ -69,7 +69,13 @@
...
@@ -69,7 +69,13 @@
# --- for multi process mode
# --- for multi process mode
./test.sh -f tsim/user/basic1.sim -m
./test.sh -f tsim/user/basic1.sim -m
./test.sh -f tsim/stable/vnode3.sim -m
./test.sh -f tsim/db/basic3.sim -m
./test.sh -f tsim/insert/backquote.sim
./test.sh -f tsim/parser/fourArithmetic-basic.sim -m
./test.sh -f tsim/query/interval-offset.sim -m
./test.sh -f tsim/tmq/basic.sim -m
./test.sh -f tsim/tmq/basic.sim -m
./test.sh -f tsim/stable/vnode3.sim -m
./test.sh -f tsim/qnode/basic1.sim -m
./test.sh -f tsim/mnode/basic1.sim -m
#======================b1-end===============
#======================b1-end===============
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录