mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't catch Throwable
in swap-job, catch Exception
This commit is contained in:
parent
545a9240d3
commit
28865e2956
1 changed files with 2 additions and 2 deletions
|
@ -139,8 +139,8 @@ public class SwapJobImpl implements SwapJob {
|
||||||
String projectName = dbStore.getOldestUnswappedProject();
|
String projectName = dbStore.getOldestUnswappedProject();
|
||||||
try {
|
try {
|
||||||
evict(projectName);
|
evict(projectName);
|
||||||
} catch (Throwable t) {
|
} catch (Exception e) {
|
||||||
Log.warn("[{}] Exception while swapping, mark project and move on", projectName, t);
|
Log.warn("[{}] Exception while swapping, mark project and move on", projectName, e);
|
||||||
// NOTE: this is something of a hack. If a project fails to swap we get stuck in a
|
// NOTE: this is something of a hack. If a project fails to swap we get stuck in a
|
||||||
// loop where `dbStore.getOldestUnswappedProject()` gives the same failing project over and over again,
|
// loop where `dbStore.getOldestUnswappedProject()` gives the same failing project over and over again,
|
||||||
// which fills up the disk with errors. By touching the access time we can mark the project as a
|
// which fills up the disk with errors. By touching the access time we can mark the project as a
|
||||||
|
|
Loading…
Reference in a new issue