Commit Graph

736 Commits

Author SHA1 Message Date
Minglei Jin 0ec80ff47f tdb/ofp-recycle: recycle ofps when dropOfp 2023-06-29 13:14:45 +08:00
Minglei Jin fc79074e49 tdb/ofp: turn ofp recycle off for ci 2023-06-28 15:51:33 +08:00
Minglei Jin b2c0bcb1e0 tdb/ofp-recycle: fix mem leaks 2023-06-28 13:35:14 +08:00
Minglei Jin a3c9b17212 tdb/ofp: recycl ofps 2023-06-28 10:46:01 +08:00
Minglei Jin f8921199e7 tdb/test: cases for ofp recycling 2023-06-28 09:37:26 +08:00
Minglei Jin 4d02199547 Merge branch '3.0' into fix/TD-24717 2023-06-28 08:04:52 +08:00
Minglei Jin 204999d57e tdb/test: refactor page recycling test cases 2023-06-26 08:10:45 +08:00
Minglei Jin fe197ccf9c tdb/ofp-test: fix memory leaks 2023-06-25 10:46:28 +08:00
Minglei Jin 76a734c53a tdb/test: fix recycle testing cases 2023-06-20 15:07:49 +08:00
Minglei Jin 4e3df6606b tdb/btree: recyle pNews 0 2023-06-20 15:06:17 +08:00
Minglei Jin 40b741dfee tdb/pager: comment out error log 2023-06-20 07:52:45 +08:00
Shungang Li b93f653d7e feat: enhance ttl, deletetime modified by writing-ops
new config item: ttlChangeOnWrite (default 0)
ttl delete time changes on last write if true
2023-06-19 19:03:35 +08:00
Minglei Jin 8fee813de6 tdb/alloc-page: new param pTxn to fix memory leaking 2023-06-13 14:35:49 +08:00
Minglei Jin 621d4b20c0 tdb/pager: remove debug log 2023-06-12 16:43:49 +08:00
Minglei Jin 9e7f860d7c enh(tdb/recycle): first round implemenation of page recycling 2023-06-12 16:40:24 +08:00
kailixu 0c3dc0867f chore: sync fix from main 2023-05-05 20:33:41 +08:00
Minglei Jin a07366ed02 fix(tdb/pager): destroy txn id list 2023-03-23 18:23:14 +08:00
Minglei Jin 5d641a8934 fix(tdb/restore): restore tdb journal backward 2023-03-23 17:55:53 +08:00
Xiaoyu Wang d6dd087f84 merge main 2023-02-25 10:29:20 +08:00
Minglei Jin 0833592f83 fix(tdb): free realloced coder's pKey 2023-02-23 19:42:03 +08:00
Minglei Jin 797722a6ae fix(tdb/coder): free key memory of stack btc's coder 2023-02-23 15:43:34 +08:00
Xiaoyu Wang 1ab144609e merge main 2023-02-23 14:58:22 +08:00
dapan1121 4e0d69c6b0 fix: memory leak in tdb 2023-02-21 16:11:14 +08:00
Xiaoyu Wang 3382a24a69 merge main 2023-02-10 18:03:11 +08:00
Minglei Jin dbdf26538c fix(tdb/page): remove n^2 implementation of page defragment 2023-02-08 09:56:18 +08:00
Hongze Cheng a086f83c27 fix: slow TDB page defragment 2023-02-08 09:46:48 +08:00
Minglei Jin e3ba07e054 test(tdb/defragment): unit test case for page defragment 2023-02-07 18:25:22 +08:00
Minglei Jin 6cdfa6d60f fix(tdb): return success if txn is commited 2023-02-02 17:51:04 +08:00
Shengliang Guan f6248d21df fix: coredump if no data while vnode commit 2023-01-31 13:32:08 +08:00
Xiaoyu Wang 9a0c2805f4 merge main 2023-01-13 13:54:04 +08:00
Minglei Jin 7b331135cf fix(tdb/ofp): upgrade ofp cell with large key 2023-01-11 16:16:05 +08:00
Minglei Jin 1872627343 fix(tdb/ofp): upgrade large key ofp case 2023-01-11 14:53:13 +08:00
Shengliang Guan 398161eb5f Merge branch 'main' into merge/mainto3.0_0108 2023-01-09 10:00:53 +08:00
Minglei Jin 4e1f5b2979 fix(meta): cleanup coverity scan issues 2023-01-05 14:04:21 +08:00
Xiaoyu Wang fdde287ca9 merge main 2023-01-04 11:43:20 +08:00
Benguang Zhao 4031dc1af4 Merge branch main into FIX/TD-21043-main 2023-01-02 16:41:46 +08:00
Benguang Zhao 3edde0eadf fix: tdbAbort on metaClose or streamMetaClose instead of tdbTxnClose 2023-01-01 21:07:32 +08:00
Minglei Jin f12df819ae fix(tdb): free stack celldecoder's pVal 2022-12-29 14:23:21 +08:00
Minglei Jin a20640f016 Merge branch 'fix/TD-21210' of https://github.com/taosdata/TDengine into fix/TD-21210 2022-12-29 10:00:17 +08:00
Minglei Jin 1269d20cd9 Merge branch '3.0' into fix/TD-21210 2022-12-29 09:27:35 +08:00
Minglei Jin 858e5321c8
Merge branch '3.0' into fix/TD-21210 2022-12-28 18:40:46 +08:00
Minglei Jin 0facc8e088 fix(tdb/assert/cleanup): remove asserts 2022-12-28 18:38:15 +08:00
Benguang Zhao fda2f55fe5 Merge branch main to FIX/TD-21043-main 2022-12-26 14:26:25 +08:00
Minglei Jin c4f40874c1 tdb/pager: debug logs for pager restore 2022-12-26 09:28:00 +08:00
Benguang Zhao 5159d60f56 enh: vnodeCommit on consensus only 2022-12-23 20:16:32 +08:00
Minglei Jin 336ee146e6 fix(tdb/restore): seek jfd to begin 2022-12-22 17:56:56 +08:00
Minglei Jin 25e3f653ee fix(tdb/abort): invalidate flushed pages in cache not on dirty tree 2022-12-22 10:50:16 +08:00
Minglei Jin b6caecea28 tdb/pager: seek jfd to file begin when abort 2022-12-19 17:11:08 +08:00
Minglei Jin 1eea4101f1 tdb/pager: new trace log for abort operation 2022-12-19 16:40:08 +08:00
Minglei Jin 8369fef53c fix(tdb): zero page if ncells is zero when init page 2022-12-19 15:34:03 +08:00
Minglei Jin 30db4f9582 fix(tdb): rollback befor commit btree root page 2022-12-19 14:45:22 +08:00
Minglei Jin 4e4b3661ea fix(tdb): rollback in-memory pages 2022-12-19 11:39:41 +08:00
Minglei Jin c22fa53bc4 fix: release lock and memory in exceptional cases 2022-12-09 10:22:43 +08:00
Minglei Jin da31f5e588 fix: dismiss coverity issues 2022-12-08 13:54:41 +08:00
Shengliang Guan 1bb1025f7d enh: add tassert 2022-12-07 22:24:47 +08:00
Shengliang Guan 6d94afe48f
Revert "refact: adjust some assert cases" 2022-12-07 21:51:17 +08:00
Shengliang Guan d5126d469a refact: replcase ASSERT with tAssert 2022-12-07 18:42:48 +08:00
Shengliang Guan f69a188f7e refact: replcase ASSERT with tAssert 2022-12-07 18:37:40 +08:00
Minglei Jin 6b7c540884 fix: use tdbTrace to reduce 135 debug log output 2022-12-05 10:14:18 +08:00
Hongze Cheng 3fc30c991e Merge branch '3.0' of https://github.com/taosdata/TDengine into feat/async_commit 2022-12-01 18:59:21 +08:00
Hongze Cheng df7c07a541 Merge branch 'fix/tdb-async-commit' of https://github.com/taosdata/TDengine into feat/async_commit 2022-11-30 16:48:09 +08:00
Benguang Zhao 470441c541 Merge branch 3.0 to FIX/TD-19334-3.0 2022-11-29 18:24:01 +08:00
Minglei Jin 0b1cd9f824 tdb/journal: rollback & restore multiple journal files 2022-11-29 16:00:51 +08:00
Minglei Jin 629c87685f fix/txnId: wrap around INT64_MAX 2022-11-29 11:04:47 +08:00
Minglei Jin 7902b7aaac fix/tdb: remove UAF preped 2022-11-29 10:46:04 +08:00
Minglei Jin e090cd9dd9 tdb/pager: move journal to txn 2022-11-29 10:18:12 +08:00
Hongze Cheng 3894856918 fix: alter db pages memory leak 2022-11-28 22:23:01 +08:00
Minglei Jin a780305e10 tdb/begin: use txn id in mem 2022-11-28 17:36:33 +08:00
Minglei Jin 50318f6f96 tdb/pager: use tdb pwrite page to db instead of write 2022-11-28 17:33:11 +08:00
Minglei Jin 7a7d7f7d00 tdb/write: new tdbPWriteFile api for commit and prep async to maindb 2022-11-28 17:31:11 +08:00
Minglei Jin 506554b5d2 Merge branch 'v3.0' into fix/tdb-async-commit 2022-11-28 16:20:48 +08:00
Minglei Jin 7bb27e29b7 fix(tdb/flush): make drop two-child rbtree node works 2022-11-28 14:38:12 +08:00
Benguang Zhao dc2dcea3de Merge branch 3.0 to FIX/TD-19334-3.0 2022-11-28 14:27:10 +08:00
Benguang Zhao 68f8ebac9d Merge branch 3.0 to FIX/TD-19334-3.0 2022-11-25 13:10:06 +08:00
Shengliang Guan 6150b6ede7
Merge pull request #18442 from taosdata/fix/TD-20643-alter-larger
fix(tdb/pcache): type nPages as nPage
2022-11-25 12:19:19 +08:00
Minglei Jin f5f385486d fix(tdb/pcache): typo pCache->nPages as pCache->nPage 2022-11-24 21:42:09 +08:00
Minglei Jin 1a2983c067 fix(tdb): zero pOlds[i]'s nOverflow and assert it's zero when committing 2022-11-24 18:07:06 +08:00
Minglei Jin 78335f83d2 tdb/api: migrate txn related api changes of meta, sma, tq, and stream meta/state 2022-11-17 20:02:13 +08:00
Benguang Zhao 051b73c1ed Merge branch 3.0 to FIX/TD-19334-3.0 2022-11-17 17:28:11 +08:00
Minglei Jin 1441684c03 cleanup: remove unused pager open 2022-11-17 09:29:27 +08:00
stephenkgu 420be42269 fix: flush pages to get buffer ready for fetching 2022-11-14 10:37:56 +08:00
Minglei Jin 1a4cf6964b fix: add post commit to tq & stream 2022-11-07 20:34:23 +08:00
Minglei Jin c17f8244be enh(tdb): new interface of meta prep async commit 2022-11-07 16:45:29 +08:00
Benguang Zhao 5878c9a31a fix: impl ring log buffer 2022-11-07 14:27:22 +08:00
Minglei Jin 451b6a451d fix: set output value to null if zero-length 2022-11-02 11:47:58 +08:00
Minglei Jin 4dc0eaf0be fix: zero new dest pages to avoid double free ovfl cell 2022-10-25 17:48:06 +08:00
Minglei Jin 16275caa8d fix(tdb): typo casues large page crash 2022-10-20 15:39:37 +08:00
Minglei Jin 894d13ac18 fix: cleanup tdbExOVFL test cases 2022-10-20 13:58:13 +08:00
Minglei Jin 716c3f8a59 fix: coverity issues 2022-10-20 09:47:04 +08:00
Shengliang Guan 985e6f53e4 Merge branch '3.0' into FIX/TD-19593-3.0 2022-10-19 19:06:03 +08:00
Minglei Jin 1fc3e07abd fix: use PRId64 instead of ld to format string 2022-10-19 16:34:25 +08:00
Benguang Zhao 2aa7afe7fa Merge branch '3.0' into FIX/TD-19593-3.0 2022-10-19 16:31:13 +08:00
Minglei Jin 1e4601d8f6 fix: coverity issues 2022-10-19 16:30:50 +08:00
Benguang Zhao 3b0968d7f9 enh: enable the -Wformat=2 compiler option 2022-10-19 09:24:15 +08:00
Hongze Cheng 74d025c783 Merge branch '3.0' of https://github.com/taosdata/TDengine into fix/commit_txn 2022-10-18 22:47:12 +08:00
Minglei Jin 82132cdfdd meta: new metaFinishCommit api & rollback parameter with metaOpen 2022-10-18 18:34:39 +08:00
Minglei Jin 029abe7396 fix: coverity issues 2022-10-18 14:32:18 +08:00
Minglei Jin 5c66712b91 fix: coverity issues 2022-10-17 15:28:10 +08:00
Benguang Zhao 616eb5f903 Merge branch '3.0' into FIX/TD-19239-3.0 2022-10-16 00:29:01 +08:00
Benguang Zhao 6f39a36344 fix: replace asserts on failure of tdbPagerWrite with tdbError msg 2022-10-15 23:57:37 +08:00