Commit Graph

1367 Commits

Author SHA1 Message Date
Hongze Cheng 31dbb1a48f
Merge pull request #26629 from taosdata/fix/TD-30990
terrno/wal: remove walWrite which is only used in unit testing
2024-07-24 14:11:30 +08:00
Hongze Cheng 83746f52e2 Merge branch '3.0' of https://github.com/taosdata/TDengine into enh/TD-29367-8 2024-07-23 15:14:16 +08:00
Minglei Jin 56691f2e0b Merge branch '3.0' into fix/TD-30990 2024-07-23 14:04:48 +08:00
Hongze Cheng c4d31e7737 enh: refactor error code 2024-07-22 19:40:07 +08:00
Minglei Jin fcce9ebafa return wal fsync error code 2024-07-19 15:20:38 +08:00
Hongze Cheng ffe2973ade refactor return code 2024-07-19 13:19:01 +08:00
Minglei Jin e6c86f5586 fix(wal/write): remove walWrite which is only used in unit testing 2024-07-17 14:45:23 +08:00
Haojun Liao 94f596c4ce refactor: remove the invalid return value. 2024-07-16 18:52:01 +08:00
Shungang Li 1f73bb106e enh: add more log for restore 2024-06-04 17:14:59 +08:00
t_max f030af3aab fix: build fails on macOS and Windows 2024-05-11 14:59:05 +08:00
Benguang Zhao b0f7355d11 enh: check snap begin index against commit index on leader 2024-05-06 16:57:22 +08:00
Benguang Zhao d2f8410586 enh: propagate code of vnodeSnapRead as terrno upwards 2024-04-28 16:47:30 +08:00
Shungang Li c39fcc5194 fix: arb assigned step down need to reset token 2024-04-11 16:56:45 +08:00
Shungang Li 16e0fc44e2 fix: arb reply to set-assigned no matter what error 2024-04-08 19:56:22 +08:00
Benguang Zhao ced7c19943 enh: not to start snap replication if too many open files already 2024-03-25 17:01:23 +08:00
Shungang Li acf42a3d7a fix: arb append noop after become assigned 2024-03-21 18:13:25 +08:00
Shungang Li 4180eea091 enh: arb add more log 2024-03-21 18:13:04 +08:00
Shungang Li d0df927dfa feat: arb add version in sarbgroup 2024-03-19 09:31:05 +08:00
Shungang Li 3a656c3595 feat: support 2 replica with arbitrator 2024-03-19 09:30:35 +08:00
Benguang Zhao dd7f375d8e enh: use reference id of sync node in timer callbacks of sync 2024-02-28 19:01:22 +08:00
Alex Duan ed4a7b0719 coverage: comment no call file syncMain.c 2024-02-16 21:48:01 +08:00
Benguang Zhao 57714dff65 fix: reset sync timer although failed to enqueue since Out of Memory in rpc queue 2024-02-01 11:07:17 +08:00
Yihao Deng 663b5b4ecf sort epset 2024-01-23 09:09:29 +00:00
Yihao Deng 62e6b5ca31 sort epset 2024-01-23 06:23:34 +00:00
Yihao Deng 04538f9049 add test case 2024-01-22 08:59:40 +00:00
Yihao Deng aa14e67da9 refactor retry 2024-01-22 07:21:14 +00:00
Yihao Deng a20845ec69 refactor retry 2024-01-22 01:04:06 +00:00
Yihao Deng 6c732a14a3 refactor retry 2024-01-19 06:20:16 +00:00
Benguang Zhao 84810185c7 fix: skip acked msg in snapshotReSend 2024-01-18 11:16:18 +08:00
Haojun Liao 3d98fc6a67 other: merge 3.0 2024-01-16 18:29:33 +08:00
Haojun Liao 9a4b7a6d82 fix(stream): remove invalid lock, and fix a typo. 2024-01-16 14:52:27 +08:00
Benguang Zhao 485bad1ebd refact: use config syncSnapReplMaxWaitN instead 2024-01-10 11:31:00 +08:00
Benguang Zhao 7979d4532b enh: let max num of concurrent msgs of snap replication be configurable 2024-01-09 16:49:27 +08:00
Benguang Zhao a811a60ad4 enh: restore sync log store from snap on fsm state incomplete 2024-01-04 20:15:17 +08:00
Benguang Zhao baa7f9c895 enh: adjust error msg as warn for not ready to propose etc 2023-12-28 17:29:49 +08:00
Benguang Zhao d83f85bf26 enh: send rsp msg on rejecting snap replication due to smaller term 2023-12-28 17:26:46 +08:00
Benguang Zhao 0e6ea7af71 enh: check snapshot begin index for unexpected change in syncNodeOnSnapshotBegin 2023-12-26 10:54:40 +08:00
Benguang Zhao 7b967ffdc6 enh: retry on fsm commit when rpc out of memory in syncFsmExecute 2023-12-25 20:34:38 +08:00
wade zhang 40994c3fbd
Merge pull request #24174 from taosdata/FIX/TD-28001-3.0
enh: protect syncNodeRestore with log buffer mutex
2023-12-25 10:08:43 +08:00
Benguang Zhao 4137a44fd0 enh: protect syncNodeRestore with log buffer mutex 2023-12-21 17:49:20 +08:00
Benguang Zhao 4c13dee721 enh: protect processing of snap preparation rsp with sender buf mutex 2023-12-19 12:49:48 +08:00
Benguang Zhao 41ef6075e2 enh: check result of FpGetSnapshotInfo for exchange snap info 2023-12-13 18:38:47 +08:00
Benguang Zhao 926c28f62f enh: clear info data of snap sender and receiver at stop 2023-12-13 18:38:44 +08:00
Benguang Zhao 0a7ef098ba enh: reduce wait time to start a new snap replication 2023-12-13 14:01:52 +08:00
Benguang Zhao 6eb64fcd9b fix: set start of snap replication incremental properly 2023-12-13 13:48:45 +08:00
Benguang Zhao c74c4fe208 enh: clean WAL logs based on size if one follower is offline. 2023-12-13 10:10:02 +08:00
Benguang Zhao af8a5c0ada enh: protect stop of snap sender and receiver with the mutex of its buffer 2023-12-12 19:22:34 +08:00
Benguang Zhao c5cde7ffe8 enh: resend new snap replication msg on all acked if not finished yet 2023-12-12 18:35:11 +08:00
Benguang Zhao 1255b46469 fix: destroy dataReaderArr properly in tsdbSnapRAWReaderClose 2023-12-07 15:29:42 +08:00
Benguang Zhao 081c83710e enh: save a copy of snapshot info in syncNodeOnSnapshotPrepRsp 2023-12-07 15:29:37 +08:00