Commit 1bd40499 authored by Rolf Krahl's avatar Rolf Krahl

Delete the (partly restored) dataset from main storage if restoring failed.

parent bd9f0a41
......@@ -118,6 +118,10 @@ public class DsRestorer implements Runnable {
} catch (Exception e) {
fsm.recordFailure(dsInfo.getDsId());
logger.error("Restore of " + dsInfo + " failed due to " + e.getClass() + " " + e.getMessage());
try {
mainStorageInterface.delete(dsInfo);
} catch (IOException e2) {
}
} finally {
fsm.removeFromChanging(dsInfo);
lock.release();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment