Zhe Wu
784d899afb
fix assignment error in addressInDbAndRemoteDc unittest
2021-10-07 16:17:09 -07:00
Zhe Wu
c07a07dbbe
Take uptime into account when making failover decision
2021-10-07 11:19:34 -07:00
Zhe Wu
62197faa46
Add more comments to the code
2021-10-07 11:19:34 -07:00
Zhe Wu
c0fbe5471f
Implement the core logic of grey failure triggered failover
2021-10-07 11:19:34 -07:00
Suraj Gupta
fe098b3b11
Refactor logic for recruiting singletons.
...
This commit refactors the logic for recruiting singletons,
which is done by the ClusterController. This allows for far
easier additions of new singletons in the future, and also
cleans up the code.
Also, the logic for recruiting DD was changed to mirror
the logic for recruiting RK. Although the logic for RK
allows there to be many RKs existing at once, the moveKeysLock
mechanism used by DD still prevents multiple DDs existing at once.
2021-09-20 14:26:42 -05:00
Xiaoge Su
abf73047ca
Enforce std:: specifier rather than using namespace
2021-09-16 19:40:28 -07:00
Renxuan Wang
96fcde45c2
Minor leader election code improvements.
...
1. Rename monitorLeaderRemotely* functions to monitorLeaderWithDelayedCandidacy*. "Remote" is not clearly describing what the functions are doing;
2. Rename monitorLeaderForProxies() to monitorLeaderAndGetClientInfo() to better describe the function;
3. Remove monitorLeaderRemotelyInternal() and monitorLeaderRemotely() in MonitorLeader.actor.cpp, to eliminate code duplication. They already exist in worker.actor.cpp;
4. Move the declaration of getLeader() from LeaderElection.actor.cpp to MonitorLeader.h;
5. Update a few comments.
2021-09-16 15:34:45 -07:00
Josh Slocum
074bd174b6
Fix worker segfault by reference counting LocalConfiguration
2021-08-18 14:07:20 -05:00
Evan Tschannen
0a78c84a3e
Merge pull request #5183 from sfc-gh-xwang/tlog_dev
...
TLog Streaming Peek
2021-08-17 11:51:34 -07:00
Jingyu Zhou
bccb09f9dd
Merge pull request #5387 from sfc-gh-tclinkenbeard/improve-worker-const-correctness
...
Add const qualifiers to several parameters in `worker.actor.cpp`
2021-08-16 13:32:07 -07:00
sfc-gh-tclinkenbeard
3418c20867
Merge remote-tracking branch 'origin/master' into paxos-config-db
2021-08-16 10:49:47 -07:00
sfc-gh-tclinkenbeard
52a64eb04b
Improve const-correctness for AsyncVar references
2021-08-14 23:41:39 -07:00
sfc-gh-tclinkenbeard
ceb83f7f5e
Make ccInterface a const reference in workerServer
2021-08-14 23:41:39 -07:00
Lukas Joswiak
a605fb3852
Merge pull request #5026 from sfc-gh-ljoswiak/fixes/alp6
...
Actor sampling
2021-08-11 13:44:17 -07:00
Lukas Joswiak
305a17c811
Improve config broadcaster logic, fix unit tests
2021-08-10 11:39:29 -07:00
Lukas Joswiak
3946cf94ff
Push updates to workers (clang-formatted files)
2021-08-10 11:39:29 -07:00
Lukas Joswiak
092ab4302b
Push updates to workers
2021-08-10 11:39:29 -07:00
sfc-gh-tclinkenbeard
82546853c0
Rename UseConfigDB to ConfigDBType
2021-08-09 10:04:35 -07:00
sfc-gh-tclinkenbeard
42a45ebfc4
Temporarily comment out configuration database code breaking simulation tests
2021-08-09 10:04:35 -07:00
Xiaoxi Wang
2df0474fec
merge master
2021-08-02 11:58:35 -07:00
Zhe Wu
2c08d17975
Account for the case where TLogInterface may not present in ServerDbInfo in worker health monitor
2021-08-02 07:30:27 -07:00
Lukas Joswiak
5dc9a97230
Merge branch 'master' into fixes/alp6
2021-08-01 20:42:52 -07:00
Zhe Wu
a0bad000f3
Merge pull request #5279 from halfprice/zhewu/local-dc-count-proxy
...
Include proxies in the local worker list in health monitoring
2021-07-28 16:13:10 -07:00
Xiaoxi Wang
10c82b422f
merge master branch
2021-07-28 14:19:46 -07:00
Zhe Wu
e0a7891d67
Include proxies in the local worker list
2021-07-28 14:16:48 -07:00
Lukas Joswiak
3eed4084e2
Merge branch 'master' into fixes/alp6
2021-07-27 11:26:53 -07:00
Lukas Joswiak
59d535149e
Merge branch 'master' into fixes/alp6
2021-07-27 10:07:18 -07:00
Steve Atherton
507c1f11e3
Add .log() to bare TraceEvent() invocations without any .detail()s to avoid clang-tidy warning about immediate destruction of object without use.
2021-07-26 19:55:10 -07:00
Xiaoxi Wang
bfebd4e812
Merge branch 'master' of https://github.com/apple/foundationdb into tlog_dev
2021-07-22 16:15:07 -07:00
Xiaoxi Wang
1057835e8b
merge with master
2021-07-20 17:09:34 -07:00
sfc-gh-tclinkenbeard
6f81155784
Merge remote-tracking branch 'origin/master' into const-serverdbinfo
2021-07-20 10:18:40 -07:00
Steve Atherton
f596a81073
Rename ::TRUE and ::FALSE in BooleanParams to ::True and ::False so as to not conflict with the TRUE and FALSE macros provided by the Windows and MacOS SDKs.
2021-07-17 00:11:40 -07:00
Xiaoxi Wang
1584ed5853
Merge branch 'master' of https://github.com/apple/foundationdb into tlog_dev
2021-07-14 16:20:19 +00:00
sfc-gh-tclinkenbeard
03949f2bf9
Improve const-correctness of registrationClient arguments
2021-07-12 16:53:52 -07:00
sfc-gh-tclinkenbeard
77cbc1aa81
s/IDependentAsyncVar/IAsyncListener
2021-07-12 16:09:30 -07:00
sfc-gh-tclinkenbeard
6c1d913ab8
Prevent masterServer from modifying db
2021-07-11 21:11:21 -07:00
Xiaoxi Wang
569de5259f
Merge branch 'master' of https://github.com/apple/foundationdb into tlog_dev
2021-07-06 23:15:20 +00:00
sfc-gh-tclinkenbeard
79ff07a071
Added *BOOLEAN_PARAM macros to enforce documentation of boolean parameters
2021-07-02 15:04:42 -07:00
Xiaoxi Wang
b50fda6b4b
add simple streaming peek functions
2021-07-01 23:17:28 +00:00
Zhe Wu
865367fb72
Add updateWorkerHealth interface in cluster controller
2021-06-24 19:42:28 -07:00
Evan Tschannen
fcb8bd6475
Revert "Make the sim2 run loop match the behavior of the net2 run loop."
2021-06-22 14:50:01 -07:00
Evan Tschannen
154332a94b
Merge branch 'master' of https://github.com/apple/foundationdb into feature-sim-time-batching
...
# Conflicts:
# fdbserver/VersionedBTree.actor.cpp
2021-06-22 09:37:40 -07:00
Evan Tschannen
244e8f3527
Merge branch 'master' of https://github.com/apple/foundationdb into feature-streaming-reply-master
...
# Conflicts:
# fdbclient/CMakeLists.txt
# fdbclient/Knobs.h
# fdbserver/Knobs.h
2021-06-21 16:35:21 -07:00
Evan Tschannen
1cec223434
cherry pick streaming replies to master
2021-06-19 09:47:13 -07:00
sfc-gh-tclinkenbeard
6619545c30
Merge remote-tracking branch 'origin/master' into config-db
2021-06-18 19:59:56 -07:00
Zhe Wu
e3c9d9f6a0
Merge pull request #4987 from halfprice/zhewu/worker-health-monitor
...
Create health monitor in FDB workers to monitor peer network condition
2021-06-17 16:58:24 -07:00
Zhe Wu
07ee4029f2
Addressing comments.
2021-06-17 14:53:15 -07:00
sfc-gh-tclinkenbeard
826e70916c
Merge remote-tracking branch 'origin/master' into config-db
2021-06-17 09:47:41 -07:00
Lukas Joswiak
805c4200ce
Add collector to get running actor name
2021-06-16 18:08:51 -07:00
Zhe Wu
759ff61500
Remove unused parameters in registrationClient method
2021-06-16 15:13:09 -07:00