mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
a bit more cleanup with metadata 2
This commit is contained in:
@@ -33,7 +33,7 @@ public class RemoteObjectServiceClient {
|
||||
var meta = metaOpt.get();
|
||||
if (meta.getMtime() != reply.getObject().getHeader().getMtime()) {
|
||||
if (!meta.getAssumeUnique() && (meta.getAssumeUnique() != reply.getObject().getHeader().getAssumeUnique())) {
|
||||
Log.error("Conflict!");
|
||||
Log.error("Race when trying to fetch");
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,7 +43,8 @@ public class SyncHandler {
|
||||
|
||||
try {
|
||||
objectPersistentStore.deleteObject(request.getName());
|
||||
} catch (Exception ignored) {
|
||||
} catch (Exception e) {
|
||||
Log.info("Couldn't delete object from persistent store: ", e);
|
||||
}
|
||||
|
||||
jObjectManager.invalidateJObject(data.getName());
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.usatiuk.dhfs;
|
||||
|
||||
import io.quarkus.logging.Log;
|
||||
import io.quarkus.runtime.ShutdownEvent;
|
||||
import io.quarkus.runtime.StartupEvent;
|
||||
import jakarta.annotation.Priority;
|
||||
@@ -24,6 +25,7 @@ public class TestDataCleaner {
|
||||
purgeDirectory(Path.of(tempDirectory).toFile());
|
||||
purgeDirectory(Path.of(tempDirectoryIdx).toFile());
|
||||
} catch (Exception ignored) {
|
||||
Log.warn("Couldn't cleanup test data on init");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user