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:
parent
a30b04e2f9
commit
ccc336a519
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue