Renxuan Wang
5b079acd66
Coordinator should reply clientInfo when it changes.
...
This bug is introduced in #5231 .
2021-12-10 16:37:48 -08:00
Renxuan Wang
6978486e85
Coordinator should only reply client data if it's valid.
...
Because when a coordinator restarts or newly joins a cluster, a client trying to connect to it may already have client data, while the coordinator doesn't. In this case, the coordinator should not reply empty client data.
2021-12-10 16:37:48 -08:00
Evan Tschannen
35bce4cd36
added a comment
2021-11-16 13:07:35 -08:00
Evan Tschannen
fd635432c4
fix: coordinators would process forwarding requests before making them durable
2021-11-16 12:21:26 -08:00
A.J. Beamon
e882eb33fc
Abstract the cluster file into a cluster connection record that can be backed by something other than the filesystem.
2021-10-22 11:05:18 -07:00
Vaidas Gasiunas
16171d8252
Refactoring well-known endpoint registration
...
- List all well-known endpoints of FDB in a single enum
- Identify well-known endpoints by plain IDs
2021-09-21 11:05:31 -06: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
sfc-gh-tclinkenbeard
82546853c0
Rename UseConfigDB to ConfigDBType
2021-08-09 10:04:35 -07:00
sfc-gh-tclinkenbeard
59ddfd78bd
Merge remote-tracking branch 'origin/master' into paxos-config-db
2021-07-28 12:54:02 -07:00
Dan Lambright
55094bdd00
Merge branch 'master' into expired-forward
2021-07-26 19:58:29 -04:00
Dan Lambright
9f3e5d9bb5
use a BinaryWriter::toValue and BinaryReader::fromStringRef<double> instead of encoding time using a string
2021-07-26 15:58:41 -04:00
Dan Lambright
34fecb61de
Reject connections to clusters forwarded in the (configurable) past
2021-07-26 10:18:10 -04:00
sfc-gh-tclinkenbeard
62026ce42a
Remove ReplyPromise::sendErrorOr
2021-07-19 22:51:47 -07:00
sfc-gh-tclinkenbeard
d46feb5468
Add COORDINATOR_LEADER_CONNECTION_TIMEOUT server knob
2021-07-19 20:17:46 -07:00
sfc-gh-tclinkenbeard
b3e2b06553
Remove multiple implementations of ConfigNode
2021-07-18 18:25:06 -07:00
sfc-gh-tclinkenbeard
3c1cabf041
Coordinator lets client know if it cannot communicate with cluster controller
2021-07-13 17:26:28 -07:00
sfc-gh-tclinkenbeard
dee9fec300
Rename coordination files to fix upgrades
2021-06-18 14:16:49 -07:00
sfc-gh-tclinkenbeard
13ee24f464
Add UseConfigDB class
2021-06-10 20:57:50 -07:00
sfc-gh-tclinkenbeard
6fc5bd3480
Remove TestID from stateful configuration database classes, and fix some bugs
2021-06-07 00:29:36 -07:00
sfc-gh-tclinkenbeard
016ef54a73
Clean up unit test data directory between tests
2021-06-06 11:25:58 -07:00
sfc-gh-tclinkenbeard
a775f92fca
Merge remote-tracking branch 'origin/master' into config-db
2021-06-01 15:39:34 -07:00
Dan Lambright
cc3175fc50
remove forwarding
2021-05-28 11:41:42 -04:00
Dan Lambright
10289ef8f1
Respond to AJs comments
2021-05-27 09:14:32 -04:00
Dan Lambright
53d0ecc2fa
respond to comments made on 5/4
2021-05-27 08:08:07 -04:00
Dan Lambright
fc65154b5d
forward back new coordinator
2021-05-27 08:08:07 -04:00
Dan Lambright
fcfb78162c
misc cleanup for publishing
2021-05-27 08:08:07 -04:00
Dan Lambright
742c22cef2
Don't allow changing desriptor if knob is set
2021-05-27 08:08:07 -04:00
Dan Lambright
60d27d05d8
add knob enabling cross cluster support (default true)
2021-05-27 08:08:07 -04:00
Dan Lambright
065c4fdd5a
issue 4252
2021-05-27 08:08:07 -04:00
sfc-gh-tclinkenbeard
739d8813dd
Create configuration database node files on demand
2021-05-23 18:01:50 -07:00
sfc-gh-tclinkenbeard
748a3ebfbe
Add GetSnapshotAndChangesRequest type
2021-05-18 15:28:44 -07:00
sfc-gh-tclinkenbeard
a3726898bb
Support disabling configuration database node servers
2021-05-17 20:58:09 -07:00
sfc-gh-tclinkenbeard
641882ef0b
Add dummy PaxosConfixDatabaseNode implementation
2021-05-17 14:15:30 -07:00
sfc-gh-tclinkenbeard
5c3b293fce
Fix some SimpleConfigTransaction bugs
2021-05-15 12:41:16 -07:00
sfc-gh-tclinkenbeard
5c2d7b6080
Create RangeResult type alias
2021-05-03 13:14:16 -07:00
sfc-gh-tclinkenbeard
9bed1f7aa5
Run SimpleConfigBroadcaster on cluster controller
2021-04-25 17:20:02 -07:00
sfc-gh-tclinkenbeard
53697c316c
Expand ConfigurationDatabaseWorkload to support running multiple clients, broadcasters, and consumers
2021-04-22 13:54:58 -07:00
sfc-gh-tclinkenbeard
f54f082159
Build interfaces for full config update pipeline
2021-04-16 17:58:00 -07:00
sfc-gh-tclinkenbeard
ca3b7f5ef1
Implemented simple ConfigurationDatabase workload, run simple configuration database node on coordinators
2021-04-15 12:44:45 -07:00
sfc-gh-tclinkenbeard
18f17a4ea2
First draft of config-db
2021-04-14 22:06:37 -07:00
Evan Tschannen
d612dbbbe2
Update fdbserver/Coordination.actor.cpp
...
Co-authored-by: Jingyu Zhou <jingyuzhou@gmail.com>
2021-04-01 10:05:49 -07:00
Evan Tschannen
8be216b5c9
fix: storage servers would not attempt to become a cluster controller even when they were the only process in a region because they were not notified that the existing cluster controller was in the remote region
2021-03-31 14:24:44 -07:00
FDB Formatster
df90cc89de
apply clang-format to *.c, *.cpp, *.h, *.hpp files
2021-03-10 10:18:07 -08:00
Richard Chen
c77d9e4abe
merge conflicts
2020-12-02 21:53:19 +00:00
sfc-gh-tclinkenbeard
4669f837fa
Add uses of makeReference
2020-11-07 22:10:18 -08:00
Richard Chen
bbf5bdf6da
fix stable interfaces test and corresponding changes in simulator
2020-10-12 18:25:12 +00:00
Richard Chen
5488ff1d81
draft diff protocol
2020-10-12 18:24:03 +00:00
Richard Chen
41843f07e6
add simulator support for different process versions and ProtocolVersion test
2020-10-12 18:19:31 +00:00
Richard Chen
76d0027fa2
merge anoyes/stable-interface and add back in isCompatible
2020-10-12 18:18:30 +00:00
sfc-gh-tclinkenbeard
0814841827
Replace NULL with nullptr in fdbserver
2020-09-20 11:31:49 -07:00