Skip to content
Snippets Groups Projects
Commit 5f6189ed authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-13724 : MultiDatasetArchiver: failing to delete datasets from store due to open file handles

parent 3ba7b5ad
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -150,9 +150,9 @@ public abstract class AbstractDataSetPackager ...@@ -150,9 +150,9 @@ public abstract class AbstractDataSetPackager
{ {
long size = file.length(); long size = file.length();
long checksum = isChecksumNeeded() ? node.getChecksumCRC32() : 0; long checksum = isChecksumNeeded() ? node.getChecksumCRC32() : 0;
try try (InputStream nodeInputStream = node.getInputStream())
{ {
addEntry(entryPath, node.getLastModified(), size, checksum, node.getInputStream()); addEntry(entryPath, node.getLastModified(), size, checksum, nodeInputStream);
} catch (Exception ex) } catch (Exception ex)
{ {
throw CheckedExceptionTunnel.wrapIfNecessary(ex); throw CheckedExceptionTunnel.wrapIfNecessary(ex);
......
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