Simon Detheridge
1a8c5c9498
Set global logging limit to INFO
2021-07-27 09:55:04 +01:00
Simon Detheridge
4318dea5a0
Restore debug level to INFO
2021-07-19 10:54:59 +01:00
Shane Kilkelly
21c1378b4a
Drop the root log level to "DEGUG"
...
This allows our dependencies, such as jgit, to log
at the debug level
2021-07-09 11:11:52 +01:00
Simon Detheridge
087c076fcd
Enable more verbose logging
2021-07-08 12:32:15 +01:00
Simon Detheridge
c6d20faa34
Add debug logging to push mechanism
2021-07-08 12:32:10 +01:00
Simon Detheridge
5be3616109
Add debug logs to put hook
2021-07-08 12:15:46 +01:00
Simon Detheridge
3b27a2ee6a
Add debug logs to project lock mechanism
2021-07-08 12:15:00 +01:00
Simon Detheridge
a3c4f8c4e6
Add format-style Log.debug method
2021-07-08 12:14:29 +01:00
Shane Kilkelly
a8aa1dde79
Merge pull request #127 from overleaf/spd-reupgrade-jetty-again
...
Revert jetty downgrade
2021-07-01 15:59:37 +01:00
Shane Kilkelly
49aa2ef845
Fix query for oldest (un-swapped) project
2021-07-01 14:57:58 +01:00
Simon Detheridge
f8f60eabad
Revert "Merge pull request #125 from overleaf/spd-revert-jetty-changes"
...
This reverts commit 9c324c378c46aa8b4b14e529e90ad9cbfca969cd, reversing
changes made to 63ccd609405952aa8749299c8a5cf7895f14a1bd.
2021-07-01 11:45:16 +01:00
Simon Detheridge
a239b70bfc
Revert change to make Jetty idle timeout configurable
2021-06-28 17:00:52 +01:00
Shane Kilkelly
899e781b33
Set sqlite soft_heap_limit via pragma
2021-06-25 12:03:57 +01:00
Simon Detheridge
d12b564ec3
Use ServerConnector to specify bind IP and idle timeout
2021-06-24 17:20:43 +01:00
Simon Detheridge
cafa94fcba
Add support for bindIp and idleTimeout to config object
2021-06-24 17:00:04 +01:00
Simon Detheridge
ad8fafc5b4
Add http endpoint to print out native memory diagnostics
2021-06-23 12:43:30 +01:00
Simon Detheridge
1eb22a7d6d
Export prometheus metrics directly from handler
2021-06-22 16:40:18 +01:00
Simon Detheridge
63ca055637
Use ServletHolder lifecycle more carefully
...
Fixes metrics with Jetty > 9.4.20
2021-06-22 15:41:24 +01:00
Simon Detheridge
eb9cf6f256
Export prometheus metrics
2021-06-22 13:06:40 +01:00
Shane Kilkelly
82ab89fab3
Remove exception from signature
2021-05-21 09:57:28 +01:00
Shane Kilkelly
2efc7f22a7
Remove old username/password settings
...
These were once used to secure interactions with the web api, back when
we allowed anonymous access to git repositories. This feature was
dropped in the migration to Overleaf v2, and we use OAuth on those
interactions anyway, so these settings are not actually used for
anything, and keeping these around is just confusing.
2021-05-20 15:59:26 +01:00
Shane Kilkelly
465a39c564
Wait one second between checks in swap test
2021-02-04 09:52:13 +00:00
Shane Kilkelly
b92c737814
Use configured compression method in swap job
2021-02-04 09:52:13 +00:00
Shane Kilkelly
c67014b859
Update SqliteDBStoreTest with swap/compression
2021-02-04 09:52:13 +00:00
Shane Kilkelly
961cec5bc8
Implement swap/restore in SqliteDBStore
2021-02-04 09:52:13 +00:00
Shane Kilkelly
a3d4976ce2
Implement swap/restore on NoopDbStore
2021-02-04 09:52:13 +00:00
Shane Kilkelly
83d9d122bf
Add swap/restore methods to DBStore interface
2021-02-04 09:52:13 +00:00
Shane Kilkelly
21c524d8b6
Log actions when (un)compressing project
2021-02-04 09:52:13 +00:00
Shane Kilkelly
eba7cbe696
Implement gzip in FSGitRepoStore
2021-02-04 09:52:13 +00:00
Shane Kilkelly
1c81fcf501
Add gzip to RepoStore interface
2021-02-04 09:52:13 +00:00
Shane Kilkelly
8496871ab2
Add gzip support to Tar helper
2021-02-04 09:52:13 +00:00
Shane Kilkelly
169de1fead
Configure swap compression method: bzip2 or gzip
2021-02-04 09:52:13 +00:00
Shane Kilkelly
c520ecd70d
Allow configuration of AWS region
2021-01-27 10:41:32 +00:00
Eric Mc Sween
8a5027255a
Merge pull request #86 from overleaf/em-handle-history-error
...
Handle errors from the history service
2020-12-09 09:05:24 -05:00
Eric Mc Sween
8bbeee0f8d
Strip token from blob URLs when using cache
...
Blob URLs coming from web may now contain a token for authentication
with history v1. This token will change every request, which makes the
URL not suitable as a cache key. Removing the token fixes that.
2020-12-04 15:15:10 -05:00
Eric Mc Sween
2430d5fe1d
Handle errors from the history service
...
If the history service returns a non-success status code when we request
a blob, chances are the payload is not the expected blob contents. We
throw an exception in that case, which will abort the git operation.
2020-12-04 11:27:00 -05:00
Shane Kilkelly
de23035e80
Add test for pulling ignored file
2020-09-29 13:00:36 +01:00
Shane Kilkelly
c6cfd51fb4
Use the NoGitignoreIterator recursively
2020-09-29 12:44:33 +01:00
Shane Kilkelly
03af20113f
Force add the test file, sigh.
2020-09-24 13:29:39 +01:00
Shane Kilkelly
935770e2ab
Add test for reset before pull
2020-09-24 11:24:47 +01:00
Shane Kilkelly
d07ecd2a1b
During pull: reset repo before writing data
2020-09-23 11:38:22 +01:00
Shane Kilkelly
bb7831012b
When logging IOException for put, include error
2020-09-01 13:28:35 +01:00
Shane Kilkelly
2b8f3f4de8
Use 422 status when rejecting Git LFS request
2020-08-05 13:00:20 +01:00
Shane Kilkelly
f7125b9159
Handle Git LFS requests, with error message
...
We don't support Git LFS. This change adds a handler for
POST requests to "<project>.git/info/lfs/objects/batch",
and sends back a 406 response, with json data that the
client can use to print a nice error message.
2020-08-05 10:08:40 +01:00
Shane Kilkelly
e7b19ea4a0
Update src/main/java/uk/ac/ic/wlgitbridge/server/StatusHandler.java
...
Co-authored-by: John Lees-Miller <jdleesmiller@gmail.com>
2020-06-26 13:37:18 +01:00
Shane Kilkelly
4161416659
Update src/main/java/uk/ac/ic/wlgitbridge/server/HealthCheckHandler.java
...
Co-authored-by: John Lees-Miller <jdleesmiller@gmail.com>
2020-06-26 13:37:09 +01:00
Shane Kilkelly
5e31a11938
Respond to HEAD request in /status, /health_check
2020-06-26 11:54:18 +01:00
Shane Kilkelly
a9a7f54a96
Handle trailing slash on status and health_check
2020-06-25 16:43:57 +01:00
Shane Kilkelly
6ff3877dd1
Fix status and healthcheck tests
2020-06-19 15:50:51 +01:00
Shane Kilkelly
ec278ffe0a
Fix log lines
2020-06-19 15:50:42 +01:00