TDengine/include/util
guichuan zhang 2c62466aa0
feat(taosx): support distributed taosx (#34126)
* feat: add xnode syntax

* refactor(xnode): reduce function complexity

* chore: add lost xnode.h file

* feat(xnode): create xnode task

* chore: fix double free error

* add xnoded

* start xnoded as subprocess

* complete xnode task feature

* complete show xnode jobs feature

* complete with option feature

* complete alter xnode job feature

* complete alter xnode task feature

* complete user pass feature

* clean code

* modify status type as char

* fix leader ep null

* fix start task req null

* fix pass id for status

* support timeout msg

* drop xnode task relative jobs

* clean code

* wip

* chore: add test cases for xnode

* chore: fix 3.0 merge changes

* fix drain core dump and create task core dump

* add password check

* retrieve xnode status from xnoded

* pass integer as double to cjson

* add some debug log

* add some job log

* fix start task lock

* do not handle http response

* fix coredump drop xnode task by name

* support start/stop/drop task by name

* remove mock xnoded

* support unix socket

* kill pre-xnoded before start

* support dnode close xnoded

* test(xnode): add unit test cases for xnode

* rebalance support where clause

* fix some test issue

* unformat http post content json string

* add xnode zh doc

* modify drain description

* remove job create/stop/drop operation

* support rebalance all without where condition

* support alter task by name

* add NULL param for mndCheckOperPrivilege

* add xnode txnode module for libmnode.a

* code clean

* change parser len to 4096

* clean code

* chore: try to fix gtest/gtest.h not found

* chore: fix markdown files

* chore: fix markdown in zh

* chore: fix enum issue and add ci

* chore: fix test case problem

* chore: fix pKeyVal overflow

* chore: rename to 排空节点

* chore: external cmake remove parallel

* chore: add DEP_ext_gtest for xnode test

* chore: fix gtest errors

* chore: remove gtest pthread lib

* chore: fix data type not match

* chore: fix some lint errors

* chore: fix void unlink

* chore: fix return with null pointer check

* chore: fix pointer double free and xnodeMemoryTest strncpy null

* chore: fix xnode encode action invalid datelen

* chore: remove TD_LINUX condition

* chore: use PRIu64 denote long long

* chore: fix task parser NULL and allow no with clause

* fix(xnode): fix windows build error

* chore: fix windows curl error

* chore: fix test case ins_tables relative error

* chore: fix memory leak

* docs: update taosx docs

* chore: update taosx docs

* chore: add role priviledge table

* chore: fix error code doc

* chore: fix test_xnode.py

* chore: fix doc typo

* fix: ci error while run test_user_privilege_sysinfo.py

---------

Co-authored-by: Linhe Huo <linhehuo@gmail.com>
Co-authored-by: huohong <sallyhuo@taosdata.com>
Co-authored-by: Simon Guan <guanshengliang@qq.com>
2026-01-01 14:51:03 +08:00
..
cus_name.h fix inconsistent data & log directories (#32979) 2025-09-16 15:36:26 +08:00
talgo.h add return code 2024-07-16 14:56:30 +08:00
taoserror.h feat(taosx): support distributed taosx (#34126) 2026-01-01 14:51:03 +08:00
tarray.h enh(stream): optimize logic of getting table list for stream reader & fix race condition in table list (#33110) 2025-11-11 15:57:54 +08:00
tarray2.h ehn: refactor return code 2024-07-29 14:04:46 +08:00
tbase58.h enh: return error code 2024-07-22 15:29:37 +08:00
tbase64.h docs(crypto): fixes & docs for crypto funcs (#33865) 2025-12-11 16:53:47 +08:00
tbloomfilter.h adj stream function return 2024-07-15 13:38:34 +08:00
tbuffer.h refact return code 2024-07-27 18:46:30 +08:00
tbuffer.inc fix tsbs perf issue 2024-11-18 14:11:21 +08:00
tcache.h fix: disable life extending of conn cache obj when show queries/conns 2023-10-24 13:58:30 +08:00
tchecksum.h handle some of return -1 2024-08-14 17:50:20 +08:00
tcoding.h enh: remove some asserts 2024-08-20 10:43:28 +08:00
tcompare.h fix(query): order by used the qsort function heap buffer over flow (#31612) 2025-07-08 08:43:17 +08:00
tcompression.h fix: invalid decompress (#32742) 2025-08-26 14:46:03 +08:00
tconfig.h feat[ts-6107]: shared storage (#31552) 2025-07-14 16:33:53 +08:00
tconv.h feat: support customized taos/taosd (#29736) 2025-03-14 13:32:13 +08:00
tcrc32c.h refact: format header file 2022-10-13 11:09:43 +08:00
tcurl.h fix(stream): fix stream notification send (#33815) 2025-12-04 18:39:06 +08:00
tdef.h feat(taosx): support distributed taosx (#34126) 2026-01-01 14:51:03 +08:00
tdes.h tbase64 2022-02-28 10:34:05 +08:00
tdigest.h enh:[TD-32189] Add validation to prevent changes to resultinfo structure. 2024-10-12 15:14:59 +08:00
tencode.h feat(taosx): support distributed taosx (#34126) 2026-01-01 14:51:03 +08:00
tenv.h fix make errors. 2024-12-16 12:18:06 +08:00
tgeosctx.h feat: support customized taos/taosd (#29736) 2025-03-14 13:32:13 +08:00
thash.h hash key exist code 2024-07-18 14:30:59 +08:00
theap.h enh: optimize source code 2024-07-31 19:28:17 +08:00
tidpool.h refact: format header file 2022-10-13 11:09:43 +08:00
tjson.h fix: stream compatibility between 3.3.7 and 3.3.8 (#33599) 2025-11-20 09:07:18 +08:00
tlist.h feat(stream): support sub event in event window trigger (#34050) 2025-12-30 09:15:22 +08:00
tlockfree.h fix: memory leak and trigger redeploy issue (#32398) 2025-08-12 08:39:14 +08:00
tlog.h feat(taosx): support distributed taosx (#34126) 2026-01-01 14:51:03 +08:00
tlosertree.h remove asserts of nodes/planner/parser/tsdbread 2024-08-22 19:15:18 +08:00
tlrucache.h feat(stream): support stream processing for virtual tables (#30144) 2025-03-15 17:06:48 +08:00
tmd5.h md5 2022-02-28 14:07:11 +08:00
tobjpool.h enh(stream): remove synchronous wait for runner (#33154) 2025-09-30 22:31:34 +08:00
tpagedbuf.h fix: scheduler dead lock issue 2024-12-05 18:07:37 +08:00
tpcre2.h feat: support customized taos/taosd (#29736) 2025-03-14 13:32:13 +08:00
tpriv.h feat(rbac): access control (#33822) 2025-12-29 19:27:11 +08:00
tqueue.h fix: memory leak and trigger redeploy issue (#32398) 2025-08-12 08:39:14 +08:00
trbtree.h more code 2023-05-18 15:06:21 +08:00
tRealloc.h enh: refactor return code 2024-07-24 13:58:17 +08:00
tref.h fix: schedulerFreeJob reset jobId only on the last reference 2024-09-13 18:59:54 +08:00
tringbuf.h feat(stream): optimize stream logic (#33027) 2025-09-25 15:48:14 +08:00
tscalablebf.h adj stream operator result 2024-07-18 11:26:50 +08:00
tsched.h tsc: handle schedule error 2022-09-13 17:48:57 +08:00
tsha.h docs(crypto): fixes & docs for crypto funcs (#33865) 2025-12-11 16:53:47 +08:00
tsimplehash.h fix(query): fix error. 2024-07-28 23:19:03 +08:00
tskiplist.h fix(coverage): remove the function about skiplist callback 2022-10-26 17:29:49 +08:00
tstrbuild.h minor changes 2022-02-28 14:26:54 +08:00
tthread.h refact: format header file 2022-10-13 11:09:43 +08:00
ttimer.h ehn:TD-33933-decouple-send-heartbeat 2025-03-03 17:45:06 +08:00
ttrace.h fix: trace id two character missing issue 2023-02-28 13:23:59 +08:00
tunit.h add cfg value check 2024-04-10 16:48:02 +08:00
tutil.h feat(rbac): access control (#33822) 2025-12-29 19:27:11 +08:00
tuuid.h enh: getSystemUUIDLen 2024-10-12 09:07:08 +08:00
tversion.h fix: check the compatibility of client version and server version 2023-03-08 15:13:11 +08:00
tworker.h fix: memory leak and trigger redeploy issue (#32398) 2025-08-12 08:39:14 +08:00
types.h feat: support BLOB data type (#31704) 2025-07-17 14:17:47 +08:00
version.h enh: sign connect request (#34067) 2025-12-29 22:08:38 +08:00