Commit Graph

165 Commits

Author SHA1 Message Date
Shengliang Guan 2d3f5274b7 fix: compile error in mac 2022-10-22 08:39:58 +08:00
Minghao Li 8bdec5f2f2 refactor(sync): delete standby 2022-10-21 11:53:14 +08:00
Minghao Li 357951e947 refactor(sync): modify some code 2022-10-19 16:08:42 +08:00
Minghao Li 1b36ad119c refactor(sync): rename functions 2022-10-18 15:24:00 +08:00
Minghao Li e810f2ad64 refactor(sync): delete old code, ok 2022-10-18 13:53:03 +08:00
Minghao Li 092a07475d refactor(sync): process hb and appendentries 2022-10-17 16:38:44 +08:00
Minghao Li fa30b94c67 refactor(sync): append entries 2022-10-16 12:07:02 +08:00
Minghao Li 4d123c4da6 refactor(sync): add interface in sync 2022-10-14 11:18:48 +08:00
Minghao Li 2ca5bdc708 refactor(sync): add syncNodeDynamicQuorum 2022-08-17 15:39:38 +08:00
Minghao Li 2f1bf1eba9 refactor(sync): make leader life longer 2022-08-06 21:41:03 +08:00
Minghao Li f83ca89ea2 refactor(sync): make leader life longer 2022-08-06 19:40:10 +08:00
Minghao Li 27d72283bc refactor(sync): make leader life longer 2022-08-05 16:45:21 +08:00
Minghao Li 998e24474c refactor(sync): change wal fsync flag to false 2022-08-03 19:15:07 +08:00
Minghao Li 2885767a93 refactor(sync): delete speed up2 2022-07-30 11:14:45 +08:00
Minghao Li 43e2f8bc2b refactor(sync): add pre-commit interface 2022-07-26 10:59:56 +08:00
Minghao Li ac51192084 refactor(sync): add trace log 2022-07-21 13:54:24 +08:00
Minghao Li 7808fdfccb refactor(sync): add trace log 2022-07-20 17:19:42 +08:00
Minghao Li c2b348bec5 refactor(sync): add trace log 2022-07-20 15:34:09 +08:00
Minghao Li 6f29fd4020 fix(sync): snapshot begin index 2022-07-16 15:34:22 +08:00
Minghao Li 681993884f refactor(sync): add leader transfer callback 2022-07-15 14:55:33 +08:00
Shengliang Guan a5e8ddbc56 refactor: adjust logs 2022-07-08 18:00:19 +08:00
Minghao Li 1ee5468411 fix(sync): append entries batch 2022-07-08 14:47:00 +08:00
Minghao Li 1c3c270307 fix(sync): snapshot strategy wal first 2022-07-07 17:00:01 +08:00
Minghao Li 83b639ae8f refactor(sync): persist batch size 2022-07-06 14:58:38 +08:00
Minghao Li 856806bb22 refactor(sync): add snapshot2 interface 2022-07-04 13:33:49 +08:00
Minghao Li 086ec29ca0 refactor(sync): add SyncClientRequestBatch 2022-07-02 14:41:54 +08:00
Minghao Li d4ab134645 refactor(sync): add snapshot2 interface 2022-07-01 17:30:52 +08:00
Minghao Li 4f39cd31b0 refactor(sync): add snapshot2 interface 2022-07-01 09:50:20 +08:00
Minghao Li 41f24314d0 refactor(sync): add SYNC_TERM_INVALID 2022-06-29 15:44:30 +08:00
Minghao Li 0df1415caf refactor(sync): add trace log 2022-06-25 11:30:34 +08:00
Minghao Li 3d9ffc42e8 refactor(sync): refactor wal abstraction 2022-06-23 21:16:16 +08:00
Minghao Li f140a5ad1b refactor(sync): add trace log 2022-06-23 16:57:18 +08:00
Minghao Li 4fdc62a27f refactor(sync): delete fake match branch 2022-06-23 16:32:06 +08:00
Minghao Li ca4d7329ce refactor(sync): modify wal error log 2022-06-23 14:07:18 +08:00
Minghao Li 9786ba2fbe fix(sync): update nextindex, matchindex when backto nolog 2022-06-23 10:10:57 +08:00
Minghao Li ecc43b6697 refactor(sync): delete some assert 2022-06-21 16:02:36 +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
Shengliang Guan ab2f268601 Merge branch 'fix/tsim' into fix/dnode 2022-06-17 14:53:04 +08:00
Shengliang Guan 43f8f34b0f refactor: adjust logs 2022-06-17 14:24:17 +08:00
Minghao Li 9ab28e0b88 refactor(sync): add last config index in fsm cbMeta 2022-06-17 14:05:52 +08:00
Minghao Li d71027ac35 fix(sync): fake match2, need truncate log 2022-06-16 20:43:49 +08:00
Minghao Li b42c963a5f fix(sync): fake match when prevLogIndex less than commitIndex 2022-06-16 20:08:27 +08:00
Minghao Li d3f6f07902 fix(sync): fake match when prevLogIndex less than commitIndex 2022-06-16 19:40:08 +08:00
Minghao Li 3fdd0c30ac refactor(sync): add trace log 2022-06-16 19:08:44 +08:00
Minghao Li 15ac89590c refactor(sync): add trace log 2022-06-16 17:41:01 +08:00
Minghao Li 9a9200d28b refactor(sync): add restore finish when become leader again 2022-06-16 15:38:40 +08:00
Minghao Li aad288ab17 refactor(sync): add debug log 2022-06-12 15:21:56 +08:00
Minghao Li 6a4cdadef6 refactor(sync): add debug log 2022-06-11 21:56:44 +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 736862541e fix(sync): restart with config change 2022-06-10 15:19:11 +08:00
Minghao Li d81f5e9f77 fix(sync): add detail log flag 2022-06-09 11:18:48 +08:00
Minghao Li e86ee68f8b refactor(sync): sync snapshot 2022-06-08 22:43:58 +08:00
Minghao Li 98a2451c15 refactor(sync): sync snapshot 2022-06-08 21:55:36 +08:00
Minghao Li d72d2d698c refactor(sync): SyncAppendEntries 2022-06-08 17:44:32 +08:00
Minghao Li 687caac2bf refactor(sync): add raft log test 2022-06-08 16:45:40 +08:00
Minghao Li 2547e8d02e refactor: sync index 2022-06-08 11:03:28 +08:00
Minghao Li eba8f2b543 fix(sync) send snapshot multi-times 2022-06-07 19:20:05 +08:00
Minghao Li 0e41ab7f99 Merge branch 'feature/sync-refactor' of https://github.com/taosdata/TDengine into feature/sync-refactor 2022-06-07 18:34:07 +08:00
Minghao Li 31b54e7462 enh(sync): add privateTerm into SyncSnapshotRsp, SyncSnapshotSend, SSyncSnapshotReceiver 2022-06-07 18:33:06 +08:00
Shengliang Guan a047d4a559 Merge remote-tracking branch 'origin/feature/sync-refactor' into fix/mnode 2022-06-07 16:37:50 +08:00
Minghao Li 8680da282a fix(sync): snapshot maybe change when sending 2022-06-07 15:36:41 +08:00
Minghao Li 2071c5a74e fix(sync): sending snapshot 2022-06-06 20:02:27 +08:00
Minghao Li 84a67e850e fix(sync): sending snapshot 2022-06-06 17:23:59 +08:00
Minghao Li af27303a4c enh(sync): update raft core functions 2022-06-06 16:02:25 +08:00
Shengliang Guan 30da7560f8 Merge remote-tracking branch 'origin/3.0' into fix/mnode 2022-06-04 11:50:47 +08:00
Minghao Li 44994201b6 fix(sync): sending snapshot 2022-06-02 19:47:06 +08:00
Minghao Li ac90f61b63 fix(sync): wal write from middle 2022-06-02 13:53:19 +08:00
Minghao Li d04c12713a fix: send snapshot 2022-06-02 11:36:26 +08:00
Minghao Li ae06cc3696 refactor: after review raft 6 cb 2022-06-01 19:11:31 +08:00
Minghao Li 057fda21ce enh(sync): syncNodeOnAppendEntriesSnapshotCb 2022-05-31 19:46:49 +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 b9e4543a40 enh(sync): add SyncSnapshotRsp SyncSnapshotSend 2022-05-30 21:21:51 +08:00
Minghao Li d6c57bd372 enh(sync): add snapshotEnable2 2022-05-30 13:14:48 +08:00
Cary Xu f2b4cca23d fix: init buffer to avoid invalid write 2022-05-29 01:10:32 +08:00
Minghao Li d45221c863 enh(sync) logStoreGetEntry -> pLogStore->getEntry 2022-05-27 15:41:19 +08:00
Minghao Li b7be03898c enh(sync) snapshot sender, receiver 2022-05-27 15:35:26 +08:00
Minghao Li 1a22de765c fix(sync) add multi mnodes 2022-05-26 18:03:38 +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 104a207579 FpReConfigCb 2022-05-25 14:43:45 +08:00
Minghao Li aa85781560 enh(sync): add mndSnapshotRead mndSnapshotApply 2022-05-24 15:28:12 +08:00
Minghao Li 1d7bdbc351 fix(sync) sync/mnode integration dead lock 2022-05-23 21:37:13 +08:00
Minghao Li 102a08f44b enh(sync) sync/mnode integration, add log 2022-05-23 20:26:12 +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
Minghao Li 97b1e95ad8 enh(sync) sync/mnode integration, add term, currentTerm in cbMeta 2022-05-23 12:14:53 +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 b69a26678c enh(sync): raft config change 2022-05-12 15:23:41 +08:00
Minghao Li 7066274cc7 add sync format code 2022-04-18 21:50:56 +08:00
Minghao Li 16b44c9e28 sync refactor 2022-03-25 10:37:26 +08:00
Minghao Li e58812aab5 sync refactor 2022-03-24 11:40:36 +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 944bb33156 sync refactor 2022-03-22 15:29:32 +08:00