Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a74b6144
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
a74b6144
编写于
10月 29, 2020
作者:
S
Shengliang Guan
提交者:
GitHub
10月 29, 2020
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4034 from taosdata/hotfix/16_query_crash
Hotfix/16 query crash
上级
e7856a3d
c2f29ec7
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
14 addition
and
4 deletion
+14
-4
src/client/src/tscServer.c
src/client/src/tscServer.c
+1
-0
src/inc/tglobalcfg.h
src/inc/tglobalcfg.h
+3
-1
src/rpc/src/tudp.c
src/rpc/src/tudp.c
+4
-3
src/util/src/tglobalcfg.c
src/util/src/tglobalcfg.c
+6
-0
未找到文件。
src/client/src/tscServer.c
浏览文件 @
a74b6144
...
...
@@ -184,6 +184,7 @@ void tscProcessActivityTimer(void *handle, void *tmrId) {
return
;
}
pObj
->
pHb
->
retry
=
0
;
tscProcessSql
(
pObj
->
pHb
);
}
...
...
src/inc/tglobalcfg.h
浏览文件 @
a74b6144
...
...
@@ -122,6 +122,8 @@ extern int tsBalancePolicy;
extern
int
tsOfflineThreshold
;
extern
int
tsMgmtEqualVnodeNum
;
extern
int
tsTCPTransferThreshold
;
extern
int
tsEnableHttpModule
;
extern
int
tsEnableMonitorModule
;
extern
int
tsRestRowLimit
;
...
...
@@ -256,7 +258,7 @@ extern int tsGlobalConfigNum;
extern
char
*
tsCfgStatusStr
[];
SGlobalConfig
*
tsGetConfigOption
(
const
char
*
option
);
#define TSDB_CFG_MAX_NUM 1
11
#define TSDB_CFG_MAX_NUM 1
30
#define TSDB_CFG_PRINT_LEN 23
#define TSDB_CFG_OPTION_LEN 24
#define TSDB_CFG_VALUE_LEN 41
...
...
src/rpc/src/tudp.c
浏览文件 @
a74b6144
...
...
@@ -299,7 +299,7 @@ void *taosTransferDataViaTcp(void *argv) {
return
NULL
;
}
if
(
!
taosCheckHandleViaTcpValid
(
&
handleViaTcp
))
{
if
(
handleViaTcp
.
handle
&&
!
taosCheckHandleViaTcpValid
(
&
handleViaTcp
))
{
tError
(
"%s UDP server read handle via tcp invalid, handle:%"
PRIu64
", hash:%"
PRIu64
,
pSet
->
label
,
handleViaTcp
.
handle
,
handleViaTcp
.
hash
);
taosCloseSocket
(
connFd
);
...
...
@@ -365,7 +365,7 @@ void *taosTransferDataViaTcp(void *argv) {
pHeader
=
(
STaosHeader
*
)
handle
;
msgLen
=
(
int32_t
)
htonl
((
uint32_t
)
pHeader
->
msgLen
);
if
(
pHeader
->
tcp
!=
0
||
msgLen
<
10
24
)
{
if
(
pHeader
->
tcp
!=
0
||
msgLen
<
10
0
)
{
tError
(
"%s invalid handle:%p, connection shall be closed"
,
pSet
->
label
,
pHeader
);
}
else
{
SMonitor
*
pMonitor
=
(
SMonitor
*
)
calloc
(
1
,
sizeof
(
SMonitor
));
...
...
@@ -756,7 +756,8 @@ int taosSendUdpData(uint32_t ip, uint16_t port, char *data, int dataLen, void *c
if
(
pConn
==
NULL
||
pConn
->
signature
!=
pConn
)
return
-
1
;
if
(
dataLen
>=
RPC_MAX_UDP_SIZE
)
return
taosSendPacketViaTcp
(
ip
,
port
,
data
,
dataLen
,
chandle
);
assert
(
tsTCPTransferThreshold
<=
RPC_MAX_UDP_SIZE
&&
tsTCPTransferThreshold
>
0
);
if
(
dataLen
>=
tsTCPTransferThreshold
)
return
taosSendPacketViaTcp
(
ip
,
port
,
data
,
dataLen
,
chandle
);
if
(
pConn
->
hash
==
NULL
)
{
struct
sockaddr_in
destAdd
;
...
...
src/util/src/tglobalcfg.c
浏览文件 @
a74b6144
...
...
@@ -130,6 +130,8 @@ int tsBalancePolicy = 0; // 1-use sys.montor
int
tsOfflineThreshold
=
864000
;
// seconds 10days
int
tsMgmtEqualVnodeNum
=
4
;
int
tsTCPTransferThreshold
=
65480
;
// RPC_MAX_UDP_SIZE
int
tsEnableHttpModule
=
1
;
int
tsEnableMonitorModule
=
1
;
int
tsRestRowLimit
=
10240
;
...
...
@@ -710,6 +712,10 @@ static void doInitGlobalConfig() {
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_CLIENT
,
0
,
0
,
tListLen
(
tsCharset
),
TSDB_CFG_UTYPE_NONE
);
tsInitConfigOption
(
cfg
++
,
"tcptransferThreshold"
,
&
tsTCPTransferThreshold
,
TSDB_CFG_VTYPE_INT
,
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_SHOW
,
500
,
65480
,
0
,
TSDB_CFG_UTYPE_BYTE
);
// connect configs
tsInitConfigOption
(
cfg
++
,
"maxShellConns"
,
&
tsMaxShellConns
,
TSDB_CFG_VTYPE_INT
,
TSDB_CFG_CTYPE_B_CONFIG
|
TSDB_CFG_CTYPE_B_SHOW
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录