Commit Graph

8949 Commits

Author SHA1 Message Date
haojun Liao 8531ffa450
Merge pull request #5868 from taosdata/hotfix/TD-3871
[TD-3871]fix timestamp issue
2021-04-21 11:08:38 +08:00
Haojun Liao f26c0181f9 [td-3878] <fix>: fix the unsigned number bug in group by query. 2021-04-21 10:56:06 +08:00
Haojun Liao b3444b584f [td-3874] <fix>: enable the value of UINT64_MAX-1 to be the valid tag values. 2021-04-21 10:06:21 +08:00
huili 3281a5639c
Merge pull request #5862 from taosdata/fix/TD-3872
[TD-3872]<fix>: fix taosGetDiskSize statvfs input directory bug
2021-04-20 19:04:15 +08:00
dapan1121 7bd735f99f fix timestamp issue 2021-04-20 18:55:49 +08:00
Shuduo Sang 0673b12f91
Hotfix/sangshuduo/td 3401 query statistic (#5858)
* [TD-3401]<fix>: taosdemo query statistic.

refactor func name.

* [TD-3401]<fix>: taosdemo query statistic.

refactor func name 2.

* [TD-3401]<fix>: taosdemo support query statistic.

implementation.

* cleanup

* [TD-3401]<fix>: taosdemo query statistic.

change us to ms.

* [TD-3401]<fix>: taosdemo query statistic.

increase sql buffer for query.

* [TD-3401]<fix>: taosdemo query statistic

more accurate result.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-20 17:12:57 +08:00
Minglei Jin f68520bc49 [TD-3872]<fix>: fix taosGetDiskSize statvfs input directory bug 2021-04-20 16:17:58 +08:00
Shuduo Sang 471c1c0215
[TD-3833]<fix>: taosdemo command line argument miss lead segfault. (#5859)
rest of arguments be fixed.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-20 15:28:27 +08:00
Shuduo Sang 7c5d0a4379
[TD-3851]<fix>: taosdemo performance boost. (#5857)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-20 13:48:29 +08:00
Shuduo Sang 0d94895c69
[TD-3827]<fix>: taosdemo query argument miss lead segfault. (#5848)
* [TD-3827]<fix>: taosdemo query argument miss lead segfault.

* [TD-3827]<fix>: taosdemo query argument miss lead segfault.

refactor variable.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-20 13:13:17 +08:00
Shuduo Sang 12cbbeec17
[TD-3801]<fix>: taosdump coverity scan issue. (#5844)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-20 12:35:42 +08:00
zyyang aa478e7827
change version (#5847)
Co-authored-by: plum-lihui <huili@taosdata.com>
2021-04-20 09:31:36 +08:00
Haojun Liao 3f18a8a55a [td-3376] add new api for java to decide the time precision of current result. 2021-04-19 18:45:02 +08:00
dapan1121 7e6009071a fix bug 2021-04-19 17:08:44 +08:00
dapan1121 091720cfa9 fix bug 2021-04-19 13:44:09 +08:00
dapan1121 a7efe043a6 fix bug 2021-04-19 11:13:36 +08:00
dapan1121 d81d784a4a fix bug 2021-04-19 10:04:57 +08:00
haojun Liao 08132adc1d
Merge pull request #5843 from taosdata/fix/query
Fix/query
2021-04-18 10:50:35 +08:00
Haojun Liao b2da0faa61 Merge branch 'fix/query' of https://github.com/taosdata/TDengine into fix/query 2021-04-17 23:41:45 +08:00
Haojun Liao b0bf30aac3 [td-3779] 2021-04-17 23:29:01 +08:00
Haojun Liao 31e82030d9 [td-3779] <fix>: fix bug during filter data block when handling last query. 2021-04-17 15:53:16 +08:00
haojun Liao ae18d55b0e
Merge pull request #5824 from taosdata/hotfix/TD-3780
[TD-3780]taos crash on windows issue
2021-04-16 13:28:54 +08:00
Shengliang Guan a26c8d2b81
Revert "[TD-3079]<enhance>: use multi-level storage with vnode's wal files" 2021-04-16 11:45:13 +08:00
haojun Liao 62d2352d0f
Merge pull request #5805 from taosdata/enhance/TD-3079
[TD-3079]<enhance>: use multi-level storage with vnode's wal files
2021-04-16 11:43:06 +08:00
dapan1121 b9f3474e27
Update shellWindows.c
free mem
2021-04-16 11:20:22 +08:00
haojun Liao b24b0a35d8
Merge pull request #5820 from taosdata/hotfix/TD-3768
[TD-3768]crash issue by query cancelled
2021-04-16 11:18:55 +08:00
haojun Liao 21a9797dfa
Merge pull request #5822 from taosdata/hotfix/TD-3732
[TD-3732]mem overflow issue
2021-04-16 11:18:07 +08:00
haojun Liao e56077bb0a
Merge pull request #5825 from taosdata/hotfix/TD-3750
[TD-3750]rebuild topbottom struct
2021-04-16 11:16:10 +08:00
haojun Liao 2d4a0e8499
Merge pull request #5821 from taosdata/hotfix/TD-3755
[TD-3755]too much columns tip info
2021-04-16 11:15:34 +08:00
haojun Liao b0e0f97352
Merge pull request #5816 from taosdata/hotfix/TD-3774
[TD-3774]dulicated CQ created when wal is re-executed issue
2021-04-16 11:14:57 +08:00
Shuduo Sang 42d0f5a3dc
[TD-3783]<fix>: taosdemo for windows generates rand string invalid. (#5828) 2021-04-15 17:29:27 +08:00
dapan1121 1e9e8acdae rebuild topbottom struct 2021-04-15 14:07:58 +08:00
dapan1121 0840dce0e0 taos crash on windows issue 2021-04-15 14:03:33 +08:00
Shuduo Sang 8b72cf391c
[TD-3775]<fix>: taosdemo interlace rows more than insert rows. (#5819)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-15 11:06:43 +08:00
dapan1121 091d22e2c2 fix bug 2021-04-15 10:57:19 +08:00
dapan1121 b1193284b8 crash issue by query cancelled 2021-04-15 09:34:28 +08:00
Shengliang Guan a37f5a42cc
Merge pull request #5814 from taosdata/fix/TD-3766
[TD-3766]<fix>: fix fsync alter calculation
2021-04-15 09:30:33 +08:00
dapan1121 432200c091 fix bug 2021-04-14 17:28:37 +08:00
dapan1121 73d605476c dulicated CQ created when wal is re-executed issue 2021-04-14 17:01:28 +08:00
Minglei Jin 3cb71e2dfc [TD-3766]<fix>: fix fsync alter calculation 2021-04-14 14:54:06 +08:00
haojun Liao a20fe8d284
Merge pull request #5798 from taosdata/hotfix/TD-3757
[TD-3757]fix client crash issue
2021-04-14 10:05:36 +08:00
haojun Liao e0886b605d
Merge pull request #5799 from taosdata/hotfix/TD-3759
[TD-3759]taosd mem leak issue
2021-04-14 10:04:48 +08:00
Minglei Jin db17a59b71 [TD-3079]<enhance>: use multi-level storage with vnode's wal files 2021-04-13 20:24:59 +08:00
Shuduo Sang 640062a53d
Hotfix/sangshuduo/td 3401 query statistic (#5795)
* [TD-3401]<fix>: taosdemo query statistic.

refactor func name.

* [TD-3401]<fix>: taosdemo query statistic.

refactor func name 2.

* [TD-3401]<fix>: taosdemo support query statistic.

implementation.

* cleanup

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-13 16:24:42 +08:00
Shengliang Guan e2943da9df
Merge pull request #5793 from taosdata/hotfix/TD-3723
[TD-3723]
2021-04-13 15:59:44 +08:00
dapan1121 9e370964ff taosd mem leak issue 2021-04-13 14:38:24 +08:00
dapan1121 4c152b6724 fix client crash issue 2021-04-13 14:36:01 +08:00
huili 289b805388
Merge pull request #5787 from taosdata/origin/master
Origin/master
2021-04-13 07:40:43 +08:00
Shengliang Guan c1289b4075 [TD-3723] 2021-04-12 08:41:20 +00:00
Shuduo Sang ea771cee59
[TD-3752]<fix>: taosdemo columns+tags+ts must less then 1024. (#5782)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-12 14:35:32 +08:00
haojun Liao 053785bbf9
Merge pull request #5772 from taosdata/fix/query
Fix/query
2021-04-12 08:03:38 +08:00
Haojun Liao 67fd99e756 [td-225] update the local cached epset in sqlObj. 2021-04-11 23:04:48 +08:00
Shuduo Sang 7153904339
[TD-3317]<fix>: taosdemo interlace insertion. (#5774)
patch for master.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-11 21:31:47 +08:00
Shuduo Sang 5e43fc0d24
Hotfix/sangshuduo/td 3733 taosdemo buffer processing (#5769)
* [TD-3733]<fix>: taosdemo buffer processing refactor.

* [TD-3733]<fix>: taosdemo generate SQL head buffer process.

* [TD-3733]<fix>: taosdemo generate sql head buffer processing.

fix compile issue for windows.

* [TD-3733]<fix>: taosdemo generate sql head buffer processing.

fix max_sql_len. generate data buffer refactor.

* resolve conflict with master.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-11 11:09:54 +08:00
haojun Liao d6ec9c6700
Merge branch 'develop' into master 2021-04-10 23:52:50 +08:00
yihaoDeng 35c7506dd0 reset tcp 2021-04-10 22:48:35 +08:00
yihaoDeng 35d220c852 fix crash 2021-04-10 22:00:06 +08:00
haojun Liao 308b8b89cc
Merge pull request #5770 from taosdata/fix/query
[td-225]
2021-04-10 18:42:29 +08:00
Haojun Liao 247cf3693f [td-225] 2021-04-10 18:41:46 +08:00
Shuduo Sang 483574a09c
[TD-3733]<fix>: taosdemo buffer processing refactor. (#5766)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-10 17:24:43 +08:00
yihaoDeng f5db431c19 reset timeout 2021-04-10 17:11:58 +08:00
haojun Liao ef2246da4c
Merge pull request #5762 from taosdata/feature/TD-3734
[TD-3734]use global uid as query id
2021-04-10 15:37:17 +08:00
dapan1121 d3999c7bf3 fix bug 2021-04-10 14:01:29 +08:00
dapan1121 a7f44f38e0 use global uid as query id 2021-04-10 11:37:10 +08:00
haojun Liao deb3ad7e3a
Merge pull request #5746 from taosdata/hotfix/TD-3719
[TD-3719]mem overflow issue
2021-04-10 11:16:12 +08:00
haojun Liao c486473531
Merge pull request #5749 from taosdata/hotfix/TD-3720
[TD-3720]final fields may be freed while fetching rows
2021-04-10 11:16:02 +08:00
Shengliang Guan c224d86806
Merge pull request #5758 from taosdata/fix/TD-3681
[TD-3681]<fix>: fix syncdb precondition checkings
2021-04-10 09:36:47 +08:00
Shengliang Guan 2255f6fc34
Merge pull request #5751 from taosdata/hotfix/TD-3606
[TD-3606]<enhance>: When adding a new node to the cluster, the locale…
2021-04-10 09:35:49 +08:00
yihaoDeng 5e9cd734c6 enlarge connection pool timeout 2021-04-10 02:23:44 +08:00
yihaoDeng adf9437093 Merge branch 'fix/query' of https://github.com/taosdata/TDengine into fix 2021-04-10 01:46:57 +08:00
Haojun Liao 023e7959f4 [td-225]fix error by merge 2021-04-11 11:13:33 +08:00
Haojun Liao d24ac3a4e3 Merge branch 'master' into fix/query 2021-04-11 11:03:19 +08:00
Haojun Liao 6d593fe80a [td-3571]<enhance>: enable update the vgroup info during super table query. 2021-04-10 23:14:01 +08:00
yihaoDeng 00904c1407 remove invalid qId 2021-04-10 01:41:49 +08:00
Shuduo Sang b2b514f81b
[TD-3705]<fix>: taosdemo columns or tags count overflow. (#5745) (#5760)
* [TD-3705]<fix>: taosdemo columns or tags count overflow.

* [TD-3705]<fix>: taosdemo columns or tags count overflow.

compare columns+tags with max columns count.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-09 23:23:28 +08:00
Shengliang Guan b1eb857704
Merge pull request #5748 from taosdata/fix/TD-3706
[TD-3706]<fix>: [mnode] validate super table columns and tags count
2021-04-09 22:06:24 +08:00
Shuduo Sang 395c2d98fc
Hotfix/sangshuduo/td 3215 bus error arm32 (#5753)
* [TD-3215] <fix> fix bus error on arm32. fix indent.

* [TD-3215]<fix>: arm32 porting.

fix cache function for data type convertion mistake.
2021-04-09 21:49:23 +08:00
Shuduo Sang 619a41ca2b
Hotfix/sangshuduo/td 3715 interlacerows morethan insertrows (#5744)
* [TD-3652]<test> add case for TD-3652 to resolve TD-3590

* Update fulltest.sh

* [TD-3295]<test> add case for TD-3295

* TD-3675

* Hotfix/sangshuduo/td 3607 for master (#5712)

* test

* [TD-3677]<test>: test pr message 1

* [TD-3671]<test>change target branch

* [TD-3677]<test>: test pr message 2

* [TD-3677]<test>: test pr message 3

* Hotfix/sangshuduo/td 3197 fix taosdemo coverity scan (#5688)

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

fix subscribeTest pids uninitialized.

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix coverity scan issues.

check super tbl info pointer.

* [TD-3197] <fix>: fix coverity scan issues.

move sub tbl query thread join into loop

* [TD-3197] <fix>: fix coverity scan issues.

remove unused variable

* [TD-3197] <fix>: fix coverity scan issues.

use more secure random library

* [TD-3197] <fix>: fix coverity scan issues.

use strncpy for more safe

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

replace arc4random with rand().

* [TD-3197] <fix>: fix coverity scan issues.

check stb info pointer for start time

* [TD-3197] <fix>: fix coverity scan issues.

fix strcpy vulnerability

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

modify taosdemoTest2. try to check database continously.

* [TD-3197] <fix>: taosdemo coverity scan issues.

* [TD-3197] <fix>: fix memory leak when parsing arguments.

* [TD-3197] <fix>: fix cmake strip arguments.

* [TD-3197] <fix>: taosdemo coverity scan.

fix cmake string manipulation.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* remove useless file

* fix changing target branch

* fix

* fix

* [TD-3607]<fix>: fix taosdemo limit and offset.

if offset+limit > count.

* [TD-3607]<fix>: taosdemo limit and offset.

if child tbl not exist, dont take limit and offset value.

Co-authored-by: huili <52318143+plum-lihui@users.noreply.github.com>
Co-authored-by: liuyq-617 <yqliu@taosdata.com>
Co-authored-by: plum-lihui <huili@taosdata.com>
Co-authored-by: Elias Soong <elias.soong@gmail.com>
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* fix mem leak issue

* fix crash issue

* [TD-3683]<fix>: reduce buffer size for more stable table creation. (#5720)

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5723)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* test

* [TD-3677]<test>: test pr message 1

* [TD-3671]<test>change target branch

* [TD-3677]<test>: test pr message 2

* [TD-3677]<test>: test pr message 3

* Hotfix/sangshuduo/td 3197 fix taosdemo coverity scan (#5688)

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

fix subscribeTest pids uninitialized.

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix coverity scan issues.

check super tbl info pointer.

* [TD-3197] <fix>: fix coverity scan issues.

move sub tbl query thread join into loop

* [TD-3197] <fix>: fix coverity scan issues.

remove unused variable

* [TD-3197] <fix>: fix coverity scan issues.

use more secure random library

* [TD-3197] <fix>: fix coverity scan issues.

use strncpy for more safe

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

replace arc4random with rand().

* [TD-3197] <fix>: fix coverity scan issues.

check stb info pointer for start time

* [TD-3197] <fix>: fix coverity scan issues.

fix strcpy vulnerability

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

modify taosdemoTest2. try to check database continously.

* [TD-3197] <fix>: taosdemo coverity scan issues.

* [TD-3197] <fix>: fix memory leak when parsing arguments.

* [TD-3197] <fix>: fix cmake strip arguments.

* [TD-3197] <fix>: taosdemo coverity scan.

fix cmake string manipulation.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* remove useless file

* fix changing target branch

* fix

* fix

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5706)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* [TD-3607]<fix>: taosdemo limit and offset.

if child tbl not exist, dont take limit and offset value.

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5713)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

* [TD-3607]<fix>: taosdemo limit and offset.

if child tbl not exist, dont take limit and offset value.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* fix taosdemo limit invalid warning condition.

* [TD-3683]<fix>: reduce buffer size for more stable table creation. (#5719)

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
Co-authored-by: huili <52318143+plum-lihui@users.noreply.github.com>
Co-authored-by: liuyq-617 <yqliu@taosdata.com>
Co-authored-by: plum-lihui <huili@taosdata.com>
Co-authored-by: Elias Soong <elias.soong@gmail.com>
Co-authored-by: Shengliang Guan <slguan@taosdata.com>

* TD-3707

* Feature/sangshuduo/td 3408 taosdemo async query (#5731)

* test

* [TD-3677]<test>: test pr message 1

* [TD-3671]<test>change target branch

* [TD-3677]<test>: test pr message 2

* [TD-3677]<test>: test pr message 3

* Hotfix/sangshuduo/td 3197 fix taosdemo coverity scan (#5688)

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

fix subscribeTest pids uninitialized.

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix coverity scan issues.

check super tbl info pointer.

* [TD-3197] <fix>: fix coverity scan issues.

move sub tbl query thread join into loop

* [TD-3197] <fix>: fix coverity scan issues.

remove unused variable

* [TD-3197] <fix>: fix coverity scan issues.

use more secure random library

* [TD-3197] <fix>: fix coverity scan issues.

use strncpy for more safe

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

replace arc4random with rand().

* [TD-3197] <fix>: fix coverity scan issues.

check stb info pointer for start time

* [TD-3197] <fix>: fix coverity scan issues.

fix strcpy vulnerability

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

modify taosdemoTest2. try to check database continously.

* [TD-3197] <fix>: taosdemo coverity scan issues.

* [TD-3197] <fix>: fix memory leak when parsing arguments.

* [TD-3197] <fix>: fix cmake strip arguments.

* [TD-3197] <fix>: taosdemo coverity scan.

fix cmake string manipulation.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* remove useless file

* fix changing target branch

* fix

* fix

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5706)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5713)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

* [TD-3607]<fix>: taosdemo limit and offset.

if child tbl not exist, dont take limit and offset value.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* [TD-3683]<fix>: reduce buffer size for more stable table creation. (#5719)

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* [TD-3408]<feature>: taosdemo support async query.

* [TD-3408]<feature>: taosdemo support async query.

refactor

* [TD-3408]<feature>: taosdemo support async query.

refactor 2

* [TD-3408]<feature>: taosdemo support async query.

refactor 3

* [TD-3408]<feature>: taosdemo support async query.

refactor 4

* [TD-3408]<feature>: taosdemo support specified sql more than one line.

Co-authored-by: huili <52318143+plum-lihui@users.noreply.github.com>
Co-authored-by: liuyq-617 <yqliu@taosdata.com>
Co-authored-by: plum-lihui <huili@taosdata.com>
Co-authored-by: Elias Soong <elias.soong@gmail.com>
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
Co-authored-by: Shengliang Guan <slguan@taosdata.com>

* [TD-3636]<fix>: fix taosdemo outorder range algorithm. (#5736)

patch for master.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* [TD-3715]<fix>: taosdemo interlace rows must less than insert rows.

Co-authored-by: wu champion <wuchampion@foxmail.com>
Co-authored-by: wu champion <wu_champion@foxmail.com>
Co-authored-by: dapan1121 <89396746@qq.com>
Co-authored-by: wu champion <cpwu@taosdata.com>
Co-authored-by: huili <52318143+plum-lihui@users.noreply.github.com>
Co-authored-by: liuyq-617 <yqliu@taosdata.com>
Co-authored-by: plum-lihui <huili@taosdata.com>
Co-authored-by: Elias Soong <elias.soong@gmail.com>
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
Co-authored-by: Shengliang Guan <slguan@taosdata.com>
Co-authored-by: haojun Liao <hjxilinx@users.noreply.github.com>
2021-04-09 21:22:47 +08:00
Shuduo Sang 677c7dcd93
[TD-3715]<fix>: taosdemo interlace rows must less than insert rows. (#5743)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-09 21:22:04 +08:00
Shuduo Sang e8a6b6a5a1
Hotfix/sangshuduo/td 3722 taosdemo performance regression (#5750)
* TD-3675

* fix mem leak issue

* fix crash issue

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5723)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* test

* [TD-3677]<test>: test pr message 1

* [TD-3671]<test>change target branch

* [TD-3677]<test>: test pr message 2

* [TD-3677]<test>: test pr message 3

* Hotfix/sangshuduo/td 3197 fix taosdemo coverity scan (#5688)

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

fix subscribeTest pids uninitialized.

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix coverity scan issues.

check super tbl info pointer.

* [TD-3197] <fix>: fix coverity scan issues.

move sub tbl query thread join into loop

* [TD-3197] <fix>: fix coverity scan issues.

remove unused variable

* [TD-3197] <fix>: fix coverity scan issues.

use more secure random library

* [TD-3197] <fix>: fix coverity scan issues.

use strncpy for more safe

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

replace arc4random with rand().

* [TD-3197] <fix>: fix coverity scan issues.

check stb info pointer for start time

* [TD-3197] <fix>: fix coverity scan issues.

fix strcpy vulnerability

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

modify taosdemoTest2. try to check database continously.

* [TD-3197] <fix>: taosdemo coverity scan issues.

* [TD-3197] <fix>: fix memory leak when parsing arguments.

* [TD-3197] <fix>: fix cmake strip arguments.

* [TD-3197] <fix>: taosdemo coverity scan.

fix cmake string manipulation.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* remove useless file

* fix changing target branch

* fix

* fix

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5706)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* [TD-3607]<fix>: taosdemo limit and offset.

if child tbl not exist, dont take limit and offset value.

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5713)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

* [TD-3607]<fix>: taosdemo limit and offset.

if child tbl not exist, dont take limit and offset value.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* fix taosdemo limit invalid warning condition.

* [TD-3683]<fix>: reduce buffer size for more stable table creation. (#5719)

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
Co-authored-by: huili <52318143+plum-lihui@users.noreply.github.com>
Co-authored-by: liuyq-617 <yqliu@taosdata.com>
Co-authored-by: plum-lihui <huili@taosdata.com>
Co-authored-by: Elias Soong <elias.soong@gmail.com>
Co-authored-by: Shengliang Guan <slguan@taosdata.com>

* TD-3707

* Feature/sangshuduo/td 3408 taosdemo async query (#5731)

* test

* [TD-3677]<test>: test pr message 1

* [TD-3671]<test>change target branch

* [TD-3677]<test>: test pr message 2

* [TD-3677]<test>: test pr message 3

* Hotfix/sangshuduo/td 3197 fix taosdemo coverity scan (#5688)

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

fix subscribeTest pids uninitialized.

* [TD-3197] <fix>: fix taosdemo coverity scan issues.

* [TD-3197] <fix>: fix coverity scan issues.

check super tbl info pointer.

* [TD-3197] <fix>: fix coverity scan issues.

move sub tbl query thread join into loop

* [TD-3197] <fix>: fix coverity scan issues.

remove unused variable

* [TD-3197] <fix>: fix coverity scan issues.

use more secure random library

* [TD-3197] <fix>: fix coverity scan issues.

use strncpy for more safe

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

replace arc4random with rand().

* [TD-3197] <fix>: fix coverity scan issues.

check stb info pointer for start time

* [TD-3197] <fix>: fix coverity scan issues.

fix strcpy vulnerability

* [TD-3197] <fix>: fix taosdemo coverity scan issue.

modify taosdemoTest2. try to check database continously.

* [TD-3197] <fix>: taosdemo coverity scan issues.

* [TD-3197] <fix>: fix memory leak when parsing arguments.

* [TD-3197] <fix>: fix cmake strip arguments.

* [TD-3197] <fix>: taosdemo coverity scan.

fix cmake string manipulation.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* remove useless file

* fix changing target branch

* fix

* fix

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5706)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* Hotfix/sangshuduo/td 3607 taosdemo buffer overflow (#5713)

* [TD-3607] <fix>: fix taosdemo buffer overflow.

* [TD-3607] <fix>: taosdemo buffer overflow.

add tmp buffer.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix data generation.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix normal table writting.

* [TD-3607] <fix>: taosdemo buffer overflow.

remove tail spaces.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table test case.

* [TD-3607] <fix>: taosdemo buffer overflow.

fix taosdemo alter table case.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust limit offset count warning.

* [TD-3607] <fix>: taosdemo buffer overflow.

add more logic for child tables exist.

* [TD-3607] <fix>: taosdemo buffer overflow.

create database if database be dropped only.

* [TD-3607] <fix>: fix taosdemo buffer overflow.

adjust limit and offset test cases.

* [TD-3607] <fix>: taosdemo buffer overflow.

adjust sample data test case.

* [TD-3607]<fix>: taosdemo limit and offset.

if limit+offset > count

* [TD-3607]<fix>: taosdemo limit and offset.

if child tbl not exist, dont take limit and offset value.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* [TD-3683]<fix>: reduce buffer size for more stable table creation. (#5719)

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>

* [TD-3408]<feature>: taosdemo support async query.

* [TD-3408]<feature>: taosdemo support async query.

refactor

* [TD-3408]<feature>: taosdemo support async query.

refactor 2

* [TD-3408]<feature>: taosdemo support async query.

refactor 3

* [TD-3408]<feature>: taosdemo support async query.

refactor 4

* [TD-3408]<feature>: taosdemo support specified sql more than one line.

Co-authored-by: huili <52318143+plum-lihui@users.noreply.github.com>
Co-authored-by: liuyq-617 <yqliu@taosdata.com>
Co-authored-by: plum-lihui <huili@taosdata.com>
Co-authored-by: Elias Soong <elias.soong@gmail.com>
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
Co-authored-by: Shengliang Guan <slguan@taosdata.com>

* [TD-3722]<fix>: taosdemo performance regression due to always set random seed.

Co-authored-by: dapan1121 <89396746@qq.com>
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
Co-authored-by: huili <52318143+plum-lihui@users.noreply.github.com>
Co-authored-by: liuyq-617 <yqliu@taosdata.com>
Co-authored-by: plum-lihui <huili@taosdata.com>
Co-authored-by: Elias Soong <elias.soong@gmail.com>
Co-authored-by: Shengliang Guan <slguan@taosdata.com>
Co-authored-by: haojun Liao <hjxilinx@users.noreply.github.com>
2021-04-09 20:00:59 +08:00
Shuduo Sang defd55e587
[TD-3705]<fix>: taosdemo columns or tags count overflow. (#5745)
* [TD-3705]<fix>: taosdemo columns or tags count overflow.

* [TD-3705]<fix>: taosdemo columns or tags count overflow.

compare columns+tags with max columns count.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-09 18:50:29 +08:00
Minglei Jin 898cc038e7 [TD-3681]<fix>: fix syncdb precondition checkings 2021-04-09 18:39:48 +08:00
Shengliang Guan 0d52707f88 Merge remote-tracking branch 'origin/master' into hotfix/TD-3606 2021-04-09 10:25:42 +00:00
yihaoDeng e6354c56aa Merge branch 'develop' into dev 2021-04-09 17:25:49 +08:00
Shengliang Guan 824b3726f9 [TD-3606]<enhance>: When adding a new node to the cluster, the locale and charset are no longer checked 2021-04-09 08:52:29 +00:00
Minglei Jin e39139d1c0 [TD-3706]<fix>: [mnode] validate super table columns and tags count 2021-04-09 16:20:11 +08:00
Shuduo Sang cfba07e788
[TD-3722]<fix>: taosdemo performance regression due to always set random seed. (#5740)
Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-09 16:14:08 +08:00
Shengliang Guan fc7579cd20
Merge pull request #5737 from taosdata/hotfix/TD-3682
[TD-3682]<fix>: Insufficient disk space may cause oom
2021-04-09 16:08:16 +08:00
haojun Liao b9c67e9880
Merge pull request #5742 from taosdata/fix/query
Fix/query
2021-04-09 16:00:33 +08:00
dapan1121 9b0af30e3c fix bug 2021-04-09 15:58:57 +08:00
dapan1121 807f9b8875 fix bug 2021-04-09 15:24:47 +08:00
haojun Liao 7f38af1864
Merge pull request #5732 from taosdata/hotfix/TD-3679
[TD-3679]timestamp equal issue
2021-04-09 15:21:11 +08:00
haojun Liao 07dcba4397
Merge pull request #5739 from taosdata/hotfix/TD-3716
[TD-3716]taos crash issue
2021-04-09 15:20:47 +08:00
yihaoDeng 1511e0c32f fixbug crash 2021-04-09 15:01:29 +08:00
yihaoDeng 3a14b45f40 fixbug crash 2021-04-09 14:56:25 +08:00
Shuduo Sang ad073f168c
[TD-3636]<fix>: fix taosdemo outorder range algorithm. (#5736)
patch for master.

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
2021-04-09 13:32:13 +08:00
yihaoDeng 053fa298b3 Merge branch 'develop' of https://github.com/taosdata/TDengine into dev 2021-04-09 13:19:51 +08:00
Haojun Liao 5a200ff746 [td-225]additional memory border check for the temp query output buffer 2021-04-09 12:04:57 +08:00
dapan1121 0a95895c9d fix taos crash issue 2021-04-09 10:59:03 +08:00
Shengliang Guan b7579334de [TD-3682]<fix>: Insufficient disk space may cause oom 2021-04-09 02:53:30 +00:00