Commit Graph

219 Commits

Author SHA1 Message Date
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
Shengliang Guan 077ea4a14f fix: avoid memory leak in mnode sync 2022-05-24 11:58:50 +08:00
Shengliang Guan 0e8e04805a fix: avoid memory leak 2022-05-24 09:46:54 +08:00
Shengliang Guan 924b334b00 fix: avoid memory leak whilel stop sync 2022-05-24 00:07:09 +08:00
Shengliang Guan 7ec3c82cd6 Merge remote-tracking branch 'origin/feature/sync-mnode-integration' into fix/mnode 2022-05-23 23:19:21 +08:00
Shengliang Guan 2f32e122af Merge remote-tracking branch 'origin/3.0' into fix/mnode 2022-05-23 23:17:21 +08:00
Minghao Li 43f2a51e4b fix(sync) sync/mnode eq msg 2022-05-23 22:08:14 +08:00
Shengliang Guan 3ff366cdaf Merge remote-tracking branch 'origin/feature/sync-mnode-integration' into fix/mnode 2022-05-23 18:33:09 +08:00
Shengliang Guan 5ec450d01c fix: stop sync after queue is empty 2022-05-23 18:15:31 +08:00
Minghao Li dc82c1ba22 enh(sync) sync/mnode integration, syncStart async -> sync 2022-05-23 16:00:03 +08:00
Shengliang Guan 68b7f6946d refactor: sync integrate into mnode 2022-05-23 13:15:27 +08:00
Shengliang Guan 89c1e82337 refactor: sync integrate into mnode 2022-05-23 13:05:35 +08:00
Minghao Li 97b1e95ad8 enh(sync) sync/mnode integration, add term, currentTerm in cbMeta 2022-05-23 12:14:53 +08:00
Shengliang Guan c38a8055ba fix: add error code if malloc failed 2022-05-23 12:04:57 +08:00
Shengliang Guan 6c1d1927c9 refactor: sync integrate into mnode 2022-05-23 09:58:21 +08:00
Shengliang Guan 2b668e3b27 Merge branch '3.0' into fix/mnode 2022-05-22 18:15:45 +08:00
Shengliang Guan 32d48f3b8f refactor: sync integrate into mnode 2022-05-22 17:45:27 +08:00
Shengliang Guan e06f9fd05c refactor: sync integrate into mnode 2022-05-22 16:04:50 +08:00
Minghao Li 249aecacda enh(sync) sync/mnode integration 2022-05-21 21:26:27 +08:00
Shengliang Guan 1f2b8ae1df refactor(cluster): adjust log print 2022-04-26 17:42:57 +08:00
Shengliang Guan 86354a996a refactor(cluster): adjust mnode sync codes 2022-04-26 16:44:45 +08:00
Shengliang Guan 9e41cce370 refactor(cluster): adjust acct log 2022-04-26 15:47:45 +08:00
Shengliang Guan c1b3afa92d feat[cluster]: create and drop mnode 2022-04-09 19:38:20 +08:00
Shengliang Guan 1db7368570 when wal is restored, the stage of trans is changed from rollback to finish 2022-02-18 16:22:06 +08:00
Liu Jicong 60a1ae8ce4 merge from 3.0 2022-01-28 13:31:46 +08:00
yihaoDeng 92bef71ec7 rename MAX/MIN/POW2/SWAP name 2022-01-24 12:53:17 +08:00
Shengliang Guan 359d8427fc minor changes 2022-01-19 21:52:54 -08:00
Liu Jicong 3d7b737bbc fix compile error 2022-01-10 16:23:35 +08:00
Liu Jicong 7437c5dd71 Merge branch '3.0' into feature/tq 2022-01-10 16:18:05 +08:00
Liu Jicong 1e17d776f9 fix crash 2022-01-10 16:13:05 +08:00
Shengliang Guan b472f95f32 Merge remote-tracking branch 'origin/3.0' into feature/dnode3 2022-01-07 02:13:44 -08:00
Shengliang Guan 34fd49c7f7 minor changes 2022-01-07 00:01:51 -08:00
Shengliang Guan db2dbe5f51 pullup trans when mnode restart 2022-01-05 20:22:33 -08:00
Shengliang Guan bcad6bb528 restore from wal 2022-01-04 03:44:44 -08:00
Shengliang Guan c94f30e383 add some logs 2022-01-03 23:20:29 -08:00
Shengliang Guan 81e7ff450e minor changes 2022-01-04 13:40:47 +08:00
Shengliang Guan 99e53317ce minor changes 2022-01-03 21:41:45 +08:00
Shengliang Guan 5ac3398f3a Mnode intergate with wal module 2022-01-03 21:36:31 +08:00
Shengliang Guan 3efe621526 integration with wal module 2022-01-03 17:44:47 +08:00
Shengliang Guan b10cff8b35 framework integrated with sync 2021-12-25 14:41:20 +08:00
Shengliang Guan bb1d721ead TD-10431 show mnode 2021-12-22 22:47:46 -08:00
Shengliang Guan 0d0f33ab5e fix compile error and ci problems 2021-12-17 14:20:32 +08:00
Haojun Liao 48507aecc0 [td-11818] support show databases; 2021-12-17 11:22:31 +08:00
Shengliang Guan 2348b6e276 TD-10431 refact trans 2021-12-14 18:00:52 +08:00
Shengliang Guan 5252e1771d TD-10431 user manage 2021-12-07 20:14:36 +08:00
Shengliang Guan c7451a9949 TD-10431 rename variables 2021-11-29 16:02:37 +08:00
Shengliang Guan 1bf566a701 TD-10431 remove global variables 2021-11-29 15:53:02 +08:00
Shengliang Guan 35b0c69333 TD-10431 rename some funcs 2021-11-29 13:29:13 +08:00
Shengliang Guan e63637fcce TD-10431 rename some functions 2021-11-29 13:19:00 +08:00
Shengliang Guan 6ee8832271 TD-10431 fix compile errors in mnode 2021-11-29 12:09:18 +08:00
Shengliang Guan ad361ee1df rename files 2021-11-27 22:56:18 +08:00