You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Thomas Mueller (Jira)" <ji...@apache.org> on 2020/05/26 05:25:00 UTC
[jira] [Updated] (OAK-9092) Exception root cause message is
swallowed
[ https://issues.apache.org/jira/browse/OAK-9092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Mueller updated OAK-9092:
--------------------------------
Summary: Exception root cause message is swallowed (was: Exception root cause is swallowed)
> Exception root cause message is swallowed
> -----------------------------------------
>
> Key: OAK-9092
> URL: https://issues.apache.org/jira/browse/OAK-9092
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: blob
> Reporter: Thomas Mueller
> Assignee: Amit Jain
> Priority: Major
>
> The root cause of the problem (the IOException stack trace / message) is swallowed here: org.apache.jackrabbit.oak.plugins.blob.FileCache
> {noformat}
> private void put(String key, File file, boolean copy) {
> try {
> File cached = DataStoreCacheUtils.getFile(key, cacheRoot);
> if (!cached.exists()) {
> if (copy) {
> FileUtils.copyFile(file, cached);
> } else {
> FileUtils.moveFile(file, cached);
> }
> }
> cache.put(key, cached);
> } catch (IOException e) {
> LOG.error("Exception adding id [{}] with file [{}] to cache", key, file);
> }
> }
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)