Commit Graph

200 Commits

Author SHA1 Message Date
Shengliang Guan d35028ae4a enh: refact sync callback func 2022-11-01 16:10:07 +08:00
Shengliang Guan f4dc7d0766 enh: refact sync callback func 2022-11-01 15:35:10 +08:00
Minghao Li d246514da2 refactor(sync): check msgcb, putToQueueFp NULL 2022-10-31 18:16:58 +08:00
Shengliang Guan ec786b9d78 fix: alter replica one by one 2022-10-24 11:57:26 +08:00
Shengliang Guan c6bbd18924 fix: not post sem if transId is 0 2022-10-21 15:33:06 +08:00
Shengliang Guan 9e0feee081 enh: sync propose return at once if replica is 1 2022-10-18 17:06:03 +08:00
Shengliang Guan 78fb1911d4 enh: refactor the code to create and delete mnodes 2022-10-14 17:59:09 +08:00
Hongze Cheng 6ed0634fb7 format more code 2022-10-13 11:56:16 +08:00
Shengliang Guan e94646ca70 fix: coverity issues 2022-09-29 19:41:54 +08:00
Shengliang Guan 3810b5d4fa fix: add more info log for mnode 2022-09-23 15:42:36 +08:00
Shengliang Guan a1b295b1ba refactor: change mnode log level 2022-08-25 22:33:27 +08:00
Shengliang Guan b0263a4bea enh: increase startup time monitoring 2022-08-23 17:29:31 +08:00
Shengliang Guan d50f36ba97
Merge pull request #16061 from taosdata/fix/mnode
fix: deadlock of mnode if its state changed
2022-08-12 20:29:36 +08:00
Shengliang Guan 65fa1e0164 fix: deadlock of mnode if its state changed 2022-08-12 19:20:31 +08:00
Shengliang Guan 2c28cdcbb5 fix: deadlock of mnode if its state changed 2022-08-12 18:49:41 +08:00
Minghao Li e50f09aa4c refactor(sync): update mnode elect timer 2022-08-12 18:38:14 +08:00
Minghao Li 7530a7e2e3 refactor(sync): update mnode elect timer 2022-08-12 18:37:08 +08:00
Shengliang Guan 1d9331e257 fix: deadlock of mnode if its state changed 2022-08-12 16:32:03 +08:00
Shengliang Guan c47e387d13 fix: deadlock of mnode if its state changed 2022-08-12 15:57:07 +08:00
Minghao Li b4c8685766 refactor(sync): add leader, follower call back 2022-08-10 17:17:30 +08:00
Shengliang Guan 72b8e0eb20 refactor: adjust logs 2022-08-03 19:17:42 +08:00
Minghao Li 13532f318d Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/3.0_mhli 2022-07-20 11:38:24 +08:00
Minghao Li 31e42a44ca refactor(sync): delete msg handle in mnode commit 2022-07-20 09:50:03 +08:00
Shengliang Guan 390264db3f enh: assert the term of the snapshot as same as the memory 2022-07-19 17:11:15 +08:00
Minghao Li fdf7930702 refactor(sync): add index/term in snapshot write 2022-07-16 18:09:36 +08:00
Li Minghao 5a941284a4
Merge pull request #14965 from taosdata/feature/3.0_mhli
refactor(sync): modify elect/heartbeat timer
2022-07-15 19:03:25 +08:00
Shengliang Guan d02a6090ef fix: the follower of mnode handles transactions incorrectly 2022-07-15 18:08:43 +08:00
Minghao Li 5b6c7bc38d refactor(sync): add leader transfer callback 2022-07-15 14:26:18 +08:00
Shengliang Guan 9af7cb1a45 fix: hanlde the error if propose failed 2022-07-13 09:56:27 +08:00
Minghao Li 96f9274fef refactor(sync): add timer routines 2022-07-12 15:04:32 +08:00
Shengliang Guan 6e12d8e707 refactor: adjust log 2022-07-08 15:20:15 +08:00
Minghao Li ded4616074 refactor(sync): add sync strategy 2022-07-04 14:55:26 +08:00
Minghao Li a5d3b7033a refactor(sync): add snapshot writer param 2022-07-04 14:18:06 +08:00
Minghao Li 0ffc6c46f3 refactor(sync): add snapshot2 interface 2022-07-01 14:47:12 +08:00
Minghao Li 7695dbcce7 refactor(sync): adjust election timer 2022-06-24 15:28:01 +08:00
Minghao Li 8a8e42a923 refactor(sync): set error code in syncIsReady 2022-06-24 14:04:58 +08:00
Shengliang Guan f5c0ab8579 feat: drop dnode 2022-06-22 14:55:29 +08:00
Shengliang Guan ab0d7d31bc refactor: get sdb snapshot in atomic way 2022-06-20 18:37:46 +08:00
Shengliang Guan 96434756de refactor: save sdb file on needed 2022-06-20 16:23:04 +08:00
Minghao Li 5968c6353f refactor(sync): get snapshot and create reader 2022-06-20 10:58:59 +08:00
Shengliang Guan db4e02c7c7 fix: add log to debug mnode sync 2022-06-17 15:23:17 +08:00
Shengliang Guan 7e0ad8781b refactor(sync) add raft cfg test 2022-06-17 11:46:19 +08:00
Minghao Li f5db109e61 fix(sync): get last max snapshot index 2022-06-17 11:37:10 +08:00
Shengliang Guan a4a8d38ca2 fix: minor changes 2022-06-17 09:25:27 +08:00
Shengliang Guan fe9f8bfe98 Merge remote-tracking branch 'origin/3.0' into test/chr/TD-14699 2022-06-16 17:39:39 +08:00
Shengliang Guan 26ca03af4f fix: crash while mnode sync 2022-06-16 17:24:42 +08:00
Shengliang Guan 7aa087a48d feat: redistribute vgroup 2022-06-16 15:25:04 +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
Li Minghao 41a285a3f6
Merge pull request #13807 from taosdata/feature/3.0_mhli
refactor(sync): update replica index in snapshot sender
2022-06-14 15:21:09 +08:00
Shengliang Guan a3f1273640 refactor: mnode sync 2022-06-14 10:58:36 +08:00
Minghao Li aad288ab17 refactor(sync): add debug log 2022-06-12 15:21:56 +08:00
Shengliang Guan 33b5efc21f test: execute trans in follower 2022-06-11 14:11:10 +08:00
Shengliang Guan d702cb1486 refactor: adjust mnode log 2022-06-11 12:55:16 +08:00
Minghao Li 972fee7fbc refactor(sync): add rpcMsg to reconfig callback 2022-06-10 17:39:30 +08:00
Shengliang Guan 4da408afe6 enh: call walEndSnapshot while sdb writefile 2022-06-09 17:44:39 +08:00
Shengliang Guan 17f8ccc901 enh: record config index 2022-06-09 14:12:52 +08:00
Shengliang Guan a047d4a559 Merge remote-tracking branch 'origin/feature/sync-refactor' into fix/mnode 2022-06-07 16:37:50 +08:00
Shengliang Guan 24a6b352ef refactor: adjust some logs 2022-06-07 15:11:16 +08:00
Shengliang Guan e5f2b786fb feat: drop dnode 2022-06-07 13:41:41 +08:00
Shengliang Guan a56f149af9 refactor: get last commit index to mnode 2022-06-07 13:01:48 +08:00
Minghao Li 6de1a73d4e Merge branch '3.0' of https://github.com/taosdata/TDengine into feature/3.0_mhli 2022-06-02 13:21:23 +08:00
Shengliang Guan 86f8bf6cb1 refactor: make trans support multi steps 2022-05-31 14:38:15 +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
Shengliang Guan edb7a2c0b2 refactor: mnode snapshot 2022-05-29 13:14:36 +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
Shengliang Guan c4c1ce9b9e enh: save sdb file if there is too many commit 2022-05-28 17:10:29 +08:00
Shengliang Guan 147c7ee0b4 enh: sdb snapshot 2022-05-28 16:41:38 +08:00
Shengliang Guan 576a7ee0a7 enh: sdb snapshot 2022-05-28 15:00:18 +08:00
Shengliang Guan b5a1131c25 enh: sdb snapshot 2022-05-28 12:56:33 +08:00
Shengliang Guan f6c676a174 enh: sdb snapshot 2022-05-28 11:11:48 +08:00
Shengliang Guan dfdaf1cd51 enh: sdb snapshot 2022-05-27 23:00:13 +08:00
Shengliang Guan 335b56ed81 fix: set standby while create mnode 2022-05-27 21:26:04 +08:00
Shengliang Guan 9a1959c400 fix: return mnode epset while master changed 2022-05-27 18:42:15 +08:00
Shengliang Guan c44ec05229 fix: error in sync sem 2022-05-27 15:21:59 +08:00
Shengliang Guan f5e3b409ab refactor: add some log 2022-05-26 16:47:37 +08:00
Shengliang Guan 60b65b9fc9 refactor: log for apply index 2022-05-25 20:45:45 +08:00
Minghao Li e0d3b53be7 Merge branch 'feature/sync-mnode-integration' of https://github.com/taosdata/TDengine into feature/sync-mnode-integration 2022-05-25 18:32:59 +08:00
Minghao Li 8c5f6b6849 fix(sync): persist isStandby 2022-05-25 18:32:34 +08:00
Shengliang Guan 1100ec3fb3 refacor: alter mnode 2022-05-25 17:44:43 +08:00
Shengliang Guan 077ea1b658 Merge branch 'feature/sync-mnode-integration' into fix/mnode 2022-05-25 17:06:35 +08:00
Shengliang Guan b638d0ef8c refactor: let mnode report sync state 2022-05-25 16:41:38 +08:00
Shengliang Guan 9b051104ae Merge branch 'fix/mnode' into feature/sync-mnode-integration 2022-05-25 14:49:58 +08:00
Minghao Li 104a207579 FpReConfigCb 2022-05-25 14:43:45 +08:00
Shengliang Guan bf8bbfbfbb refactor: mnode sync 2022-05-25 10:30:02 +08:00
Shengliang Guan 7f3c60421a refactor: mnode sync 2022-05-24 22:34:48 +08:00
Minghao Li 9fc7536a0b refactor: modify FpSnapshotRead, FpSnapshotApply 2022-05-24 21:03:49 +08:00
Minghao Li 0a5412f33d refactor: modify FpSnapshotRead, FpSnapshotApply 2022-05-24 21:00:14 +08:00
Shengliang Guan e0d6d47930 Merge branch 'feature/sync-mnode-integration' of https://github.com/taosdata/TDengine into feature/sync-mnode-integration 2022-05-24 20:44:45 +08:00
Minghao Li 94438de0ec enh(sync): syncStartStandBy 2022-05-24 19:45:09 +08:00
Shengliang Guan d2d0ae20aa refactor: mnode snapshot 2022-05-24 19:29:23 +08:00
Shengliang Guan f99b20aaa9 refactor: add standby option for mnode 2022-05-24 17:28:33 +08:00
Minghao Li 6cf9f50c3a enh(sync): syncStartStandBy 2022-05-24 17:14:12 +08:00
Shengliang Guan 8f37bb2e56 Merge branch 'feature/sync-mnode-integration' of https://github.com/taosdata/TDengine into feature/sync-mnode-integration 2022-05-24 15:41:19 +08:00
Minghao Li 8fa1096c5b enh(sync): add mndSnapshotRead mndSnapshotApply 2022-05-24 15:38:52 +08:00
Shengliang Guan ca89251caa Merge branch 'feature/sync-mnode-integration' of https://github.com/taosdata/TDengine into feature/sync-mnode-integration 2022-05-24 15:38:05 +08:00
Minghao Li aa85781560 enh(sync): add mndSnapshotRead mndSnapshotApply 2022-05-24 15:28:12 +08:00
Shengliang Guan 9b273e1766 feat: create mnode 2022-05-24 15:05:01 +08:00