Commit Graph

396 Commits

Author SHA1 Message Date
slguan 79fc94f019 [TBASE-1280] 2019-12-01 09:29:58 +08:00
Jeff Tao 27f52b8975 fix #808 2019-11-30 22:37:22 +08:00
fangpanpan e39bd6793b
Merge pull request #780 from taosdata/feature/lihui
[NONE]
2019-11-27 13:06:58 +08:00
lihui ad979353bd [NONE] 2019-11-27 13:03:34 +08:00
hjxilinx fbe9b5f852 [tbase-933] 2019-11-26 14:30:36 +08:00
slguan 104455dc8c Merge remote-tracking branch 'origin/develop' into feature/slguan 2019-11-22 19:25:15 +08:00
slguan 026d0b499b [TBASE-1128] 2019-11-22 14:18:41 +08:00
lihui 3980d488e3 [TBASE-1199] 2019-11-20 13:27:28 +08:00
lihui 1895b2ff98 [TBASE-1198] 2019-11-20 11:55:11 +08:00
slguan d0a3a288a2 [TBASE-1186] 2019-11-19 14:23:47 +08:00
slguan 8527587b49 [TBASE-1186] 2019-11-18 17:44:36 +08:00
slguan 5e48daf58f Merge branch 'develop' into feature/slguan 2019-11-16 16:56:14 +08:00
slguan 8c55d4860a [TBASE-1164] 2019-11-16 16:55:41 +08:00
hjxilinx c302d338e7 refactor code, reorganize the header files 2019-11-16 15:30:28 +08:00
hjxilinx 3313155271 [TBASE-814] 2019-11-15 11:00:37 +08:00
localvar 9b754d70f4 add more atomic api 2019-11-12 07:04:19 +00:00
lihui ee112120ff [TBASE-816] 2019-11-11 14:18:31 +08:00
lihui 15cb828bea [TBASE-816] 2019-11-11 11:11:25 +08:00
slguan c2e91fcb75 Adjust code structure 2019-11-07 18:12:26 +08:00
Jeff Tao 77b20bf138 fix issue 677 2019-11-06 08:49:40 +08:00
Jeff Tao a54e96fc05 fix issue #662 2019-10-31 13:43:51 +08:00
hjxilinx 6fec7de230 fix bug #657. RPC module frees the msg body while other threads still access that struct to cause the SIGSEGV error. 2019-10-29 17:53:19 +08:00
hjxilinx fdfd05f27d Merge remote-tracking branch 'origin/master'
# Conflicts:
#	src/util/src/ttimer.c
2019-10-11 14:40:03 +08:00
hjxilinx 6e01c527a6 supress some warnings from clang-tidy,valgrind etc. 2019-10-11 14:33:42 +08:00
slguan 1dcdccb73a enable the client to compile under darwin 2019-10-11 14:06:49 +08:00
hjxilinx 25ff54c90c impose uid check for submit blocks, refer to #606 2019-10-11 10:58:06 +08:00
slguan 806a9310e3 fix issue #552 2019-09-24 14:32:12 +08:00
slguan d28ee044d1 fix issue #514 2019-09-16 17:55:29 +08:00
slguan a7fea5b4ad log format error 2019-09-10 09:54:04 +08:00
slguan b806c458d5 fix the issue #419 2019-08-29 17:47:30 +08:00
Jeff Tao 3e5ba2a7d0
Merge pull request #383 from localvar/udp-fix
fix & enhancement for udp connection handling
2019-08-24 18:42:49 +08:00
Jeff Tao a9ad56780f fix issue #418 2019-08-24 18:02:11 +08:00
slguan 06b7af06a2 fix the issue #404 2019-08-23 09:58:08 +08:00
localvar 01bb110b45 fix & enhancement for udp connection handling
1. potential data race in `taosProcessMonitorTimer`:
the issue does not exist at present because there's only one scheduler
thread, which means there's no cocurrent calls to this function for a
same `pMonitor`. but if more scheduler threads are created later,
there's a data race issue in rare case. as threads number can be
easily increased by increase the value of `taosTmrThreads`, it is very
unlikely that the developer could realize this function need to be
revised together. that's why i say it is a 'potential' issue.

this issue happens in below scenario:
a. scheduler thread1: `if (pSet)` is true and new timer is installed by
`taosTmrReset`;
b. scheduler thread1: `if (pMonitor->pSet == NULL)` is true but
`taosTmrStopA` is blocked, either by the mutex of the timer or os thread
scheduler.
c. timer thread: 200ms elapse, new call to `taosProcessMonitorTimer` is
initialized in scheduler thread2;
d. scheduler thread2: `if (pMonitor->pTimer != tmrId)` is false;
e. scheduler thread1: unblocked, stops timer and frees `pMonitor`;
f. scheduler thread2: unexpected behavior because `pMonitor` is not
valid any more.

because the result of this issue is crash or worse, i suggest to fix it
though the possibility of all the conditions are met is very very low.

2. `pthread_attr_t` related issues: per manual, an initialized
`pthread_attr_t` can be reused, should be destroyed, and the behavior of
re-init it is undefined. this issue exist in other modules also.

3. memory leaks;

4. improve failure case handling of `taosInitUdpConnection`;

5. typo
2019-08-18 11:28:38 +08:00
slguan 8b05ac9960 fix issue #212 2019-08-07 23:16:50 +08:00
slguan 2fc1a1bd1a
Merge branch 'master' into fix_duplicate_include 2019-07-26 22:19:30 +08:00
slguan bd3db150e5 Windows client, #51 #38 #32 #12 2019-07-26 19:15:31 +08:00
Li Cao 09fa673922 remove duplicate include in trpc.c 2019-07-26 14:16:23 +08:00
slguan 6788a4222c Fix the issue ##110, unsorted timestamp in one request may cause crash 2019-07-20 17:17:10 +08:00
slguan 02d1d6c525 Fix the syntax error while EPOLLWAKEUP no defined in some systems 2019-07-16 13:32:29 +08:00
slguan 6d17dbc0f8 Clean up some warnings 2019-07-13 14:04:30 +08:00
slguan d0c37df8bb Change the free function to tfree 2019-07-13 10:15:40 +08:00
siddontang 74d44497d8 fix memory leak when read failed
Signed-off-by: siddontang <siddontang@gmail.com>
2019-07-12 22:00:01 +08:00
Hongze Cheng f0f6b6a975 add lower version cmake support 2019-07-12 01:57:11 +00:00
slguan fa719d5c99 Handling invalid connections when deleting a database 2019-07-11 19:02:45 +08:00
hzcheng 57492cc12d TDengine first commit 2019-07-11 16:36:16 +08:00