Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
621ffbf2
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看板
未验证
提交
621ffbf2
编写于
8月 24, 2022
作者:
S
Shengliang Guan
提交者:
GitHub
8月 24, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #16373 from taosdata/fix/dnode
refactor: adjust telemetry interval
上级
de031bdb
4355ddb1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
5 deletion
+10
-5
source/common/src/tglobal.c
source/common/src/tglobal.c
+1
-1
source/dnode/mnode/impl/src/mndTelem.c
source/dnode/mnode/impl/src/mndTelem.c
+3
-1
source/dnode/mnode/impl/src/mndTrans.c
source/dnode/mnode/impl/src/mndTrans.c
+1
-1
source/libs/transport/src/transSvr.c
source/libs/transport/src/transSvr.c
+1
-1
tests/script/tsim/db/basic2.sim
tests/script/tsim/db/basic2.sim
+4
-1
未找到文件。
source/common/src/tglobal.c
浏览文件 @
621ffbf2
...
@@ -76,7 +76,7 @@ bool tsMonitorComp = false;
...
@@ -76,7 +76,7 @@ bool tsMonitorComp = false;
// telem
// telem
bool
tsEnableTelem
=
true
;
bool
tsEnableTelem
=
true
;
int32_t
tsTelemInterval
=
864
00
;
int32_t
tsTelemInterval
=
432
00
;
char
tsTelemServer
[
TSDB_FQDN_LEN
]
=
"telemetry.taosdata.com"
;
char
tsTelemServer
[
TSDB_FQDN_LEN
]
=
"telemetry.taosdata.com"
;
uint16_t
tsTelemPort
=
80
;
uint16_t
tsTelemPort
=
80
;
...
...
source/dnode/mnode/impl/src/mndTelem.c
浏览文件 @
621ffbf2
...
@@ -131,7 +131,9 @@ static int32_t mndProcessTelemTimer(SRpcMsg* pReq) {
...
@@ -131,7 +131,9 @@ static int32_t mndProcessTelemTimer(SRpcMsg* pReq) {
char
*
pCont
=
mndBuildTelemetryReport
(
pMnode
);
char
*
pCont
=
mndBuildTelemetryReport
(
pMnode
);
if
(
pCont
!=
NULL
)
{
if
(
pCont
!=
NULL
)
{
if
(
taosSendHttpReport
(
tsTelemServer
,
tsTelemPort
,
pCont
,
strlen
(
pCont
),
HTTP_FLAT
)
!=
0
)
{
if
(
taosSendHttpReport
(
tsTelemServer
,
tsTelemPort
,
pCont
,
strlen
(
pCont
),
HTTP_FLAT
)
!=
0
)
{
mError
(
"failed to send telemetry msg"
);
mError
(
"failed to send telemetry report"
);
}
else
{
mTrace
(
"succeed to send telemetry report"
);
}
}
taosMemoryFree
(
pCont
);
taosMemoryFree
(
pCont
);
}
}
...
...
source/dnode/mnode/impl/src/mndTrans.c
浏览文件 @
621ffbf2
...
@@ -1308,7 +1308,7 @@ static bool mndTransPerformRedoActionStage(SMnode *pMnode, STrans *pTrans) {
...
@@ -1308,7 +1308,7 @@ static bool mndTransPerformRedoActionStage(SMnode *pMnode, STrans *pTrans) {
if
(
pTrans
->
policy
==
TRN_POLICY_ROLLBACK
)
{
if
(
pTrans
->
policy
==
TRN_POLICY_ROLLBACK
)
{
if
(
pTrans
->
lastAction
!=
0
)
{
if
(
pTrans
->
lastAction
!=
0
)
{
STransAction
*
pAction
=
taosArrayGet
(
pTrans
->
redoActions
,
pTrans
->
lastAction
);
STransAction
*
pAction
=
taosArrayGet
(
pTrans
->
redoActions
,
pTrans
->
lastAction
);
if
(
pAction
->
retryCode
!=
0
&&
pAction
->
retryCode
!
=
pAction
->
errCode
)
{
if
(
pAction
->
retryCode
!=
0
&&
pAction
->
retryCode
=
=
pAction
->
errCode
)
{
if
(
pTrans
->
failedTimes
<
6
)
{
if
(
pTrans
->
failedTimes
<
6
)
{
mError
(
"trans:%d, stage keep on redoAction since action:%d code:0x%x not 0x%x, failedTimes:%d"
,
pTrans
->
id
,
mError
(
"trans:%d, stage keep on redoAction since action:%d code:0x%x not 0x%x, failedTimes:%d"
,
pTrans
->
id
,
pTrans
->
lastAction
,
pTrans
->
code
,
pAction
->
retryCode
,
pTrans
->
failedTimes
);
pTrans
->
lastAction
,
pTrans
->
code
,
pAction
->
retryCode
,
pTrans
->
failedTimes
);
...
...
source/libs/transport/src/transSvr.c
浏览文件 @
621ffbf2
...
@@ -276,7 +276,7 @@ void uvOnRecvCb(uv_stream_t* cli, ssize_t nread, const uv_buf_t* buf) {
...
@@ -276,7 +276,7 @@ void uvOnRecvCb(uv_stream_t* cli, ssize_t nread, const uv_buf_t* buf) {
while
(
transReadComplete
(
pBuf
))
{
while
(
transReadComplete
(
pBuf
))
{
tTrace
(
"%s conn %p alread read complete packet"
,
transLabel
(
pTransInst
),
conn
);
tTrace
(
"%s conn %p alread read complete packet"
,
transLabel
(
pTransInst
),
conn
);
if
(
true
==
pBuf
->
invalid
||
false
==
uvHandleReq
(
conn
))
{
if
(
true
==
pBuf
->
invalid
||
false
==
uvHandleReq
(
conn
))
{
tError
(
"%s conn %p read invalid packet
"
,
transLabel
(
pTransInst
),
conn
);
tError
(
"%s conn %p read invalid packet
, dst: %s, srv: %s"
,
transLabel
(
pTransInst
),
conn
,
conn
->
dst
,
conn
->
src
);
destroyConn
(
conn
,
true
);
destroyConn
(
conn
,
true
);
return
;
return
;
}
}
...
...
tests/script/tsim/db/basic2.sim
浏览文件 @
621ffbf2
...
@@ -4,7 +4,7 @@ system sh/exec.sh -n dnode1 -s start
...
@@ -4,7 +4,7 @@ system sh/exec.sh -n dnode1 -s start
sql connect
sql connect
print =============== conflict stb
print =============== conflict stb
sql create database db vgroups
1
;
sql create database db vgroups
4
;
sql use db;
sql use db;
sql create table stb (ts timestamp, i int) tags (j int);
sql create table stb (ts timestamp, i int) tags (j int);
sql_error create table stb using stb tags (1);
sql_error create table stb using stb tags (1);
...
@@ -16,6 +16,9 @@ sql_error create table ctb (ts timestamp, i int) tags (j int);
...
@@ -16,6 +16,9 @@ sql_error create table ctb (ts timestamp, i int) tags (j int);
sql create table ntb (ts timestamp, i int);
sql create table ntb (ts timestamp, i int);
sql_error create table ntb (ts timestamp, i int) tags (j int);
sql_error create table ntb (ts timestamp, i int) tags (j int);
sql drop table ntb
sql create table ntb (ts timestamp, i int) tags (j int);
sql drop database db
sql drop database db
print =============== create database d1
print =============== create database d1
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录