Fixed exception

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/document-store-lib@124321 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2016-02-18 17:43:54 +00:00
parent a30b04e2f9
commit ccc336a519
1 changed files with 6 additions and 2 deletions

View File

@ -119,7 +119,11 @@ public abstract class PersistenceBackend {
logger.trace("{} {} valid", record.getClass().getSimpleName(), record);
}
if(aggregate){
aggregationScheduler.aggregate(record, new DefaultPersitenceExecutor(this));
try {
aggregationScheduler.aggregate(record, new DefaultPersitenceExecutor(this));
} catch(Exception e){
this.accountWithFallback(record);
}
}else{
this.accountWithFallback(record);
}
@ -128,7 +132,7 @@ public abstract class PersistenceBackend {
logger.error("Error validating {}", record.getClass().getSimpleName(), e);
} catch (Exception e) {
logger.error("Error recording {}", record.getClass().getSimpleName(), e);
}
}
}
/**