Skip to content
Snippets Groups Projects
Commit 8d28d9f7 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

don't remove file when it's not available (it might hang due to different transactions)

parent 9f5e98c4
No related branches found
No related tags found
1 merge request!263Mi rna cache problem
......@@ -433,7 +433,7 @@ public class BigFileCache {
final long size = getRemoteHttpFileSize(url);
OutputStream output = new FileOutputStream(Configuration.getWebAppDir() + entry.getLocalPath());
g OutputStream output = new FileOutputStream(Configuration.getWebAppDir() + entry.getLocalPath());
cos = new CountingOutputStream(output) {
private double lastProgress = -1;
......@@ -846,7 +846,6 @@ public class BigFileCache {
File f = new File(Configuration.getWebAppDir() + entry.getLocalPath());
if (!f.exists()) {
logger.warn("File is supposed to be cached but it's not there... " + sourceUrl);
bigFileEntryDao.delete(entry);
return false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment