Philip O'Toole
f4dab7f25d
Update bootstrap.go
1 year ago
Philip O'Toole
d538f4f583
Update bootstrap.go
1 year ago
Philip O'Toole
6037fc4822
More unit testing of Bootstrapper
1 year ago
Philip O'Toole
669e89ee24
Better remove-retry logic
1 year ago
Philip O'Toole
a12336f9fa
Remover retries removal
1 year ago
Philip O'Toole
6a4baf82ea
Fix error message string
1 year ago
Philip O'Toole
46526726de
Add Remover unit tests
1 year ago
Philip O'Toole
35bb120fcf
WaitForLeader instead
1 year ago
Philip O'Toole
f6b0cdb747
Refactor node self-removal
...
Still needs unit tests.
1 year ago
Philip O'Toole
40d6b698b9
Reduce timeout for self-remove
...
Add a unit test too.
1 year ago
Philip O'Toole
01031ba0af
Add support to cluster client for ExecuteQuery
...
Compiles, but not tested.
1 year ago
Philip O'Toole
142676dafb
Fix error handling in retry
1 year ago
Philip O'Toole
22037572a5
Retry certain cluster-client operations
...
Cluster-client operations may fail if the remote node has restarted,
leaving the connection pool's connections in stale state. This change
has the client retry repeatedly with a new connection, which should
force a new, valid, connection to be made with the restarted remote
node.
1 year ago
Philip O'Toole
1a25f0f713
Minor GPT4 fixes
1 year ago
Philip O'Toole
f2c1162b04
Make logic clearer
1 year ago
Philip O'Toole
1019b00b19
Support unwrapping errors
1 year ago
Philip O'Toole
7ac9172e79
Small improvements to Join testing
1 year ago
Philip O'Toole
c07401c778
Support Joining over Raft connection
1 year ago
Philip O'Toole
627c2c5588
Support Notify over Raft connection
1 year ago
Philip O'Toole
054a574eb8
Update client_test.go
1 year ago
Philip O'Toole
9e3b3e7294
Remove pointless WaitGroups
1 year ago
Philip O'Toole
7ce5a74097
Remove last race
1 year ago
Philip O'Toole
d1d123dc23
WaitGroups to deal with races
1 year ago
Philip O'Toole
e24f6cb11c
Test client remove-node
1 year ago
Philip O'Toole
f73cd54e0d
Trivial clean-up
1 year ago
Philip O'Toole
55d27482a7
More client unit tests
1 year ago
Philip O'Toole
f098f77551
Fix up service shutdown
1 year ago
Philip O'Toole
252e1a2d8b
Set initial pool size
...
Mostly useful for testing.
1 year ago
Philip O'Toole
495ca93f76
More network debugging
1 year ago
Philip O'Toole
d4208ace95
More debug entry and exit of test
1 year ago
Philip O'Toole
7c753d42da
Debug test
1 year ago
Philip O'Toole
340a2a5e1e
Ignore errors post test
1 year ago
Philip O'Toole
0fd8b575a9
Better comments
1 year ago
Philip O'Toole
e97e13383b
Better testing
1 year ago
Philip O'Toole
2d98f30a1d
Simple testing of cluster client
1 year ago
Philip O'Toole
83b8e81c28
Initial skeletion of servicetest
...
Modeled on httptest.
1 year ago
Philip O'Toole
3f05fb8f32
More Chat GPT 4 improvements
2 years ago
Philip O'Toole
95a689b3cf
Some improvements thanks to ChatGPT 4
2 years ago
Philip O'Toole
d55710692c
go mod updates
2 years ago
Philip O'Toole
07d2ba01e4
go mod updates
2 years ago
Philip O'Toole
74f24c2bf1
Bootstrapping needs ForceAttemptHTTP2
...
Fix unit test to check for this.
2 years ago
Philip O'Toole
3e84139290
Default to mutual TLS off for node-to-node
2 years ago
Philip O'Toole
27839b53f7
ABL
2 years ago
Philip O'Toole
72b47fa19b
Simpler logic
2 years ago
Philip O'Toole
89c3dfaa2e
Force Joiner to use HTTP/2
2 years ago
Philip O'Toole
ba39227c93
Move to a single cert-key pair for nodes
2 years ago
Philip O'Toole
54e649c341
More TLS unit test fixes
2 years ago
Philip O'Toole
673fd8cade
More use of central TLS config
2 years ago
Philip O'Toole
2005d94ad7
go mod updates
2 years ago
Philip O'Toole
60ef0a86b8
Final tweaks
2 years ago
Philip O'Toole
9e710edc99
More suitable file name
2 years ago
Philip O'Toole
2e56d22526
RemoveNode cluster-level unit test
2 years ago
Philip O'Toole
98575d727b
Start adding remote remove node
...
More testing, including unit testing, required.
2 years ago
Philip O'Toole
bfc35eaf7c
Simplify reap command line flags ( #1118 )
...
Simplify reap command line flags
2 years ago
Philip O'Toole
e74bfc182a
Use new Encoder everywhere
2 years ago
Philip O'Toole
36f97bdb55
Better logging for failure-to-join
2 years ago
Philip O'Toole
62e229d266
Improve comments
2 years ago
Philip O'Toole
f7c6ce6696
Bootstrapping doesn't need bootstrap-expect
...
It's the Store object that needs it.
2 years ago
Philip O'Toole
65cd556549
Fix remote-load error handling
...
Error from remote node was being dropped.
2 years ago
Philip O'Toole
ec0750a4c2
Update service.go
2 years ago
Philip O'Toole
e57270d36c
Fix up unit tests
2 years ago
Philip O'Toole
c8d521e628
Fix cluster service with 8-byte lengths
2 years ago
Philip O'Toole
0e44835346
Move to 8-byte proto lengths for cluster comms
...
This is a longstanding issue that needs to be fixed.
2 years ago
Philip O'Toole
dbca70898b
Refactor cluster client
2 years ago
Philip O'Toole
06e098e41a
Mostly better logging
2 years ago
Philip O'Toole
b0f17b86c7
Notified node checks address resolution
...
If a non-resolvable address is passed to the Store, and then Store then
adds that to the config, it can result in a cluster that seems to have
insufficient members (since the remote node can't be contacted). This
may trigger a new leader election.
2 years ago
Philip O'Toole
9ff03d3028
Client-level unit testing of Load
2 years ago
Philip O'Toole
0f140d092e
Merge remote-tracking branch 'origin' into load-forwarding
2 years ago
Philip O'Toole
43e8bbfd95
Remove noisy error from log
2 years ago
Philip O'Toole
44b7eb96a0
Remove extraneous formatter
2 years ago
Philip O'Toole
3bfe2ccdcc
Nicer logging during joining
2 years ago
Philip O'Toole
d2590ca646
Initial proto work for load forwarding
2 years ago
Philip O'Toole
78f3bb13c3
No need to jitter during init
2 years ago
Philip O'Toole
8a69aa53aa
HTTP-level unit testing of remote backup
2 years ago
Philip O'Toole
16a0b41321
Better errors
2 years ago
Philip O'Toole
1827c6eec5
Compress backups before transmission between nodes
2 years ago
Philip O'Toole
34c9914148
WIP -- unit test passing
2 years ago
Philip O'Toole
6ab718df2d
Better name
2 years ago
Philip O'Toole
e492c5f5f0
More Backup-forwarding WIP
2 years ago
Philip O'Toole
1049e41b6c
WIP before moving to proto backup model
2 years ago
Philip O'Toole
1f362a27e9
Shorter boot cycle
...
It's pretty slow on k8s.
2 years ago
Philip O'Toole
045de6fd57
More NO_CREDS use
2 years ago
Philip O'Toole
7ccfbd93b2
Move to top-level use of cluster.Credentials
2 years ago
Philip O'Toole
3afa2ce80a
Stick with simple proto
...
The proto was not well designed in the first place, but it's better to
deal with it as-is, and wait until another major release to fix it.
2 years ago
Neal Harrington
f750f78558
Remove test logs
2 years ago
Neal Harrington
e4a810d7ea
Treat error from rpc response as a first class object, delineate error types a bit, use this data to check auth when forward from http
2 years ago
Neal Harrington
c0b1b6c762
write some tests, make them pass
2 years ago
Neal Harrington
563cbda013
remove some println statements
2 years ago
Neal Harrington
8921ee002e
Clean up unncessary conditional. Add explicit auth/ tests for empty credentials/anonymous case
2 years ago
Neal Harrington
7cceb822a4
First things
2 years ago
Philip O'Toole
d9b2e0b2fa
WIP creds forwarding
2 years ago
Philip O'Toole
44230c98b5
Allow configurable cluster-connect timeout
...
Fixes https://github.com/rqlite/rqlite/issues/1042
2 years ago
Philip O'Toole
1cc0a40274
More fixes for https://github.com/rqlite/rqlite/issues/1029
2 years ago
Philip O'Toole
569ff39bac
Handle more connection errors
...
Fix https://github.com/rqlite/rqlite/issues/1029
2 years ago
Philip O'Toole
e5a8a209e0
Don't resolve any addresses
...
This makes working with systems like Kubernetes difficult. rqlite should
probably never have worked liked this. If IP addresses are still
perferred they can be passed in explicitly as command line arguments.
3 years ago
Philip O'Toole
e1aeb9a664
Refactor join code with Joiner type ( #986 )
...
Refactor join code with Joiner type
3 years ago
Philip O'Toole
bba69d6300
Add support for DNS-based autoclustering ( #979 )
...
New disco-bootstrapping hybrid to autoclustering, which uses DNS A Records to find nodes.
3 years ago
Philip O'Toole
e4fed0cee3
Add bootstrap-expect ( #974 )
...
Add cluster-boostrap
3 years ago
Philip O'Toole
ca7e6e98ff
Stop using deprecated protobuf package
3 years ago
Philip O'Toole
860999951d
Enhance Authentication and Authorization system ( #940 )
3 years ago