Commit Graph

285 Commits

Author SHA1 Message Date
Minghao Li 363c98e9ed refactor(sync): abstract for log store 2022-06-21 17:45:08 +08:00
Minghao Li 0fb64add90 refactor(sync) add trace log 2022-06-21 15:09:23 +08:00
Minghao Li e441bd266b refactor(sync): add changing state 2022-06-20 17:48:56 +08:00
Minghao Li 5968c6353f refactor(sync): get snapshot and create reader 2022-06-20 10:58:59 +08:00
Minghao Li b247762931 refactor(sync) refactor trace log 2022-06-18 15:17:58 +08:00
Minghao Li f5db109e61 fix(sync): get last max snapshot index 2022-06-17 11:37:10 +08:00
Minghao Li 77b03ac821 refactor(sync): add restore finish when become leader again 2022-06-16 14:40:42 +08:00
Minghao Li 4b18bd718e refactor(sync): adjust errno 2022-06-15 16:14:17 +08:00
Minghao Li fa25fa32e0 refactor(sync): add test syncRaftIdChec 2022-06-14 14:54:11 +08:00
Minghao Li f47a28fe8a enh(sync): add leader transfer 2022-06-13 15:47:43 +08:00
Minghao Li b1093b4a79 fix(sync): use fqdn instead of raftId 2022-06-13 12:13:35 +08:00
Minghao Li dffbec29c7 refactor(sync): add last config index z 2022-06-11 15:31:49 +08:00
Minghao Li fa54663871 refactor(sync): add last config index 2022-06-11 13:52:17 +08:00
Minghao Li 6586f78599 refactor(sync): add last config index 2022-06-11 12:44:58 +08:00
Minghao Li 972fee7fbc refactor(sync): add rpcMsg to reconfig callback 2022-06-10 17:39:30 +08:00
Minghao Li e9d466ec82 refactor(sync) delete some trace log 2022-06-10 16:51:17 +08:00
Minghao Li 98a2451c15 refactor(sync): sync snapshot 2022-06-08 21:55:36 +08:00
Minghao Li 29b97fa0ad refactor(sync): syncNodeOnAppendEntriesReplySnapshotCb 2022-06-08 19:53:07 +08:00
Minghao Li 39d0b652ba refactor(sync): add raft log test 2022-06-08 17:18:26 +08:00
Minghao Li 687caac2bf refactor(sync): add raft log test 2022-06-08 16:45:40 +08:00
Minghao Li 77cd6f44f4 refactor(sync): syncUtilJson2Line 2022-06-08 11:25:24 +08:00
Minghao Li eba8f2b543 fix(sync) send snapshot multi-times 2022-06-07 19:20:05 +08:00
Minghao Li 31b54e7462 enh(sync): add privateTerm into SyncSnapshotRsp, SyncSnapshotSend, SSyncSnapshotReceiver 2022-06-07 18:33:06 +08:00
Minghao Li 7852188394 enh(sync): add privateTerm into SSyncSnapshotSender, SyncAppendEntries, SyncAppendEntriesReply 2022-06-07 16:49:07 +08:00
Minghao Li 305f4a8580 enh(sync): add term into index mgr 2022-06-07 16:33:37 +08:00
Minghao Li 2071c5a74e fix(sync): sending snapshot 2022-06-06 20:02:27 +08:00
Minghao Li 0d7272a369 fix(sync): sending snapshot 2022-06-06 18:23:37 +08:00
Minghao Li af27303a4c enh(sync): update raft core functions 2022-06-06 16:02:25 +08:00
Minghao Li 9c1e1b2f96 enh(sync): add log index manager 2022-06-06 11:31:59 +08:00
Minghao Li 5009b7822f enh(sync): add log index manager 2022-06-06 11:24:25 +08:00
Minghao Li fb4d372255 enh(sync): add log index manager 2022-06-05 22:51:15 +08:00
Minghao Li 2adc0b8a76 enh(sync): add log index manager 2022-06-05 21:48:50 +08:00
Minghao Li 5908631ec3 enh(sync): add log store2 2022-06-05 19:47:54 +08:00
Minghao Li ba8adb73cb refactor(sync): restart elect timer when vote for 2022-06-04 15:49:42 +08:00
Minghao Li eea343c5a6 enh(sync): add syncTestTool 2022-06-04 11:25:03 +08:00
Minghao Li d04c12713a fix: send snapshot 2022-06-02 11:36:26 +08:00
Minghao Li c3bf3cc97c fix: send snapshot 2022-06-01 21:57:30 +08:00
Minghao Li 757a1248dc fix: send snapshot 2022-06-01 21:23:39 +08:00
Minghao Li 320f21820b add snapshot test 2022-06-01 15:25:06 +08:00
Minghao Li 13b336d569 add snapshot test 2022-06-01 15:03:01 +08:00
Minghao Li 060f8224f4 refactor: snapshotReSend 2022-06-01 13:32:52 +08:00
Minghao Li 9988e85f85 add test sender, receiver 2022-05-31 21:31:07 +08:00
Minghao Li 7922997806 enh(sync): add test syncSnapshotRspTest.cpp 2022-05-31 20:54:39 +08:00
Minghao Li 995317bf9c enh(sync): add test syncSnapshotSendTest.cpp 2022-05-31 20:38:59 +08:00
Minghao Li cdc0dc487f Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/3.0_mhli 2022-05-30 21:24:05 +08:00
Minghao Li bdc9acbf2e enh(sync): add snapshotEnable 2022-05-30 12:26:15 +08:00
Li Minghao e3068a60ee
Merge pull request #13180 from taosdata/feature/3.0_mhli
enh(sync): add SSnapshot callback: reader, writer
2022-05-29 07:37:54 +08:00
Minghao Li cd2e8fe730 enh(sync): add SSnapshot callback: reader, writer 2022-05-29 07:15:29 +08:00
Cary Xu f2b4cca23d fix: init buffer to avoid invalid write 2022-05-29 01:10:32 +08:00
Minghao Li b7be03898c enh(sync) snapshot sender, receiver 2022-05-27 15:35:26 +08:00
Minghao Li f078f5b300 fix(sync): syncSetStandby 2022-05-26 15:08:20 +08:00
Minghao Li 4e1aa6b5c5 refactor: config change 2022-05-26 14:21:24 +08:00
Minghao Li 9a2eddda4c fix(sync), call FpCommitCb twice when FOLLOWER 2022-05-26 11:02:35 +08:00
Minghao Li 8c5f6b6849 fix(sync): persist isStandby 2022-05-25 18:32:34 +08:00
Minghao Li 104a207579 FpReConfigCb 2022-05-25 14:43:45 +08:00
Minghao Li 81d0798f5f refactor: update config when there's one locally 2022-05-25 14:27:59 +08:00
Minghao Li aa85781560 enh(sync): add mndSnapshotRead mndSnapshotApply 2022-05-24 15:28:12 +08:00
Minghao Li aa1de8b34a enh(sync): add FpSnapshotRead FpSnapshotApply 2022-05-24 14:46:22 +08:00
Minghao Li ee4b694a35 enh(sync) sync/mnode integration, syncStart async -> sync 2022-05-23 18:10:04 +08:00
Minghao Li 4535722957 enh(sync) sync/mnode integration, syncStart async -> sync 2022-05-23 15:41:04 +08:00
Shengliang Guan f2a84eda09 refactor: adjust vnode header file 2022-05-20 10:45:43 +08:00
Shengliang Guan 0161b6456c refactor: adjust msgcb 2022-05-19 19:44:01 +08:00
Shengliang Guan 81e89ec7b6 Merge remote-tracking branch 'origin/3.0' into fix/mnode 2022-05-16 20:13:02 +08:00
Shengliang Guan fc94b71c80 refactor: adjust SRpcMsg 2022-05-16 15:17:11 +08:00
Minghao Li 956ab45a30 enh(sync): raft config change 2022-05-16 14:10:18 +08:00
Minghao Li 3e65caccaa enh(sync): add syncStartStandBy 2022-05-14 19:54:18 +08:00
Minghao Li a2d43fb96f enh(sync): add syncStartStandBy 2022-05-14 18:12:53 +08:00
Minghao Li 1cfa16fcd8 enh(sync): add syncConfigChangeTest 2022-05-14 16:53:04 +08:00
Li Minghao 76a9ff06b6 Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/3.0_mhli 2022-04-25 07:39:30 -07:00
afwerar f966242047 feature(dnode): mul parameter start. 2022-04-25 13:57:55 +08:00
Li Minghao 7c1f1243fc add UT test.sh 2022-04-24 19:37:01 -07:00
Minghao Li 64dfc1da1c merge 3.0 code 2022-04-22 17:11:56 +08:00
Minghao Li 446a2ed1bf rm syncReplicateTest 2, 3, Load 2022-04-21 17:35:48 +08:00
Minghao Li 49cf252495 add syncReplicateTest.cpp 2022-04-21 15:24:50 +08:00
Minghao Li a6b949831a delete syncElectTest 1-3, add syncReplicateTest.cpp 2022-04-21 14:56:41 +08:00
Minghao Li 52b6a9c058 add syncElectTest, config replicaNum myIndex 2022-04-21 13:59:42 +08:00
Minghao Li 0df5100836 add syncLogStoreCheck.cpp 2022-04-21 11:25:17 +08:00
Minghao Li a6ee17fd43 add syncElectTest1.cpp 2022-04-20 20:26:10 +08:00
Minghao Li a1a498a19a sync integration add error code 2022-04-20 16:56:00 +08:00
Minghao Li 9cb2192a87 add SyncApplyMsg and test 2022-04-20 14:30:34 +08:00
Minghao Li 9a7924049f sync integration 2022-04-19 15:43:24 +08:00
Minghao Li 01008939f2 sync snapshot 2022-04-19 11:51:51 +08:00
Minghao Li 7066274cc7 add sync format code 2022-04-18 21:50:56 +08:00
afwerar 2662a3b69d [TD-13254]<fix>: make 3.0 grant. 2022-04-10 19:08:16 +08:00
afwerar 222db126bc [TD-13758]<fix>: redefine memory api. 2022-03-26 00:29:53 +08:00
Minghao Li b3ec7c8261 sync refactor 2022-03-24 17:30:50 +08:00
Minghao Li e58812aab5 sync refactor 2022-03-24 11:40:36 +08:00
Minghao Li b05706f9cf sync refactor 2022-03-23 18:53:58 +08:00
Minghao Li d5188f14f9 sync refactor 2022-03-23 17:56:32 +08:00
Minghao Li 996886e726 sync refactor 2022-03-23 17:08:07 +08:00
Minghao Li f7432337fd sync refactor 2022-03-22 16:43:30 +08:00
Minghao Li 559f570ea0 sync refactor 2022-03-22 14:43:58 +08:00
Minghao Li 0c9e64f0d2 sync refactor 2022-03-22 13:18:29 +08:00
Minghao Li c5c00d5955 sync refactor 2022-03-22 10:42:02 +08:00
Minghao Li 3139aaef05 sync refactor 2022-03-21 20:06:57 +08:00
Minghao Li 48aace92c5 sync refactor 2022-03-21 19:26:48 +08:00
Minghao Li 3a053453c6 sync refactor 2022-03-21 17:07:00 +08:00
Minghao Li b8a13daf9f sync refactor 2022-03-21 16:56:37 +08:00
Minghao Li 7129645023 sync refactor 2022-03-21 16:28:50 +08:00
Minghao Li 82144e35f0 sync refactor 2022-03-21 16:00:57 +08:00
Minghao Li aea4e0f472 sync refactor 2022-03-18 19:09:22 +08:00
Minghao Li 3ce39eec1c sync refactor 2022-03-18 18:42:49 +08:00
Minghao Li 736dfaf064 sync refactor 2022-03-18 17:46:40 +08:00
Minghao Li 6a7f5c5fd2 sync refactor 2022-03-18 11:29:03 +08:00
Minghao Li 11c8ac91da sync refactor 2022-03-17 18:55:26 +08:00
Minghao Li 9db8804581 sync refactor 2022-03-17 15:53:28 +08:00
Minghao Li bc60b00d75 sync refactor 2022-03-16 21:22:56 +08:00
Minghao Li 5ab55c6554 sync refactor 2022-03-16 21:21:48 +08:00
Minghao Li fda9803c17 sync refactor 2022-03-16 20:03:22 +08:00
Minghao Li f7cd75544c sync raft store 2022-03-16 15:09:56 +08:00
Minghao Li 6fcbca5b39 sync ping 2022-03-16 11:45:12 +08:00
Minghao Li b5b1417a8b sync append entries (sync-io) 2022-03-16 10:54:06 +08:00
Minghao Li f924c1b879 sync index 2022-03-14 20:43:35 +08:00
Minghao Li 1a78917767 sync index 2022-03-14 14:05:40 +08:00
Minghao Li 51ceed983f sync io test 2022-03-13 16:36:32 +08:00
Minghao Li 1336e08ad0 sync io 2022-03-13 16:27:14 +08:00
Minghao Li 81be154e0d sync refactor 2022-03-12 17:02:15 +08:00
Minghao Li be532bd5eb sync refactor 2022-03-12 12:29:44 +08:00
Minghao Li f1624582cc sync refactor 2022-03-11 19:56:17 +08:00
Minghao Li 317f7669d7 sync refactor 2022-03-11 19:52:59 +08:00
Minghao Li 690dabd617 sync refactor 2022-03-11 19:11:38 +08:00
Minghao Li 78b5da0e0f sync refactor 2022-03-11 17:08:27 +08:00
Minghao Li 7469d62fd7 sync refactor 2022-03-11 15:05:10 +08:00
Minghao Li a0a62227c8 sync refactor 2022-03-11 11:47:56 +08:00
Minghao Li 6a3869a3bc sync refactor 2022-03-11 10:50:50 +08:00
Minghao Li 88aef2d1ab sync refactor 2022-03-10 19:21:02 +08:00
Minghao Li 901b5976cc Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/3.0_mhli 2022-03-10 16:18:32 +08:00
Minghao Li 889d1339e5 sync refactor 2022-03-10 16:18:16 +08:00
Minghao Li ebeb4bb7a6 sync refactor 2022-03-10 14:34:02 +08:00
afwerar 651b3971c0 [TD-13766]<fix>: redefine sleep api. 2022-03-10 11:56:11 +08:00
Minghao Li a51e576126 sync refactor 2022-03-10 11:21:04 +08:00
Minghao Li 41516e024a sync refactor 2022-03-09 18:33:41 +08:00
Minghao Li fa7f441f42 sync refactor 2022-03-09 15:07:43 +08:00
Minghao Li 0c8f62f701 sync refactor 2022-03-09 14:51:02 +08:00
Minghao Li 2fcc970d79 sync refactor 2022-03-09 11:27:22 +08:00
Minghao Li d3b1d5d8f1 sync refactor 2022-03-09 10:58:22 +08:00
Minghao Li 3b4149ba32 sync refactor 2022-03-09 10:15:40 +08:00
Minghao Li d958655dd3 sync refactor 2022-03-08 20:22:31 +08:00
Minghao Li 2ae6f747f9 sync refactor 2022-03-08 17:07:29 +08:00
Minghao Li 54c260738f sync refactor 2022-03-08 14:45:03 +08:00
Minghao Li f556d98159 sync refactor 2022-03-08 13:55:13 +08:00
Minghao Li c9c48e870d sync refactor 2022-03-08 13:43:54 +08:00
Minghao Li b59028365a sync refactor 2022-03-07 14:18:46 +08:00
Minghao Li 5696c85aa8 sync refactor 2022-03-06 18:58:20 +08:00
Minghao Li 97a71fd81e sync refactor 2022-03-06 17:59:24 +08:00
Minghao Li 29fab2e30a Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/3.0_mhli 2022-03-05 15:06:59 +08:00
Minghao Li b75da82c96 sync timeout 2022-03-05 12:28:34 +08:00
Minghao Li 98b3530699 sync timeout 2022-03-04 16:54:25 +08:00
Minghao Li 8d789bba31 sync enq 2022-03-04 15:48:09 +08:00
afwerar 35b3edaea5 [TD-13756]<fix>: file system stat access func. 2022-03-04 00:04:57 +08:00