Commit graph

71 commits

Author SHA1 Message Date
Shengliang Guan
a1c8db0f88 refact: adjust sync log 2022-11-07 17:35:24 +08:00
Minghao Li
ddb815ac42 refactor(sync): optimize advance commit index when one replica 2022-11-05 10:54:59 +08:00
Minghao Li
eb7b9d3819 fix(sync): fix coverity scan issues 2022-10-25 14:28:34 +08:00
Shengliang Guan
2d3f5274b7 fix: compile error in mac 2022-10-22 08:39:58 +08:00
Minghao Li
b492082ac2 refacotr(sync): delete DynamicQuorum 2022-10-21 15:31:55 +08:00
Minghao Li
5965629b2e refactor(sync): refacotr sync 2022-10-20 16:05:14 +08:00
Benguang Zhao
3b0968d7f9 enh: enable the -Wformat=2 compiler option 2022-10-19 09:24:15 +08:00
Minghao Li
e85954276f refactor(sync): rename functions 2022-10-18 16:16:53 +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
Benguang Zhao
63b13db10f fix: eliminate asserts on getting and committing log entries 2022-10-14 22:57:27 +08:00
Benguang Zhao
715f53a856 fix: eliminate asserts on errors of appending or getting log entry 2022-10-14 22:46:35 +08:00
Minglei Jin
8bc6a6297f enh(sync): log entry cache for sync 2022-09-20 19:57:02 +08:00
Minghao Li
8a32c0c189 refactor(sync): adjust strategy for dynamic quorum 2022-08-18 14:55:57 +08:00
Minghao Li
2ca5bdc708 refactor(sync): add syncNodeDynamicQuorum 2022-08-17 15:39:38 +08:00
Minghao Li
f8b0c98a71 refactor(sync): make leader life longer 2022-08-06 20:44:14 +08:00
Minghao Li
7d50c26207 refactor(sync): make leader life longer 2022-08-05 20:51:29 +08:00
Shengliang Guan
56f2e49764 refactor: adjust logs 2022-08-02 17:12:07 +08:00
Minghao Li
0addf09996 refactor(sync): add pre-commit interface 2022-07-26 11:24:39 +08:00
Minghao Li
2dd7abd47e refactor(sync): add vnode snapshot case 2022-07-11 10:34:02 +08:00
Shengliang Guan
e4a855e591 Merge remote-tracking branch 'origin/3.0' into fix/valgrind 2022-07-08 19:54:26 +08:00
Shengliang Guan
a5e8ddbc56 refactor: adjust logs 2022-07-08 18:00:19 +08:00
Minghao Li
56e65d13d1 refactor(sync): add fake syncRestoreFromSnapshot 2022-07-08 17:37:25 +08:00
Minghao Li
a6f33ba01c refactor(sync): optimized one replica 2022-06-25 20:31:42 +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
43f8f34b0f refactor: adjust logs 2022-06-17 14:24:17 +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
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
2547e8d02e refactor: sync index 2022-06-08 11:03:28 +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
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
b9e4543a40 enh(sync): add SyncSnapshotRsp SyncSnapshotSend 2022-05-30 21:21:51 +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