4650 add exception handling for executionexception when cache is unable to retrieve value

This commit is contained in:
William Schaefer 2019-01-17 15:43:59 -05:00
parent 5b843dadc1
commit c50fb57afd

View File

@ -641,7 +641,7 @@ abstract class AbstractSqlEamDb implements EamDb {
return dataSourceCacheByDsObjectId.get(getDataSourceByDSObjectIdCacheKey( return dataSourceCacheByDsObjectId.get(getDataSourceByDSObjectIdCacheKey(
eamDataSource.getCaseID(), eamDataSource.getDataSourceObjectID()), eamDataSource.getCaseID(), eamDataSource.getDataSourceObjectID()),
() -> getDataSourceFromCr(eamDataSource.getCaseID(), eamDataSource.getDataSourceObjectID())); () -> getDataSourceFromCr(eamDataSource.getCaseID(), eamDataSource.getDataSourceObjectID()));
} catch (CacheLoader.InvalidCacheLoadException ex) { } catch (CacheLoader.InvalidCacheLoadException | ExecutionException ex) {
throw new EamDbException(String.format("Unable to to INSERT or get data source %s in central repo", eamDataSource.getName()), ex); throw new EamDbException(String.format("Unable to to INSERT or get data source %s in central repo", eamDataSource.getName()), ex);
} }
} else { } else {