Fixed issue in block archiver, which caused it to hold a transaction open for a very long time. This caused deadlocks when trying to create bootstraps or perform repository maintenance.

This commit is contained in:
CalDescent 2021-10-02 11:51:53 +01:00
parent 1ba542eb50
commit ca02cd72ae

View File

@ -83,6 +83,7 @@ public class BlockArchiver implements Runnable {
case NOT_ENOUGH_BLOCKS:
// We didn't reach our file size target, so that must mean that we don't have enough blocks
// yet or something went wrong. Sleep for a while and then try again.
repository.discardChanges();
Thread.sleep(60 * 60 * 1000L); // 1 hour
break;