TDengine/include/util
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
..
cus_name.h feat: support customized taos/taosd (#29736) 2025-03-14 13:32:13 +08:00
talgo.h add return code 2024-07-16 14:56:30 +08:00
taoserror.h feat[ts-6107]: shared storage (#31552) 2025-07-14 16:33:53 +08:00
tarray.h add return code 2024-07-16 14:56:30 +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 enh: return error code 2024-07-22 15:29:37 +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 feat(decimal): support decimal data type (#30060) 2025-03-14 18:08:07 +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
tdef.h feat[ts-6107]: shared storage (#31552) 2025-07-14 16:33:53 +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 enh: add strict message check for submit message 2025-01-08 17:29:32 +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 enh: query 2024-11-12 16:11:47 +08:00
tlist.h adj stream operator result 2024-07-18 10:09:15 +08:00
tlockfree.h Merge remote-tracking branch 'origin/3.0' into feat/TD-30268 2024-10-24 16:49:38 +08:00
tlog.h feat[ts-6107]: shared storage (#31552) 2025-07-14 16:33:53 +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
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
tqueue.h fix(rpc):use tsApplyMemoryAllowed to control memory alloc while apply msg. 2025-01-21 11:33:08 +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
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
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: support mount data path (#31677) 2025-07-12 15:39:29 +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 refactor(stream): add long exec stream queue for history tasks in step1 and re-calculate task execution. 2025-02-27 00:15:03 +08:00
types.h enh: refactor error code 2024-07-25 08:51:19 +08:00
version.h refact: rename version to td_version 2024-11-04 15:16:15 +08:00