Commit 7cafd309 authored by Luna Riegel's avatar Luna Riegel
Browse files

Refactor: Synchronize cache after Checks + Schematron

parent 8b2305a7
...@@ -205,14 +205,16 @@ public class Checker { ...@@ -205,14 +205,16 @@ public class Checker {
} }
if (schematronThread.isAlive()) { if (schematronThread.isAlive()) {
//TODO: Localize String //TODO: Localize String
logger.info("Schematron thread still running, waiting for completion. This may take some time"); logger.info("Schematron is still running. Waiting for completion, this may take some time");
try{ try{
schematronThread.join(); schematronThread.join();
logger.info("Schematron completed.");
} catch (InterruptedException e) { } catch (InterruptedException e) {
logger.error("Main Thread was interrupted while waiting for Schematron", e); logger.error("Main Thread was interrupted while waiting for Schematron", e);
schematronThread.interrupt(); schematronThread.interrupt();
} }
} }
CacheManager.synchronizeCache();
model.setValidated(createValidationPlan()); model.setValidated(createValidationPlan());
} }
...@@ -694,8 +696,6 @@ public class Checker { ...@@ -694,8 +696,6 @@ public class Checker {
String msg = String.format("Checker could not load %d/%.0f features (%.2f%%)", missing, featureSum, (missing/featureSum) * 100); String msg = String.format("Checker could not load %d/%.0f features (%.2f%%)", missing, featureSum, (missing/featureSum) * 100);
logger.warn(msg); logger.warn(msg);
} }
CacheManager.synchronizeCache();
// model.preCacheShownFeatures();
} catch (InterruptedException e) { } catch (InterruptedException e) {
throw new RuntimeException(e); throw new RuntimeException(e);
} }
......
Supports Markdown
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