Commit Graph

100 Commits

Author SHA1 Message Date
Benguang Zhao 4718f4d1b6 fix: resend acked msgs on exceeding maximum retryWaitMs 2022-12-30 17:24:44 +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 e8e189cbbb enh: add sync log buffer info in logging msg in syncLogReplMgrRetryOnNeed 2022-12-29 15:48:59 +08:00
Benguang Zhao d307413c36 Merge branch 'main' into FIX/TD-21043-main 2022-12-29 10:03:17 +08:00
Benguang Zhao 044e58b712 enh: adjust logging msgs for sync probe and rollback 2022-12-29 10:00:35 +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 71a2848376 fix: double free on append log failed 2022-12-27 17:51:52 +08:00
Benguang Zhao 8916722dd7 Merge branch main to FIX/TD-21043-main 2022-12-27 14:50:39 +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
Benguang Zhao fda2f55fe5 Merge branch main to FIX/TD-21043-main 2022-12-26 14:26:25 +08:00
Benguang Zhao 7227e53b98 fix: set restore finish only after reaching the current term 2022-12-26 14:22:54 +08:00
Benguang Zhao 5159d60f56 enh: vnodeCommit on consensus only 2022-12-23 20:16:32 +08:00
Shengliang Guan b59bee6696 fix: restart snapshot sender on receiver is restart 2022-12-23 11:03:50 +08:00
Shengliang Guan 12b6cf15a0 refact: set FpGetSnapshotInfo return type to void 2022-12-20 14:57:04 +08:00
Shengliang Guan b74e0b0715
Merge pull request #19004 from taosdata/FIX/TD-21169-main
fix: allow to rollback sync log buffer beyond startIndex with refill
2022-12-19 12:57:17 +08:00
Benguang Zhao a218108140 fix: allow to rollback sync log buffer beyond startIndex with refill 2022-12-19 11:15:03 +08:00
Benguang Zhao 8af1cf15a7 enh: adjust batchSize dynamically on retryBackoff 2022-12-14 21:37:16 +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
Benguang Zhao 50883689e7 enh: check contiguousness of indexes applied to vnode tsdb 2022-12-07 17:30:22 +08:00
Benguang Zhao 21ff35ee42 fix: truncate WAL on need while syncLogBufferRollback 2022-12-04 08:13:49 +08:00
Benguang Zhao a7807d3ee4 fix: synchronize syncPropose for executing blocking msgs in vnodeProposeMsg 2022-12-03 20:53:56 +08:00
Benguang Zhao 2ce07c6ec1 fix: get result of tmsPutToQueue for FpCommitCb 2022-12-03 09:05:50 +08:00
Benguang Zhao e97c8f637b enh: logging sync log buffer rollback events 2022-12-03 09:05:39 +08:00
Benguang Zhao 03d62e478f fix: get prevLogTerm of index zero as 0 only when firstVer is zero 2022-12-01 22:18:08 +08:00
Benguang Zhao 3cbe109e4b fix: initialize vnode state applyTerm with commitTerm in vnodeOpen 2022-11-30 22:41:33 +08:00
Benguang Zhao decb17fcb1 fix: use recursive mutex for relocking ring log buffer in syncNodeDoConfigChange 2022-11-29 23:19:32 +08:00
Benguang Zhao 4f37947e42 fix: minimum commitTerm as 0 in syncLogBufferInit 2022-11-29 17:15:48 +08:00
Benguang Zhao 5f4fb90f69 enh: reduce retryBackoff if first timeMs less than last one for half the current retryWaitMs 2022-11-28 13:47:07 +08:00
Benguang Zhao 4edef438ea enh: transfer ownership of msgs while committing sync log entries 2022-11-26 21:57:23 +08:00
Benguang Zhao a01f34fd83 fix: clear sync log buffer in syncLogBufferDestroy 2022-11-26 16:20:23 +08:00
Benguang Zhao 012bcf1a5d enh: adjust logging levels in syncLogBufferAccept, e.g. sInfo to sWarn 2022-11-26 14:27:06 +08:00
Benguang Zhao 082428acab enh: reduce the number of probing msgs under stress in recovery mode 2022-11-26 13:18:52 +08:00
Benguang Zhao 736a1cc017 enh: adjust some info msgs for raft pipelining 2022-11-26 00:37:20 +08:00
Benguang Zhao 143a2e8552 feat: start snapshot replication to rollback in recovery mode 2022-11-25 21:22:49 +08:00
Benguang Zhao d5ae1ca18a enh: make the range span of unconfirmed logs sent less than half of the size of log ring buffer 2022-11-25 10:37:56 +08:00
Benguang Zhao ff286e1f1c enh: spool commit sync barrier as info in syncLogBufferCommit 2022-11-24 18:37:31 +08:00
Benguang Zhao 6729c130f8 fix: leave some free space in log buffer during syncLogBufferInit 2022-11-24 16:56:18 +08:00
Benguang Zhao 22d64b9c0b fix: remove syncNodeReplicateOne from syncNodeOnSnapshotReply 2022-11-24 15:55:31 +08:00
Benguang Zhao 2e640e8e68 feat: start snapshot in recovery mode of sync repl mgr with lastMatchTerm in reply msg 2022-11-24 11:01:26 +08:00
Benguang Zhao f68e41a40e enh: initialize log buffer again after receiving a complete snapshot 2022-11-23 15:57:40 +08:00
Benguang Zhao 006e13e663 enh: validate alignment of WAL and tsdb commit during syncLogBufferInit 2022-11-23 10:24:17 +08:00
Benguang Zhao b80095dc87 enh: snapshot during recovery of SSynclogReplMgr 2022-11-22 22:24:20 +08:00
Benguang Zhao 8ef5ca78ee fix: protect syncNodeReplicate with mutex lock 2022-11-22 10:54:32 +08:00
Benguang Zhao b90ee79623 fix: use syncLogBufferCommit in syncNodeOnLocalCmd 2022-11-21 13:51:01 +08:00
Benguang Zhao c9c05761d6 enh: rename syncLogToAppendEntries to syncBuildAppendEntriesFromRaftLog 2022-11-18 12:40:00 +08:00
Benguang Zhao 03b88ff41c enh: rename syncLogBuffer.h|c to syncPipeline.h|c 2022-11-18 12:39:04 +08:00