Commit graph

17319 commits

Author SHA1 Message Date
Bomin Zhang
0d2fd16e22 check return values 2025-07-15 15:51:08 +08:00
Bomin Zhang
1160e7e689 replace the usage of strdup 2025-07-15 11:49:50 +08:00
Bomin Zhang
f28f7ccfc4 apply review comments and fix compile issue 2025-07-15 11:49:50 +08:00
Bomin Zhang
876979b5f5
feat[ts-6107]: shared storage (#31552)
* add API to use s3 as shared storage

* support using local file system as shared storage

* upload file to shared storage

* support read, compact and drop

* finish basic mnode & vnode msg processing

* follower sync migration state

* implement mnode transaction, and improve log

* send migration progress msg to dnode to avoid deadlock

* implement following migration

* remove mcount

* avoid redo migration on startup

* avoid follower deadlock when leader is down

* trigger migrate by timer,  avoid compact after migration

* comment out the usage of 'tcs' functions in stream

* change config item prefix from s3 to ss

* change db option prefix from s3 to ss

* rename s3 data struct, function, file to ss

* rename s3 macro to ss

* update s3 sql to ss

* rename remaining s3 items to ss

* check ss configruation, improve s3 retry

* grant object storage -> shared storage,  check ssEnabled

* fix memory leaks

* update build options

* omit sensitive information when dump config

* fix backward compatibility issue

* fix issues found in ci-checks

* fix some failed test cases

* avoid follower timeout and improve log

* fix: follower timeout because migration status not updated

* refuse migration if there's an in progress one

* fix ss test case

* remove garbage files and other minor improvement

* fix failed test cases

* update unit test

* fix failed test case

* fix failed test case

* update document

* update document and fix failed test cases

* fix minor issues in code, test and document

* check new commit after migration task is scheduled

* fix several issus

1. migrate information cannot be dropped sometimes because progress response was put into read queue.
2. memory leak in rare cases
3. data corruption in rare cases
4. failed test case

* add shared storage upgrade tool

* fix compile error
2025-07-14 16:33:53 +08:00
Kaili Xu
dc2b021778
feat: support mount data path (#31677) 2025-07-12 15:39:29 +08:00
Simon Guan
d497a960eb Merge branch 'main' into merge/mainto3.0 2025-07-08 16:35:39 +08:00
Haojun Liao
4abc6c071d
fix(query): fix bug caused by shallow copy. (#31638) 2025-07-08 08:49:55 +08:00
Yihao Deng
f142278ec7
use no-default-index (#31623) 2025-07-04 14:16:26 +08:00
Kaili Xu
a86e09e4e3
enh: grant support vnodes and storage size (#31380) 2025-07-03 16:44:29 +08:00
dongming chen
68f7094041
fix/TS-6785-fix-return-code (#31593) 2025-07-03 14:22:12 +08:00
Simon Guan
fc2fec02c7
merge: from main to 3.0 branch (#31562) 2025-07-03 09:15:59 +08:00
Minglei Jin
89aa93c67e
mnd/bnode: release dnode to fix memleak with bnode dropping (#31582) 2025-07-02 13:30:32 +08:00
Zhixiao Bao
6df806eb9c
fix: update config error while start dnode. (#31567) 2025-07-01 17:25:51 +08:00
xiao-77
fee17fa423 fix: can not open vnodes while change sub dataDir. 2025-06-30 17:07:28 +08:00
hongzhenliu
99b30bf096
fix(query) subscriptions memory leak (#31533)
Co-authored-by: hongzhenliu335 <ethanliu@taosdata.com>
2025-06-30 13:55:57 +08:00
Zhixiao Bao
62d8b35fd0
feat: add write metrics. (#31198) 2025-06-30 10:33:34 +08:00
Yihao Deng
5713f54a5a
fix invalid read (#31525) 2025-06-28 18:44:00 +08:00
dongming chen
2678511dad
feat: add password encryption algorithm support and related configura… (#31237) 2025-06-27 07:58:32 +08:00
Hongze Cheng
7508267906 enh: adjust log level 2025-06-26 09:38:45 +08:00
WANG MINGMING
cb6ae5fb3d
fix(sml): change soure flag of alteing stable to avoid error in tmq (#31494) 2025-06-25 15:07:55 +08:00
Hongze Cheng
4340da1e65
fix: Out of memory in queue and Sync leader unreachable error (#31420) 2025-06-25 15:01:26 +08:00
Yihao Deng
a4909ebe29
fix index perf (#31474) 2025-06-25 15:00:11 +08:00
Minglei Jin
66c4ef3e90
feat(mqtt): mqtt subscription (#30127)
* feat(mqtt): Initial commit for mqtt

* chore(xnode/mnd): xnode message handlers for mnode

* chore(mnd/xnode): mnode part for xnode

* chore(xnode/translater): fix show commands

* fix(ast/creater): fix xnode create option

* fix(xnode/ci): fix ci & doc's error codes

* chore(xnode/sql): make create/drop/show work properly

* fix(xnode/sql): commit new files

* fix(xnode/sql): commit cmake files

* fix: fix testing cases

* fix(xnode/tsc): fix tokens

* fix(ast/anode): fix anode update decl.

* fix(xnode/error): fix xnode error codes

* fix: xnode make/destroy

* chore: xnode with option & dnode id

* chore: use taosmqtt for xnode

* chore: new error code for xnode launching

* chore(xnode): new error code

* chore: header for _xnode_mgmt_mqtt

* chore: source for _xnode_mgmt_mqtt

* chore: remove test directory from cmake

* chore: remove taosmqtt for ci to compile

* chore: remove taosudf header from xnode

* chore: new window macro

* chore: remove xnode mgmt mqtt for windows compilation

* Revert "chore: remove xnode mgmt mqtt for windows compilation"

This reverts commit 197e1640c7.

* chore: cleanup code

* chore: xnode mgmt comment windows part out

* chore: mgmt/mqtt, move uv head toppest

* xnode/mnode: create xnode once per dnode

* fix(xnode/systable/test): fix column count

* xnode/sdb: renumber sdb type for xnode to make start/stop order correct

* xnode/mqtt: new param mqttPort

* fix SXnode's struct type

* transfer dnode id to mqtt subscription

* tmqtt: remove uv_a linking

* tmqtt/tools: sources for tools

* tools: fix windows compilation

* tools/producer: fix windows sleep param

* tools/producer: fix uninited var rc

* make tools only for linux

* test/mnodes: wail 1 or 2 seconds for offline to be leader

* update topic producer tool for geometry data type testing

* format tool sql statements

* show xnodes' ep

* make shell auto complete xnodes

* use usleep instead of sleep

* mqtt/proto: first version mqtt protocol

* remove assert styles

* build with linux only

* fix libuv for taosmqtt building

* fix log printing

* mem: use ttq_ prefix instead of tmqtt

* xnode/parser/proto: protocol option for xnode

* xnode/translater/option: translate xnode option proto

* xnode/translator: translate proto param

* xnode/tmsg: encode/decode proto param

* xnode/mnode: proto parma for mndXnode

* xnode/proto: protocol param for xnode

* xnode/mqtt: save/load proto from xnode json

* rename tmqtt proto header

* rename head directories

* rename header name styles

* restyle func names

* update

* update

* use camel db

* use camel for cxt

* update count of information_schema

* fix exceptional cases

* fix w.r.t reviews

* fixes w.r.t reviews

* use ttq_free

* append xnode msgs

* update information schema count

* support tmq meta data sub

* success typo fix

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix error line var w.r.t. suggestions from copilot

* denote mqtt node with bnode instead of xnode

* smoke testing for mqtt

* soak testing

* new package for test framework: paho 2.1.0

* import mqtt into util

* fix soak testing

* test/soak: user 5 topics per client

* test/soak: cover qos

* update docker image references to tdengine-ci:0.1 in CI scripts and common.py

* refactor: rename bnode msg to backup node

* refactor: rename xnode to bnode 1

* refactor: rename xnode to bnode 2

* refactor: rename xnode to bnode 3

* refactor: rename xnode to bnode 4

* refactor: rename xnode to bnode 4

* refactor: rename xnode to bnode 5

* refactor: rename xnode to bnode 6

* refactor: rename some files 1

* refactor: rename some files 2

* refactor: rename some files 3

* refactor: rename some files 4

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: chenhaoran <haoran920c@163.com>
Co-authored-by: Simon Guan <guanshengliang@qq.com>
2025-06-25 14:58:51 +08:00
dongming chen
b46c54f843
refactor: remove unused fileLock mutex from SVnodeMgmt structure (#31441) 2025-06-24 16:54:26 +08:00
dongming chen
73261908b5
fix: implement retry mechanism for vnodeProcessWriteMsg in vnodeApply… (#31388) 2025-06-24 16:53:11 +08:00
Mario Peng
c65e1592fa
feat:insert into subquery (#31401) 2025-06-21 15:11:09 +08:00
Simon Guan
371ae9b7fd Merge branch '3.0' into merge/mainto3.0 2025-06-20 14:48:47 +08:00
Simon Guan
9923aedcb6 Merge branch 'main' into merge/mainto3.0 2025-06-20 14:48:16 +08:00
Simon Guan
441a2472d7 Merge branch '3.0' into merge/3.0tomain2 2025-06-19 18:26:02 +08:00
Hongze Cheng
d9e56a61e4 enh: make info to debug 2025-06-18 16:45:29 +08:00
Kaili Xu
0368159763
fix: race condition of update tsDndUpTime (#31399) 2025-06-18 09:47:33 +08:00
Minglei Jin
082c1ebfa9
relean mutex when returning (#31389) 2025-06-18 09:40:14 +08:00
Minglei Jin
4ddfb76cb9
relean mutex when returning (#31390) 2025-06-18 09:40:03 +08:00
Hongze Cheng
696d29d916 Merge branch 'main' of https://github.com/taosdata/TDengine into fix/TS-6672-taosd-main 2025-06-17 10:37:02 +08:00
Yihao Deng
5f1e6fa4b6
update ip -white-list log (#31331) 2025-06-16 19:50:42 +08:00
Hongze Cheng
3e68b4cdd4 enh: add more check of submit message 2025-06-16 14:54:17 +08:00
Hongze Cheng
d17c67a8ae Merge branch 'main' of https://github.com/taosdata/TDengine into fix/hzcheng/check_column_number_alter_table 2025-06-16 09:37:27 +08:00
Kaili Xu
56cdb4ca97
fix: add vnode/storage_size for show grants (#31353) 2025-06-14 11:48:37 +08:00
Simon Guan
2838d2f063 Merge branch '3.0' into merge/mainto3.0 2025-06-14 10:41:12 +08:00
Simon Guan
f691365426 Merge branch 'main' into merge/mainto3.0 2025-06-14 10:32:34 +08:00
Hongze Cheng
8924124917 fix: check column number when alter table 2025-06-12 16:04:18 +08:00
Yihao Deng
dc6dba0e06
feat: database engine (taosd) supports IPV6 (#31101) 2025-06-10 09:18:58 +08:00
Haojun Liao
e725e4ab24
fix(gpt): update the timeout parameter. (#31267) 2025-06-06 17:22:46 +08:00
Mario Peng
cc3fabdc08
fix:tsdb select error (#31300) 2025-06-06 15:09:54 +08:00
dongming chen
87c969b168
fix: [TD-35276] add-log-apply-internal-error (#31274) 2025-06-04 17:24:49 +08:00
dongming chen
4aff5c9b06
fix/fix-ci-build (#31248) 2025-05-29 17:37:12 +08:00
dongming chen
4b0ec00b75
enh: [TS-6089] trans-parallel (#30265) 2025-05-29 16:49:43 +08:00
dongming chen
7126f40688
feat: [TD-29445] add error handling for offline vnode state (#31232) 2025-05-29 16:44:08 +08:00
WANG MINGMING
3006ee87ed
fix: avoid using : in consumer group (#31225) 2025-05-29 16:29:07 +08:00
Hongze Cheng
98e23733ba
fix: add duplicate tolerance (#31217) 2025-05-28 16:54:48 +08:00