Philip O'Toole
085d2d23d8
ABL
5 years ago
Philip O'Toole
0e69be3949
Store layer supports generating SQL format backups
...
Port PR453.
5 years ago
Philip O'Toole
0471877f26
Abort transaction if load operation fails
5 years ago
Philip O'Toole
ccca1ecfa9
Fix DSN key in Store status output
5 years ago
Philip O'Toole
d47808a26b
Add expvar stats to Store
5 years ago
Philip O'Toole
2e91858e1e
Allow Raft election timeout to be set
6 years ago
Philip O'Toole
6937a377ae
Allow control of shutdown-on-remove
...
Defaults to leaving Raft run if the node is removed.
6 years ago
Philip O'Toole
efec4d4e42
Return redirect if remove on follower
...
Fixes issue #391 .
7 years ago
Philip O'Toole
b5b2cb21db
Log Store directory path on startup
7 years ago
Philip O Toole
6bbdc88c1d
ABL
...
Always be linting.
7 years ago
Philip O'Toole
2a1b6c65c3
New QueryRequest and ExecuteRequest types
...
The Query() and Execute() functions on the Store now take a complex type
that encapsulates the statements, and associated parameters. This will
make it easier to add more control parameters when making requests.
7 years ago
Philip O'Toole
303be73dcb
Add missing Store params to diagnostics
7 years ago
Philip O'Toole
2617962f5f
Typo
8 years ago
WanliTian
4cb5035172
remove store.readPeersJSON
8 years ago
Philip O Toole
aa5c946a40
Linting
8 years ago
Philip O'Toole
851f486ff8
Make waiting for logs optional
8 years ago
Philip O'Toole
059ab0757b
Allow Store to wait for initial logs to be applied
...
Better fix for issue #260 .
8 years ago
Philip O Toole
4b6c936d53
Fix comment typos
8 years ago
Philip O Toole
ae0d119d83
Allow Raft Apply timeout to be configurable
8 years ago
Philip O Toole
5ed6ef0ae8
Covert dumps to queries in HTTP service
...
There is no need for special logic at the Store level.
8 years ago
Philip O Toole
e6586f41f2
Use single load for dump processing
...
Writing a sufficiently sophisicated parser is too much work, and unlikely to be successful soon. Instead this change simply loads the entire dump as one command, and allows the underlying SQLite support to parse it correctly. This will definitely work, but since the load goes over Raft, it may hit limits with regards to network transfer sizes. Right now any limitations in that area are unknown.
Therefore this functionality remains somewhat experimental.
8 years ago
Philip O Toole
098578bda8
Clarify guarantees of some functions
8 years ago
Philip O Toole
c2ab24378c
Lint fixes
8 years ago
Philip O Toole
2fb99e5b20
Use Store logger everywhere in Store
8 years ago
Tycho Andersen
dc2128d02a
add a raw snapshotting API
...
This allows us to grab a raw snapshot of the databse.
v2: s/RawDBSnapshot/Database, remove reference to raft from the comment.
v3: add a leader arg to Database to do a leader check
v4: fix doc string.
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
8 years ago
Tycho Andersen
326ca757d7
add an API for using custom raft.PeerStore/log.Logger
...
This is useful in case the server needs to store other metadata (e.g. auth
data) along side the peer list.
The logging bit is handy in case something has its own logging framework
that it wants to use.
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
8 years ago
Philip O'Toole
7ac3450ab2
Suport observer deregistration
8 years ago
Tycho Andersen
aa47089a32
expose raft's observer API via store
...
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
8 years ago
Tycho Andersen
4cf094c6a4
store: use ErrNotLeader everywhere
...
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
8 years ago
Philip O'Toole
4242a641b1
Fix typo in comment
8 years ago
Philip O'Toole
c00f1b460b
Accept BEGIN and COMMIT on load()
8 years ago
Philip O'Toole
39ebf50cb7
Remove explicit control of FK constraints
...
It's not clear whether it's the right thing to do, and FK constraints
can still be controlled via PRAGMA commands.
8 years ago
Philip O'Toole
9ffa309f69
Stop database-level control of FK during load
8 years ago
Philip O'Toole
ed304b7840
Remove useless comment
8 years ago
Philip O'Toole
36368d6786
Start removing batch load
8 years ago
Philip O'Toole
68793cfcbb
Use a transaction for loaded batch
...
Bump the batch size to 1000 too.
8 years ago
Philip O Toole
f44c08a530
Skip loading blank lines
8 years ago
Philip O Toole
9c180d8f43
SQL parser now strips newlines
8 years ago
Philip O Toole
1f5cfc65d8
Trim leading and trailing newlines
8 years ago
Philip O Toole
84f3be9c10
Add missing package
8 years ago
Philip O Toole
b87de293ce
Move \n ; trimming to SQL line parser
8 years ago
Philip O Toole
6ee9cdbbdf
Start integration of SQL line parser
8 years ago
Philip O Toole
3726d1bb20
Add DB conf to diagnostics
8 years ago
Philip O Toole
cb7686fa46
Diagnostics show actual FK constraint state
8 years ago
Philip O Toole
2daac8704b
Support batching during load
8 years ago
Philip O Toole
31560160a1
Check FK state before load
8 years ago
Philip O Toole
4c6ee1ad39
Return error code during load if necessary
8 years ago
Philip O Toole
6007790ae4
Break loading when done
8 years ago
Philip O Toole
3286bf064d
Start adding load-from-dump
8 years ago
Philip O'Toole
729221bf57
join endpoint returns HTTP 301 if necessary
8 years ago