Commit Graph

435 Commits

Author SHA1 Message Date
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 326714a077 fix(sync): snapshot maybe change when sending 2022-06-07 14:35:20 +08:00
Minghao Li a89e455267 fix(sync): delete some assert temporary 2022-06-07 09:55:18 +08:00
Minghao Li 6b329f791b enh(sync): update raft core functions 2022-06-06 16:35:44 +08:00
Minghao Li af27303a4c enh(sync): update raft core functions 2022-06-06 16:02:25 +08:00
Minghao Li 5009b7822f enh(sync): add log index manager 2022-06-06 11:24:25 +08:00
Minghao Li 5908631ec3 enh(sync): add log store2 2022-06-05 19:47:54 +08:00
Minghao Li eea343c5a6 enh(sync): add syncTestTool 2022-06-04 11:25:03 +08:00
Minghao Li 44994201b6 fix(sync): sending snapshot 2022-06-02 19:47:06 +08:00
Minghao Li d04c12713a fix: send snapshot 2022-06-02 11:36:26 +08:00
Minghao Li 757a1248dc fix: send snapshot 2022-06-01 21:23:39 +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 71c57d7769 refactor: sender code 2022-06-01 11:28:33 +08:00
Minghao Li 9988e85f85 add test sender, receiver 2022-05-31 21:31:07 +08:00
Minghao Li 21191ae2a8 enh(sync): add SSyncSnapshotReceiver 2022-05-31 16:48:47 +08:00
Minghao Li 6d8733a232 enh(sync): add SSyncSnapshotSender 2022-05-31 16:14:19 +08:00
Minghao Li b9e4543a40 enh(sync): add SyncSnapshotRsp SyncSnapshotSend 2022-05-30 21:21:51 +08:00
Minghao Li 6be4119fe7 add syncNodeIsIndexInSnapshot syncNodeGetLastIndexTerm syncNodeGetPreIndexTerm 2022-05-30 18:45:09 +08:00
Minghao Li 79ae770a0b enh(sync): add snapshotEnable2 2022-05-30 17:31:55 +08:00
Minghao Li 43c383dcbc enh(sync): add snapshotEnable2 2022-05-30 17:19:31 +08:00
Minghao Li d6c57bd372 enh(sync): add snapshotEnable2 2022-05-30 13:14:48 +08:00
Minghao Li bdc9acbf2e enh(sync): add snapshotEnable 2022-05-30 12:26:15 +08:00
Minghao Li cd2e8fe730 enh(sync): add SSnapshot callback: reader, writer 2022-05-29 07:15:29 +08:00
Minghao Li b10f8e4aa2 fix(sync) raftCfgPersist 2022-05-27 21:32:28 +08:00
Minghao Li 3a1be0c58a refactor: make logStore static 2022-05-27 18:00:09 +08:00
Minghao Li 5a754023f5 refactor: make logStore static 2022-05-27 16:36:44 +08:00
Minghao Li 5471792549 refactor: make logStoreGetLastEntry static 2022-05-27 16:13:02 +08:00
Minghao Li b7be03898c enh(sync) snapshot sender, receiver 2022-05-27 15:35:26 +08:00
Minghao Li 8141c430bc enh(sync) snapshot sender, receiver 2022-05-27 15:09:17 +08:00
Minghao Li 4e1aa6b5c5 refactor: config change 2022-05-26 14:21:24 +08:00
Minghao Li 8c5f6b6849 fix(sync): persist isStandby 2022-05-25 18:32:34 +08:00
Minghao Li cb20717ce6 refactor: votesRespondUpdate 2022-05-24 20:23:11 +08:00
Minghao Li aa1de8b34a enh(sync): add FpSnapshotRead FpSnapshotApply 2022-05-24 14:46:22 +08:00
Minghao Li 1d7bdbc351 fix(sync) sync/mnode integration dead lock 2022-05-23 21:37:13 +08:00
Minghao Li 4535722957 enh(sync) sync/mnode integration, syncStart async -> sync 2022-05-23 15:41:04 +08:00
Shengliang Guan 0f9cd43027 refactor: adjust sync header file 2022-05-20 10:30:30 +08:00
Shengliang Guan 0161b6456c refactor: adjust msgcb 2022-05-19 19:44:01 +08:00
Minghao Li 956ab45a30 enh(sync): raft config change 2022-05-16 14:10:18 +08:00
Minghao Li a2d43fb96f enh(sync): add syncStartStandBy 2022-05-14 18:12:53 +08:00
Minghao Li f97adf54d3 enh(sync): add syncStartStandBy 2022-05-13 12:12:37 +08:00
Minghao Li b69a26678c enh(sync): raft config change 2022-05-12 15:23:41 +08:00
Li Minghao c5602fbaba add flag in syncEnv, to deal with expired timer 2022-04-25 22:54:04 -07:00
Minghao Li 9a7924049f sync integration 2022-04-19 15:43:24 +08:00
Minghao Li 7066274cc7 add sync format code 2022-04-18 21:50:56 +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 996886e726 sync refactor 2022-03-23 17:08:07 +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 0f176a3afc Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/3.0_mhli 2022-03-21 16:51:15 +08:00
Minghao Li 7129645023 sync refactor 2022-03-21 16:28:50 +08:00
afwerar 79057240bd [TD-13759]<fix>: redefine thread api. 2022-03-20 00:47:45 +08:00
Minghao Li 5de67d4256 sync refactor 2022-03-18 15:21:40 +08:00
Minghao Li ef61d3ee94 sync refactor 2022-03-18 11:47:46 +08:00
Minghao Li 6a7f5c5fd2 sync refactor 2022-03-18 11:29:03 +08:00
Minghao Li 9db8804581 sync refactor 2022-03-17 15:53:28 +08:00
Minghao Li 90478b8742 sync refactor 2022-03-16 15:24:11 +08:00
Minghao Li f7cd75544c sync raft store 2022-03-16 15:09:56 +08:00
Minghao Li b5b1417a8b sync append entries (sync-io) 2022-03-16 10:54:06 +08:00
Minghao Li a69330b68d sync append entries (sync-io) 2022-03-15 14:07:45 +08:00
Minghao Li 09e2f36ddd sync append entries 2022-03-15 14:04:16 +08:00
Minghao Li 17e6071033 sync index 2022-03-15 10:47:11 +08:00
Minghao Li f924c1b879 sync index 2022-03-14 20:43:35 +08:00
Minghao Li 7c868aea85 sync index 2022-03-14 18:44:53 +08:00
Minghao Li 8ae9fb6ae1 sync index 2022-03-14 18:22:39 +08:00
Minghao Li 7d897369d5 sync index 2022-03-14 16:27:25 +08:00
Minghao Li 1a78917767 sync index 2022-03-14 14:05:40 +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 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 73d768d273 sync refactor 2022-03-10 16:54:26 +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
Minghao Li a51e576126 sync refactor 2022-03-10 11:21:04 +08:00
Minghao Li 30be9d3e31 sync refactor 2022-03-09 20:04:39 +08:00
Minghao Li d083c79744 sync refactor 2022-03-09 19:13:09 +08:00
Minghao Li 3dfb9bb022 sync refactor 2022-03-09 18:56:39 +08:00
Minghao Li 41516e024a sync refactor 2022-03-09 18:33:41 +08:00
Minghao Li d87411116b sync refactor 2022-03-09 16:34:34 +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 ffe442301c sync refactor 2022-03-08 14:19:50 +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 264c30e5db sync refactor 2022-03-08 10:52:18 +08:00
Minghao Li cf0857e113 sync refactor 2022-03-07 16:59:16 +08:00
Minghao Li b8aa420e3a sync refactor 2022-03-07 16:46:17 +08:00
Minghao Li 586f9035f0 sync refactor 2022-03-07 16:29:21 +08:00
Minghao Li fa8284af73 sync refactor 2022-03-07 16:17:41 +08:00
Minghao Li 25af19bd24 sync refactor 2022-03-07 16:06:07 +08:00
Minghao Li a0319ae49b sync refactor 2022-03-07 14:42:04 +08:00
Minghao Li b59028365a sync refactor 2022-03-07 14:18:46 +08:00
Minghao Li 97a71fd81e sync refactor 2022-03-06 17:59:24 +08:00
Minghao Li 551d7cfa6d sync refactor 2022-03-06 12:25:12 +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 b7e22154b2 sync timeout 2022-03-05 15:03:49 +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
Shengliang Guan 1d9119df87 record num of logs for monitoring 2022-03-04 14:34:35 +08:00
Minghao Li 64d224a0d2 syncInt 2022-03-03 17:28:00 +08:00
Minghao Li aeb94af5e0 sync encode/decode 2022-03-03 16:15:18 +08:00
Minghao Li f263a623dd sync encode/decode 2022-03-03 14:52:30 +08:00
Minghao Li a78d7028ef new fileIO 2022-03-03 10:46:48 +08:00
Minghao Li fe1f280ce4 sync modify timer 2022-03-02 20:43:03 +08:00
Minghao Li 08df4b42de sync modify timer 2022-03-02 20:08:46 +08:00
Minghao Li 6d6e7bdf3d sync modify timer 2022-03-02 18:30:21 +08:00
Minghao Li 3e591a022c sync io 2022-03-02 15:20:49 +08:00
Minghao Li 5a4fbcf262 sync io 2022-03-02 15:11:54 +08:00
Minghao Li ee43a70c4d sync modify timer 2022-03-02 10:43:59 +08:00
Minghao Li aaf5e20fdc sync encode test 2022-03-01 20:29:49 +08:00
Minghao Li 12c202aa31 sync encode test 2022-03-01 18:35:07 +08:00
Minghao Li 12050c9a2a sync encode test 2022-03-01 16:42:37 +08:00
Minghao Li 48bed2020c sync encode test 2022-03-01 16:19:42 +08:00
Minghao Li d57320031f sync ping 2022-03-01 15:16:44 +08:00
Minghao Li eaf6142c79 sync modify timer 2022-02-28 17:47:47 +08:00
Minghao Li c9efe3dea7 sync modify timer 2022-02-28 16:36:57 +08:00
Minghao Li 02f0f85aab sync modify timer 2022-02-28 14:10:34 +08:00
Minghao Li b6803ae9cc comment log code 2022-02-27 14:27:06 +08:00
Minghao Li 4afcb4387c add sync io 2022-02-27 10:22:15 +08:00
Minghao Li b55cf2bc7e add sync code 2022-02-27 02:24:50 +08:00
Minghao Li dbe28cd4ff add sync code 2022-02-27 00:02:18 +08:00
Minghao Li e8780cebed add sync code 2022-02-26 18:30:58 +08:00
Minghao Li b63995287d add raft store 2022-02-25 17:55:20 +08:00
Minghao Li 296d9abe2a add sync code 2022-02-25 15:34:24 +08:00
Minghao Li 113618bea3 add sync test 2022-02-25 14:38:12 +08:00
Minghao Li 51adf7e25e add raft store 2022-02-24 21:03:25 +08:00
Minghao Li c67a14ad8f add raft store 2022-02-24 20:22:55 +08:00
Minghao Li 700287508a add sync store 2022-02-23 20:14:37 +08:00
Minghao Li 7a47508c0e add sync io 2022-02-23 16:58:47 +08:00
Minghao Li 0e0af1de05 add sync code 2022-02-23 15:17:49 +08:00
Minghao Li 3d9d5240a5 add sync code 2022-02-23 09:54:44 +08:00
Minghao Li be375fa143 add sync code 2022-02-22 11:28:15 +08:00
Minghao Li ec70e160ef rm old sync code 2022-02-09 14:13:06 +08:00
yihaoDeng 92bef71ec7 rename MAX/MIN/POW2/SWAP name 2022-01-24 12:53:17 +08:00
lichuang b0c147f057 [TD-10645][raft]<feature>add vote resp process 2021-11-22 10:04:47 +08:00
lichuang 68e6b82a66 [TD-10645][raft]<feature>add vote resp process 2021-11-19 11:31:54 +08:00
lichuang ce654f835a [TD-10645][raft]<feature>refactor node and progress map 2021-11-19 10:18:56 +08:00
lichuang 7e2590f108 [TD-10645][raft]<feature>refactor node and progress map 2021-11-18 17:19:33 +08:00
lichuang 98a6b1918c [TD-10645][raft]<feature>refactor node and progress map 2021-11-17 15:50:57 +08:00
lichuang da029f32a7 [TD-10645][raft]<feature>refactor node and progress map 2021-11-17 12:06:06 +08:00
lichuang df2530f969 [TD-10645][raft]<feature>refactor node and progress map 2021-11-17 11:04:38 +08:00
lichuang 1d874657f7 [TD-10645][raft]<feature>add node map 2021-11-17 09:12:54 +08:00
lichuang 0c65b84886 [TD-10645][raft]<feature>add node map 2021-11-17 08:29:24 +08:00
lichuang a936a7a584 [TD-10645][raft]<feature>add node map 2021-11-16 15:41:08 +08:00
lichuang ffed86366f [TD-10645][raft]<feature>fix compile error 2021-11-16 13:50:28 +08:00
lichuang 8ab1eb642e [TD-10645][raft]<feature>refactor sync interface 2021-11-16 11:42:34 +08:00
lichuang 2521994923 [TD-10645][raft]<feature>refactor sync interface 2021-11-15 11:58:12 +08:00
lichuang 83a40a7f5a [TD-10645][raft]<feature>refactor sync interface 2021-11-15 11:11:06 +08:00
lichuang aa438e7a53 [TD-10645][raft]<feature>add restore process 2021-11-15 10:56:22 +08:00
lichuang 24b599f14b [TD-10645][raft]<feature>add restore process 2021-11-12 18:09:09 +08:00
lichuang fb01dd5628 [TD-10645][raft]<feature>add restore process 2021-11-12 16:00:33 +08:00
lichuang 6d3efd1b1a [TD-10645][raft]<feature>refactor sync typedef 2021-11-12 10:20:03 +08:00
lichuang f10a91ff03 [TD-10645][raft]<feature>refactor sync interface 2021-11-09 15:30:07 +08:00
lichuang de3164f16f [TD-10645][raft]<feature>add raft progress tracker 2021-11-09 14:58:10 +08:00
lichuang e17f573e0e [TD-10645][raft]<feature>add raft progress tracker 2021-11-09 10:53:08 +08:00
lichuang ccf8f14fdb [TD-10645][raft]<feature>add raft progress tracker 2021-11-08 15:58:19 +08:00
lichuang 4022f360a7 [TD-10645][raft]<feature>add raft append message handle 2021-11-05 16:35:07 +08:00
lichuang aee5ebd1ce [TD-10645][raft]<feature>add raft append message handle 2021-11-05 15:03:56 +08:00
lichuang da106e29b2 [TD-10645][raft]<feature>add raft vote message handle 2021-11-04 15:51:30 +08:00
lichuang c25d174fc2 [TD-10645][raft]<feature>add raft vote resp message handle 2021-11-04 14:56:21 +08:00
lichuang e05e6dba9a [TD-10645][raft]<feature>add raft election message handle 2021-11-04 12:39:45 +08:00
lichuang aab981f667 [TD-10645][raft]<feature>add raft election message handle 2021-11-03 15:30:54 +08:00
lichuang 349a6a4771 [TD-10645][raft]<feature>add raft message handle 2021-11-03 11:47:44 +08:00
lichuang 24a0966da6 [TD-10645][raft]<feature>add raft progress 2021-11-02 15:50:27 +08:00
lichuang fca35ceb29 [TD-10645][raft]<feature>add sync rpc client and server 2021-11-02 10:49:23 +08:00
lichuang 5b7261d63f [TD-10645][raft]<feature>add sync node timer 2021-10-29 17:09:25 +08:00
lichuang c319d1cb12 [TD-10645][raft]<feature>add raft module 2021-10-29 16:05:25 +08:00
lichuang 2dc480adf6 [TD-10645][raft]<feature>sync manager 2021-10-29 14:31:21 +08:00
lichuang 048329e95e [feeature][raft]refactor raft interface to sync 2021-10-25 09:29:37 +08:00