Commit Graph

716 Commits

Author SHA1 Message Date
dmchen 93766f8c96 memory leak 2023-07-19 08:32:16 +08:00
dmchen 3711fdd865 feat/TD-22970 2023-07-18 16:09:38 +08:00
dapan1121 4dae9f4eff merge main to 3.0 2023-06-26 18:43:00 +08:00
Benguang Zhao 267cbfbc1c enh: update syncNodePropose 2023-05-29 19:49:28 +08:00
dmchen 0fdeb5fbae restore learner stuck 2023-05-17 17:28:20 +08:00
Benguang Zhao 693bc09f19 enh: comment off unused error codes in sync and wal 2023-04-25 17:36:13 +08:00
cadem 5a512eb767 remove null pointer 2023-04-24 16:06:56 +08:00
Xiaoyu Wang f5a974489e
Merge pull request #21045 from taosdata/fix/block-check-to-async-check
fix/block-check-to-async-check
2023-04-24 15:41:17 +08:00
cadem a781d43577 fix/block-check-to-async-check 2023-04-24 10:23:43 +08:00
Benguang Zhao 104781124a fix: update commit index from heartbeat on learner in the same way as on follower 2023-04-24 09:36:25 +08:00
Benguang Zhao 7781932da2 fix: spool logging msg with pMsg->term in syncNodeOnHeartbeat 2023-04-23 17:19:01 +08:00
cadem 3b78d4382b add learner 2023-04-18 19:03:45 +08:00
Xiaoyu Wang 933660ae8d Merge remote-tracking branch 'origin/main' into fix/3.0_merge_main 2023-04-12 14:13:23 +08:00
Benguang Zhao edc9fe9705 enh: change the error msg of INVALID_VGROUP_ID to Vnode is closed or removed 2023-04-12 10:12:41 +08:00
Xiaoyu Wang 4c04b155d5 merge main 2023-04-11 15:56:28 +08:00
Benguang Zhao 0a1476763a enh: refactor some func names of syncLogReplMgr 2023-04-06 16:26:44 +08:00
Xiaoyu Wang e9d7a099cc merge main 2023-04-04 14:50:58 +08:00
Xiaoyu Wang ed48713a4b
Merge pull request #20615 from taosdata/fix/trigger-election-by-sync-msg
Fix/trigger election by sync msg
2023-03-27 11:54:53 +08:00
Xiaoyu Wang d2b8c5e433
Merge pull request #20524 from taosdata/fix/clusterid-isolation
fix: clusterid isolation
2023-03-25 09:19:49 +08:00
cadem 86ca5ce210 fix/trigger election by sync msg 2023-03-24 09:13:20 +08:00
Shengliang Guan 8d1224ce22 refactor: format code 2023-03-23 22:31:20 +08:00
dapan1121 5b02af6a91 fix: merge main to 3.0 2023-03-22 16:08:16 +08:00
cadem ea35f0ae11 feat/balance vgroup leader 2023-03-22 09:36:59 +08:00
cadem 39f6ce1694 remove memory leak and syncNodeInRaftGroup 2023-03-20 18:34:20 +08:00
cadem 7c970d1847 fix/clusterid isolation 2023-03-18 11:16:52 +08:00
Benguang Zhao 9f97162ef7 enh: separate election timer events 2023-03-14 21:02:06 +08:00
Benguang Zhao e350f71396 enh: reset elect timer at the end of callbacks 2023-03-14 19:45:31 +08:00
Shengliang Guan bf03965931
Merge pull request #20413 from taosdata/FIX/TD-22564-main
enh: not allow to propose if fsm applying progress lagging behind too far
2023-03-14 09:36:04 +08:00
Benguang Zhao 552d0bc8a0 enh: not allow to insert if Tsdb applied lagging behind too far 2023-03-09 18:56:12 +08:00
Shengliang Guan a8dbfe9595
Merge pull request #20346 from taosdata/FIX/TD-22572-main
enh: no need to wait for emptying apply queue in syncNodePreClose
2023-03-09 15:17:10 +08:00
Benguang Zhao 24ebb2f547 enh: no need to wait for emptying apply queue in syncNodePreClose 2023-03-08 19:35:05 +08:00
Benguang Zhao eca97bf5b4 enh: keep extra raft Logs before minimum match index 2023-03-07 16:44:47 +08:00
Benguang Zhao b91734cf91 enh: sync log retention of mnode configurable with mndLogRetention 2023-03-04 09:51:34 +08:00
Xiaoyu Wang d6dd087f84 merge main 2023-02-25 10:29:20 +08:00
Xiaoyu Wang 58fc265b80 merge main 2023-02-24 13:26:45 +08:00
Xiaoyu Wang d04d610a85
Merge pull request #20061 from taosdata/FIX/TD-22611-main
enh: refactor syncBeginSnapshot and walBeginSnapshot for logRetention
2023-02-24 13:12:06 +08:00
Xiaoyu Wang 1ab144609e merge main 2023-02-23 14:58:22 +08:00
Benguang Zhao e45367f924 fix: resolve coverity scan issues in sync and wal 2023-02-23 14:16:21 +08:00
Benguang Zhao 3b47dd753e enh: update pSyncNode->minMatchIndex in sncNodeEqPeerHeartbeatTimer 2023-02-21 20:01:54 +08:00
Benguang Zhao b0b9877265 fix: check if log buffer is empty in syncNodeOnLocalCmd 2023-02-21 19:00:47 +08:00
Benguang Zhao 0c7a4bfad9 enh: refactor syncBeginSnapshot and walBeginSnapshot for logRetention 2023-02-20 19:19:49 +08:00
Xiaoyu Wang c597de099f merge main 2023-02-20 13:41:27 +08:00
Benguang Zhao d51c3c36fb fix: not allow to read if sync is restoring 2023-02-17 19:47:52 +08:00
Benguang Zhao 99bfc95d54 fix: synchronize access to raftStore 2023-02-13 19:00:10 +08:00
Xiaoyu Wang 09925437e3 merge main 2023-02-08 09:51:52 +08:00
Shengliang Guan 4d20469e2b fix: adjust log formats 2023-02-07 00:12:05 +08:00
Hongze Cheng 0f00862d8b Merge branch 'fix/TD-22070' of https://github.com/taosdata/TDengine into fix/3.0_merge_main 2023-01-30 10:17:59 +08:00
Benguang Zhao bd23a36f86 fix: round lastApplyIndex up to beginIndex -1 in syncBeginSnapshot 2023-01-29 18:03:09 +08:00
Hongze Cheng 5e7b6602c5 Merge branch 'main' of https://github.com/taosdata/TDengine into fix/3.0_merge_main 2023-01-29 14:05:15 +08:00
Xiaoyu Wang 284286cbc4
Merge pull request #19621 from taosdata/FIX/TD-21218-main
enh: remove unused old routines in sync
2023-01-29 10:56:29 +08:00
Xiaoyu Wang 24157e78d6 merge main 2023-01-28 17:52:58 +08:00
Benguang Zhao 1f01ba7cc0 fix: not keep wal log vnodeCommit'ed for single replica db 2023-01-18 16:34:08 +08:00
Benguang Zhao e55a76e25a Merge branch main into FIX/TD-21218-main 2023-01-18 10:15:16 +08:00
Benguang Zhao d611793537 enh: remove unused old routines in sync 2023-01-18 10:07:16 +08:00
Shengliang Guan e11d57d58c
Merge pull request #19533 from taosdata/FIX/TD-21662-main
enh: skip WAL forceSync for single replica vgroup
2023-01-17 14:25:04 +08:00
Shengliang Guan d476b6db13 enh: update epset on dnode info changed 2023-01-16 15:41:50 +08:00
Shengliang Guan bd531ccfb3
Merge pull request #19542 from taosdata/enh/TD-20047
refact: adjust return value of tmsgUpdateDnodeInfo
2023-01-13 10:54:10 +08:00
Shengliang Guan cd0404bc25 refact: adjust return value of tmsgUpdateDnodeInfo 2023-01-12 17:08:33 +08:00
Benguang Zhao 5a4cc36079 enh: skip WAL forceSync for single replica vgroup 2023-01-12 09:25:55 +08:00
Shengliang Guan cff741e4c4 fix: coverity issues 2023-01-11 16:56:14 +08:00
Shengliang Guan 2aeda3a941 enh: refact raft store file 2023-01-09 12:01:36 +08:00
Shengliang Guan 84bea778c9 Merge branch 'fix/TD-21746' into FIX/TD-21043-main 2023-01-05 16:15:50 +08:00
Shengliang Guan b8e1064b0f fix: compile error 2023-01-05 16:15:42 +08:00
Shengliang Guan ef3e60c387 Merge branch 'fix/TD-21746' into FIX/TD-21043-main 2023-01-05 15:58:30 +08:00
Shengliang Guan 7e5d97f0da fix: stop snapshot receiver on sync post close 2023-01-05 12:00:35 +08:00
Benguang Zhao 9d5e74a3ff Merge branch 'main' into FIX/TD-21043-main 2023-01-05 09:47:22 +08:00
Benguang Zhao 442902e5cb fix: send rpc response on closing sync or failing to enqueue 2023-01-04 19:18:46 +08:00
Shengliang Guan bf6dc99461 fix: adjust sync logs 2023-01-04 11:48:30 +08:00
Shengliang Guan 34260cd397 Merge branch 'main' into FIX/TD-21043-main 2023-01-04 09:29:07 +08:00
Shengliang Guan 70b513c09c fix: vnode set the wrong replica info after snapshot transfered 2023-01-03 19:47:04 +08:00
Benguang Zhao 4031dc1af4 Merge branch main into FIX/TD-21043-main 2023-01-02 16:41:46 +08:00
Shengliang Guan 01209614e6 fix: compatiable for pre version 2022-12-30 19:04:18 +08:00
Shengliang Guan c2323db00d fix: allow the ip resolved by fqdn different between dnodes 2022-12-30 17:04:14 +08:00
Benguang Zhao 0c4ade9373 fix: update sync node commitIndex only if matchTerm equals currentTerm upon heartbeat 2022-12-28 20:25:52 +08:00
Shengliang Guan 09fbb8ebc4 Merge branch 'main' into FIX/TD-21535-main 2022-12-27 10:47:12 +08:00
Benguang Zhao a7bfeb5fbe fix: check existence of SMsgHead in SSyncRaftEntry data or SRpcMsg pCont 2022-12-26 23:10:46 +08:00
Shengliang Guan 794fb5d1b5 fix: handle error if sync buffer is full 2022-12-26 20:40:33 +08:00
Shengliang Guan 668a26c1b0 enh: handle error while transfer snapshot 2022-12-26 15:03:18 +08:00
Shengliang Guan 6e7e3139b1 fix: heap-use-after-free while alter vnode replicas 2022-12-21 17:33:34 +08:00
Shengliang Guan d674c8370b refact: update sync log 2022-12-20 21:30:46 +08:00
Shengliang Guan 12b6cf15a0 refact: set FpGetSnapshotInfo return type to void 2022-12-20 14:57:04 +08:00
Shengliang Guan ead5d8edf2 fix: reduce drop dnode speed makes data more secure 2022-12-17 18:34:29 +08:00
Shengliang Guan 60bab9ae55 refact: post sem in vnode while sync timeout 2022-12-14 16:09:28 +08:00
Shengliang Guan 9af36669ad refact: post sem in vnode while sync timeout 2022-12-14 11:56:08 +08:00
Shengliang Guan 2b256542a5 refact: add vnode timer 2022-12-14 09:14:40 +08:00
Minghao Li 291750b9c3 fix(sync): snapshot problem 2022-12-08 22:34:08 +08:00
Shengliang Guan 932d7a7ac6
Merge pull request #18808 from taosdata/fix/sync
fix(sync): checkout NULL pointer
2022-12-08 17:16:12 +08:00
Minghao Li abd5c696f0 fix(sync): checkout NULL pointer 2022-12-08 15:21: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 4172acf95d git lo 2022-12-07 19:39:53 +08:00
Shengliang Guan d5126d469a refact: replcase ASSERT with tAssert 2022-12-07 18:42:48 +08:00
Minghao Li b107518b00 fix(sync): when FpApplyQueueItems return -1, break loop 2022-12-05 20:24:25 +08:00
Minghao Li a1ed4b334c fix(sync): close snapshot receiver in pre-close 2022-12-05 18:50:19 +08:00
Minghao Li 3939c96a92 refactor(sync): modify/use default config value 2022-12-05 12:35:57 +08:00
Minghao Li 575c5e89fc refactor(sync): add config item in sync 2022-12-04 09:49:27 +08:00
Benguang Zhao a7807d3ee4 fix: synchronize syncPropose for executing blocking msgs in vnodeProposeMsg 2022-12-03 20:53:56 +08:00
Shengliang Guan 13f36ec20a refact: remove TSDB_CODE_APP_NOT_READY and TSDB_CODE_NODE_NOT_DEPLOYED 2022-12-02 16:06:10 +08:00
Minghao Li 3f4ba9a792 fix(sync): delete duplicate code 2022-12-01 18:15:59 +08:00
Shengliang Guan 9f90467b68
Merge pull request #18614 from taosdata/feature/3.0_mhli
refactor(sync): put heartbeat-reply msg into sync-ctrl-queue
2022-12-01 17:25:54 +08:00