Commit Graph

219 Commits

Author SHA1 Message Date
Shengliang Guan 9da398913e refact: post sem in mnode while sync timeout 2022-12-13 11:11:22 +08:00
Shengliang Guan f137e8395d refact: change SRWLatch to TdThreadMutex in mnode 2022-12-13 10:18:00 +08:00
Shengliang Guan e0215d60ad fix: set restored 2022-12-08 17:53:39 +08:00
Shengliang Guan 46889e2dc1 fix: avoid sync restore repeat called 2022-12-08 17:14:06 +08:00
Benguang Zhao 50883689e7 enh: check contiguousness of indexes applied to vnode tsdb 2022-12-07 17:30:22 +08:00
Benguang Zhao 7eca212756 Merge branch '3.0' into FIX/TD-19334-3.0 2022-12-03 10:02:59 +08:00
Benguang Zhao 2ce07c6ec1 fix: get result of tmsPutToQueue for FpCommitCb 2022-12-03 09:05:50 +08:00
Shengliang Guan 13f36ec20a refact: remove TSDB_CODE_APP_NOT_READY and TSDB_CODE_NODE_NOT_DEPLOYED 2022-12-02 16:06:10 +08:00
Benguang Zhao 4edef438ea enh: transfer ownership of msgs while committing sync log entries 2022-11-26 21:57:23 +08:00
Benguang Zhao 051b73c1ed Merge branch 3.0 to FIX/TD-19334-3.0 2022-11-17 17:28:11 +08:00
Shengliang Guan a57efc49b4 fix: memory leak of sync timer 2022-11-15 13:43:30 +08:00
Minghao Li d672e7a05c refactor(sync): add FpApplyQueueItems in fsm 2022-11-09 16:18:28 +08:00
Shengliang Guan b0f469adb1
Merge pull request #17931 from taosdata/feature/3.0_mhli
fix(sync): when apply queue not empty, can not read
2022-11-07 18:29:53 +08:00
Minghao Li b6aea6ae17 fix(sync): when apply queue not empty, can not read 2022-11-07 16:40:53 +08:00
Benguang Zhao 5878c9a31a fix: impl ring log buffer 2022-11-07 14:27:22 +08:00
Shengliang Guan adb335467c fix: coverity issues 2022-11-05 19:59:18 +08:00
Shengliang Guan 7a537bba09 refact: adjust sync.h and syncState 2022-11-02 10:24:55 +08:00
Shengliang Guan 64633e3dbb enh: refact syncMsg code 2022-11-01 18:34:09 +08:00
Shengliang Guan ee63b49800 Merge remote-tracking branch 'origin/3.0' into fix/TD-20052 2022-11-01 17:11:27 +08:00
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