Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
b508c251
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
b508c251
编写于
10月 25, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
enh: redistribute vgroup
上级
919f09c5
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
19 addition
and
5 deletion
+19
-5
source/dnode/mgmt/mgmt_vnode/src/vmWorker.c
source/dnode/mgmt/mgmt_vnode/src/vmWorker.c
+4
-0
source/dnode/mnode/impl/src/mndVgroup.c
source/dnode/mnode/impl/src/mndVgroup.c
+9
-1
source/util/src/tqueue.c
source/util/src/tqueue.c
+2
-0
tests/script/jenkins/basic.txt
tests/script/jenkins/basic.txt
+4
-4
未找到文件。
source/dnode/mgmt/mgmt_vnode/src/vmWorker.c
浏览文件 @
b508c251
...
...
@@ -307,6 +307,10 @@ int32_t vmGetQueueSize(SVnodeMgmt *pMgmt, int32_t vgId, EQueueType qtype) {
}
vmReleaseVnode
(
pMgmt
,
pVnode
);
}
if
(
size
<
0
)
{
dError
(
"vgId:%d, can't get size from queue since %s, qtype:%d"
,
vgId
,
terrstr
(),
qtype
);
size
=
0
;
}
return
size
;
}
...
...
source/dnode/mnode/impl/src/mndVgroup.c
浏览文件 @
b508c251
...
...
@@ -260,6 +260,12 @@ void *mndBuildCreateVnodeReq(SMnode *pMnode, SDnodeObj *pDnode, SDbObj *pDb, SVg
return
NULL
;
}
mInfo
(
"vgId:%d, build create vnode req, replica:%d selfIndex:%d strict:%d"
,
createReq
.
vgId
,
createReq
.
replica
,
createReq
.
selfIndex
,
createReq
.
strict
);
for
(
int32_t
i
=
0
;
i
<
createReq
.
replica
;
++
i
)
{
mInfo
(
"vgId:%d, replica:%d ep:%s:%u"
,
createReq
.
vgId
,
i
,
createReq
.
replicas
[
i
].
fqdn
,
createReq
.
replicas
[
i
].
port
);
}
int32_t
contLen
=
tSerializeSCreateVnodeReq
(
NULL
,
0
,
&
createReq
);
if
(
contLen
<
0
)
{
terrno
=
TSDB_CODE_OUT_OF_MEMORY
;
...
...
@@ -293,6 +299,7 @@ static void *mndBuildAlterVnodeConfigReq(SMnode *pMnode, SDbObj *pDb, SVgObj *pV
alterReq
.
strict
=
pDb
->
cfg
.
strict
;
alterReq
.
cacheLast
=
pDb
->
cfg
.
cacheLast
;
mInfo
(
"vgId:%d, build alter vnode config req"
,
pVgroup
->
vgId
);
int32_t
contLen
=
tSerializeSAlterVnodeConfigReq
(
NULL
,
0
,
&
alterReq
);
if
(
contLen
<
0
)
{
terrno
=
TSDB_CODE_OUT_OF_MEMORY
;
...
...
@@ -342,7 +349,7 @@ static void *mndBuildAlterVnodeReplicaReq(SMnode *pMnode, SDbObj *pDb, SVgObj *p
}
}
alterReq
.
replica
=
pVgroup
->
replica
;
mInfo
(
"vgId:%d,
start to alter vnode
, replica:%d selfIndex:%d strict:%d"
,
alterReq
.
vgId
,
alterReq
.
replica
,
mInfo
(
"vgId:%d,
build alter vnode req
, replica:%d selfIndex:%d strict:%d"
,
alterReq
.
vgId
,
alterReq
.
replica
,
alterReq
.
selfIndex
,
alterReq
.
strict
);
for
(
int32_t
i
=
0
;
i
<
alterReq
.
replica
;
++
i
)
{
mInfo
(
"vgId:%d, replica:%d ep:%s:%u"
,
alterReq
.
vgId
,
i
,
alterReq
.
replicas
[
i
].
fqdn
,
alterReq
.
replicas
[
i
].
port
);
...
...
@@ -377,6 +384,7 @@ void *mndBuildDropVnodeReq(SMnode *pMnode, SDnodeObj *pDnode, SDbObj *pDb, SVgOb
memcpy
(
dropReq
.
db
,
pDb
->
name
,
TSDB_DB_FNAME_LEN
);
dropReq
.
dbUid
=
pDb
->
uid
;
mInfo
(
"vgId:%d, build drop vnode req"
,
dropReq
.
vgId
);
int32_t
contLen
=
tSerializeSDropVnodeReq
(
NULL
,
0
,
&
dropReq
);
if
(
contLen
<
0
)
{
terrno
=
TSDB_CODE_OUT_OF_MEMORY
;
...
...
source/util/src/tqueue.c
浏览文件 @
b508c251
...
...
@@ -137,6 +137,8 @@ int32_t taosQueueItemSize(STaosQueue *queue) {
taosThreadMutexLock
(
&
queue
->
mutex
);
int32_t
numOfItems
=
queue
->
numOfItems
;
taosThreadMutexUnlock
(
&
queue
->
mutex
);
uTrace
(
"queue:%p, numOfItems:%d memOfItems:%"
PRId64
,
queue
,
queue
->
numOfItems
,
queue
->
memOfItems
);
return
numOfItems
;
}
...
...
tests/script/jenkins/basic.txt
浏览文件 @
b508c251
...
...
@@ -51,10 +51,10 @@
# unsupport ./test.sh -f tsim/dnode/drop_dnode_has_multi_vnode_replica3.sim
./test.sh -f tsim/dnode/offline_reason.sim
./test.sh -f tsim/dnode/redistribute_vgroup_replica1.sim
# unsupport
./test.sh -f tsim/dnode/redistribute_vgroup_replica3_v1_leader.sim
# unsupport
./test.sh -f tsim/dnode/redistribute_vgroup_replica3_v1_follower.sim
# unsupport
./test.sh -f tsim/dnode/redistribute_vgroup_replica3_v2.sim
# unsupport
./test.sh -f tsim/dnode/redistribute_vgroup_replica3_v3.sim
./test.sh -f tsim/dnode/redistribute_vgroup_replica3_v1_leader.sim
./test.sh -f tsim/dnode/redistribute_vgroup_replica3_v1_follower.sim
./test.sh -f tsim/dnode/redistribute_vgroup_replica3_v2.sim
./test.sh -f tsim/dnode/redistribute_vgroup_replica3_v3.sim
# unsupport ./test.sh -f tsim/dnode/vnode_clean.sim
./test.sh -f tsim/dnode/use_dropped_dnode.sim
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录