Minghao Li
fa54663871
refactor(sync): add last config index
2022-06-11 13:52:17 +08:00
Minghao Li
4af9d14457
refactor(sync): add last config index
2022-06-11 13:08:30 +08:00
Minghao Li
6adadc0b26
refactor(sync): add last config index
2022-06-11 13:03:58 +08:00
Minghao Li
6586f78599
refactor(sync): add last config index
2022-06-11 12:44:58 +08:00
Minghao Li
ae5219dd6e
refactor(sync): add heartbeat log
2022-06-10 22:29:28 +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
b351fd8261
refactor(sync): add log
2022-06-10 13:15:43 +08:00
Minghao Li
3148df2107
fix(sync): compatibility for both mnode(use snapshot) and vnode(no snapshot)
2022-06-09 17:16:06 +08:00
Shengliang Guan
0beb323653
Merge branch 'feature/sync-refactor' of https://github.com/taosdata/TDengine into feature/sync-refactor
2022-06-09 16:16:13 +08:00
Minghao Li
7ae6d8f77d
refactor(sync): set gRaftDetailLog true
2022-06-09 14:18:57 +08:00
Minghao Li
ee32302101
refactor(sync): add detail log flag
2022-06-09 14:14:45 +08:00
Shengliang Guan
65f65b53b3
Merge remote-tracking branch 'origin/3.0' into feature/sync-refactor
2022-06-09 13:49:43 +08:00
Minghao Li
d81f5e9f77
fix(sync): add detail log flag
2022-06-09 11:18:48 +08:00
Minghao Li
89e2c2d47a
fix(sync): update sender when become leader
2022-06-09 11:00:28 +08:00
Minghao Li
e070657778
refactor(sync): add syncGetSnapshotMeta
2022-06-08 23:20:07 +08:00
Minghao Li
e86ee68f8b
refactor(sync): sync snapshot
2022-06-08 22:43:58 +08:00
Shengliang Guan
bc8e6b7fd7
refactor: adjust vnode sync
2022-06-08 21:17:17 +08:00
Minghao Li
687caac2bf
refactor(sync): add raft log test
2022-06-08 16:45:40 +08:00
Minghao Li
f6aed44076
refactor(sync): syncNodeSendMsgById to one line
2022-06-08 13:52:33 +08:00
Minghao Li
2547e8d02e
refactor: sync index
2022-06-08 11:03:28 +08:00
Shengliang Guan
4e99992cff
fix: change quorum on sync reconfig successed
2022-06-07 18:00:50 +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
44a893a1c1
fix(sync): snapshot maybe change when sending
2022-06-07 13:48:40 +08:00
Minghao Li
a89e455267
fix(sync): delete some assert temporary
2022-06-07 09:55:18 +08:00
Minghao Li
2071c5a74e
fix(sync): sending snapshot
2022-06-06 20:02:27 +08:00
Minghao Li
6b329f791b
enh(sync): update raft core functions
2022-06-06 16:35:44 +08:00
Minghao Li
af27303a4c
enh(sync): update raft core functions
2022-06-06 16:02:25 +08:00
Minghao Li
5009b7822f
enh(sync): add log index manager
2022-06-06 11:24:25 +08:00
Minghao Li
5908631ec3
enh(sync): add log store2
2022-06-05 19:47:54 +08:00
Shengliang Guan
30da7560f8
Merge remote-tracking branch 'origin/3.0' into fix/mnode
2022-06-04 11:50:47 +08:00
Shengliang Guan
e35ebdadac
refactor: rename LEADER to leader
2022-06-02 14:35:59 +08:00
Minghao Li
c3bf3cc97c
fix: send snapshot
2022-06-01 21:57:30 +08:00
Minghao Li
757a1248dc
fix: send snapshot
2022-06-01 21:23:39 +08:00
Minghao Li
78db753a64
refactor: review syncNodeAppendEntriesPeersSnapshot
2022-06-01 16:30:04 +08:00
Minghao Li
403f6085d5
refactor: review syncNodeRequestVotePeersSnapshot
2022-06-01 15:52:09 +08:00
Minghao Li
13b336d569
add snapshot test
2022-06-01 15:03:01 +08:00
Minghao Li
2e840969c8
refactor: snapshotReSend
2022-06-01 13:53:21 +08:00
Minghao Li
71c57d7769
refactor: sender code
2022-06-01 11:28:33 +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
c5526ef915
enh(sync): add SyncSnapshotRsp SyncSnapshotSend
2022-05-30 21:11:14 +08:00
Minghao Li
6be4119fe7
add syncNodeIsIndexInSnapshot syncNodeGetLastIndexTerm syncNodeGetPreIndexTerm
2022-05-30 18:45:09 +08:00
Minghao Li
79ae770a0b
enh(sync): add snapshotEnable2
2022-05-30 17:31:55 +08:00
Minghao Li
d6c57bd372
enh(sync): add snapshotEnable2
2022-05-30 13:14:48 +08:00
Minghao Li
bdc9acbf2e
enh(sync): add snapshotEnable
2022-05-30 12:26:15 +08:00
Cary Xu
f2b4cca23d
fix: init buffer to avoid invalid write
2022-05-29 01:10:32 +08:00
Cary Xu
890075ef4a
fix: init buf to avoid invalid write
2022-05-29 00:59:23 +08:00
Minghao Li
17ed7e0747
fix(sync) delete assert, due to config change
2022-05-27 00:00:24 +08:00
Minghao Li
f078f5b300
fix(sync): syncSetStandby
2022-05-26 15:08:20 +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
8c5f6b6849
fix(sync): persist isStandby
2022-05-25 18:32:34 +08:00
Minghao Li
104a207579
FpReConfigCb
2022-05-25 14:43:45 +08:00
Minghao Li
81d0798f5f
refactor: update config when there's one locally
2022-05-25 14:27:59 +08:00
Minghao Li
cb20717ce6
refactor: votesRespondUpdate
2022-05-24 20:23:11 +08:00
Minghao Li
94438de0ec
enh(sync): syncStartStandBy
2022-05-24 19:45:09 +08:00
Minghao Li
800ef42a26
Merge branch 'feature/sync-mnode-integration' of https://github.com/taosdata/TDengine into feature/sync-mnode-integration
2022-05-24 14:47:11 +08:00
Minghao Li
aa1de8b34a
enh(sync): add FpSnapshotRead FpSnapshotApply
2022-05-24 14:46:22 +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
Minghao Li
c7691590be
enh(sync) add syncIsRestoreFinish
2022-05-23 23:53:15 +08:00
Minghao Li
1d7bdbc351
fix(sync) sync/mnode integration dead lock
2022-05-23 21:37:13 +08:00
Minghao Li
4535722957
enh(sync) sync/mnode integration, syncStart async -> sync
2022-05-23 15:41:04 +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
f2a84eda09
refactor: adjust vnode header file
2022-05-20 10:45:43 +08:00
Shengliang Guan
0161b6456c
refactor: adjust msgcb
2022-05-19 19:44:01 +08:00
Shengliang Guan
81e89ec7b6
Merge remote-tracking branch 'origin/3.0' into fix/mnode
2022-05-16 20:13:02 +08:00
Shengliang Guan
fc94b71c80
refactor: adjust SRpcMsg
2022-05-16 15:17:11 +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
f97adf54d3
enh(sync): add syncStartStandBy
2022-05-13 12:12:37 +08:00
Minghao Li
b69a26678c
enh(sync): raft config change
2022-05-12 15:23:41 +08:00
Minghao Li
589048e96b
fix(sync): fix memory leak, RespMgr
2022-05-09 20:14:31 +08:00
Minghao Li
2584b034df
add syncGetEpSet
2022-04-30 10:29:29 +08:00
Minghao Li
4d40af9929
add redirect
2022-04-28 16:41:13 +08:00
Minghao Li
9a603170b4
add redirect before syncPropose
2022-04-27 19:28:01 +08:00
Minghao Li
b96e434ab3
format
2022-04-27 18:10:57 +08:00
Li Minghao
2fa176a49d
when 1 replica, become leader immediately
2022-04-25 07:49:40 -07:00
Minghao Li
64dfc1da1c
merge 3.0 code
2022-04-22 17:11:56 +08:00
Minghao Li
bbe85695cf
add syncMaybeAdvanceCommitIndex, maybe only one replica
2022-04-20 20:29:20 +08:00
Shengliang Guan
b66718a4d8
feat: report service status
2022-04-19 21:39:42 +08:00
Minghao Li
7066274cc7
add sync format code
2022-04-18 21:50:56 +08:00
afwerar
222db126bc
[TD-13758]<fix>: redefine memory api.
2022-03-26 00:29:53 +08:00
Minghao Li
b3ec7c8261
sync refactor
2022-03-24 17:30:50 +08:00
Minghao Li
e58812aab5
sync refactor
2022-03-24 11:40:36 +08:00
Minghao Li
7c6fbbfbd1
sync refactor
2022-03-22 16:58:36 +08:00
Minghao Li
f7432337fd
sync refactor
2022-03-22 16:43:30 +08:00
Minghao Li
1c3113686e
sync refactor
2022-03-22 16:17:17 +08:00
Minghao Li
944bb33156
sync refactor
2022-03-22 15:29:32 +08:00
Minghao Li
559f570ea0
sync refactor
2022-03-22 14:43:58 +08:00
Minghao Li
c5c00d5955
sync refactor
2022-03-22 10:42:02 +08:00
Minghao Li
48aace92c5
sync refactor
2022-03-21 19:26:48 +08:00
Minghao Li
1251d64e81
sync refactor
2022-03-21 16:42:30 +08:00
Minghao Li
7129645023
sync refactor
2022-03-21 16:28:50 +08:00
Minghao Li
3ce39eec1c
sync refactor
2022-03-18 18:42:49 +08:00
Minghao Li
736dfaf064
sync refactor
2022-03-18 17:46:40 +08:00
Minghao Li
21feed915f
sync refactor
2022-03-18 17:23:48 +08:00
Minghao Li
5de67d4256
sync refactor
2022-03-18 15:21:40 +08:00
Minghao Li
6a7f5c5fd2
sync refactor
2022-03-18 11:29:03 +08:00
Minghao Li
e5b0e1465d
sync refactor
2022-03-17 16:33:10 +08:00
Minghao Li
13aa59409d
sync refactor
2022-03-17 16:22:51 +08:00
Minghao Li
9db8804581
sync refactor
2022-03-17 15:53:28 +08:00
Minghao Li
acea32ed41
sync refactor
2022-03-16 20:17:32 +08:00
Minghao Li
fda9803c17
sync refactor
2022-03-16 20:03:22 +08:00
Minghao Li
f22226a44e
sync refactor
2022-03-16 17:16:10 +08:00
Minghao Li
b08cdf2f82
sync refactor
2022-03-16 16:20:01 +08:00
Minghao Li
f7cd75544c
sync raft store
2022-03-16 15:09:56 +08:00
Shuduo Sang
3c6c518470
[TD-13063]<feature>: 3.0 on windows ( #10765 )
...
* [TD-13063]<feature>: 3.0 on Windows
* add pthread in contrib
* fix linux compile
* fix osSemaphore
* add gnu regex for Windows
* fix compile error for Windows
* support arm platform
* port more OS files
* fix for Windows compile
* port more files
* fix macOS on x86_64
* port osFile
* port osSemaphone.h
* port osSocket.c
* port tconfig.c
* port ttimer.c
* add couple files
* merge with 3.0
2022-03-16 11:37:31 +08:00
Minghao Li
b5b1417a8b
sync append entries (sync-io)
2022-03-16 10:54:06 +08:00
Minghao Li
09e2f36ddd
sync append entries
2022-03-15 14:04:16 +08:00
Minghao Li
f924c1b879
sync index
2022-03-14 20:43:35 +08:00
Minghao Li
7c868aea85
sync index
2022-03-14 18:44:53 +08:00
Minghao Li
8ae9fb6ae1
sync index
2022-03-14 18:22:39 +08:00
Minghao Li
9734b9b0ec
sync index
2022-03-14 17:02:43 +08:00
Minghao Li
a471152b96
sync index
2022-03-14 16:34:01 +08:00
Minghao Li
7d897369d5
sync index
2022-03-14 16:27:25 +08:00
Minghao Li
1a78917767
sync index
2022-03-14 14:05:40 +08:00
Minghao Li
88aef2d1ab
sync refactor
2022-03-10 19:21:02 +08:00
Minghao Li
c462ef61e3
sync refactor
2022-03-09 18:35:57 +08:00
Minghao Li
41516e024a
sync refactor
2022-03-09 18:33:41 +08:00
Minghao Li
d87411116b
sync refactor
2022-03-09 16:34:34 +08:00
Minghao Li
fa7f441f42
sync refactor
2022-03-09 15:07:43 +08:00
Minghao Li
0c8f62f701
sync refactor
2022-03-09 14:51:02 +08:00
Minghao Li
d958655dd3
sync refactor
2022-03-08 20:22:31 +08:00
Minghao Li
2ae6f747f9
sync refactor
2022-03-08 17:07:29 +08:00
Minghao Li
54c260738f
sync refactor
2022-03-08 14:45:03 +08:00
Minghao Li
ffe442301c
sync refactor
2022-03-08 14:19:50 +08:00
Minghao Li
f556d98159
sync refactor
2022-03-08 13:55:13 +08:00
Minghao Li
c9c48e870d
sync refactor
2022-03-08 13:43:54 +08:00
Minghao Li
264c30e5db
sync refactor
2022-03-08 10:52:18 +08:00
Minghao Li
cf0857e113
sync refactor
2022-03-07 16:59:16 +08:00
Minghao Li
b8aa420e3a
sync refactor
2022-03-07 16:46:17 +08:00
Minghao Li
25af19bd24
sync refactor
2022-03-07 16:06:07 +08:00
Minghao Li
a0319ae49b
sync refactor
2022-03-07 14:42:04 +08:00
Minghao Li
b59028365a
sync refactor
2022-03-07 14:18:46 +08:00
Minghao Li
97a71fd81e
sync refactor
2022-03-06 17:59:24 +08:00
Minghao Li
d95593ac46
sync refactor
2022-03-06 12:51:42 +08:00
Minghao Li
551d7cfa6d
sync refactor
2022-03-06 12:25:12 +08:00
Minghao Li
b7e22154b2
sync timeout
2022-03-05 15:03:49 +08:00
Minghao Li
b75da82c96
sync timeout
2022-03-05 12:28:34 +08:00
Minghao Li
98b3530699
sync timeout
2022-03-04 16:54:25 +08:00
Minghao Li
8d789bba31
sync enq
2022-03-04 15:48:09 +08:00
Minghao Li
64d224a0d2
syncInt
2022-03-03 17:28:00 +08:00
Minghao Li
76c4fce8d0
ping test
2022-03-03 11:37:19 +08:00
Minghao Li
fe1f280ce4
sync modify timer
2022-03-02 20:43:03 +08:00
Minghao Li
08df4b42de
sync modify timer
2022-03-02 20:08:46 +08:00
Minghao Li
6d6e7bdf3d
sync modify timer
2022-03-02 18:30:21 +08:00
Minghao Li
8057e44d17
sync modify timer
2022-03-02 17:40:22 +08:00
Minghao Li
ee43a70c4d
sync modify timer
2022-03-02 10:43:59 +08:00
Minghao Li
aaf5e20fdc
sync encode test
2022-03-01 20:29:49 +08:00
Minghao Li
d57320031f
sync ping
2022-03-01 15:16:44 +08:00
Minghao Li
eaf6142c79
sync modify timer
2022-02-28 17:47:47 +08:00
Minghao Li
c9efe3dea7
sync modify timer
2022-02-28 16:36:57 +08:00
Minghao Li
02f0f85aab
sync modify timer
2022-02-28 14:10:34 +08:00
Minghao Li
4afcb4387c
add sync io
2022-02-27 10:22:15 +08:00
Minghao Li
b55cf2bc7e
add sync code
2022-02-27 02:24:50 +08:00
Minghao Li
dbe28cd4ff
add sync code
2022-02-27 00:02:18 +08:00
Minghao Li
e8780cebed
add sync code
2022-02-26 18:30:58 +08:00
Minghao Li
296d9abe2a
add sync code
2022-02-25 15:34:24 +08:00
Minghao Li
113618bea3
add sync test
2022-02-25 14:38:12 +08:00
Minghao Li
51adf7e25e
add raft store
2022-02-24 21:03:25 +08:00
Minghao Li
be375fa143
add sync code
2022-02-22 11:28:15 +08:00