Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9092

Exception root cause message is swallowed

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.22.4, 1.32.0, 1.8.23
    • blob
    • None

    Description

      The root cause of the problem (the IOException stack trace / message) is swallowed here: org.apache.jackrabbit.oak.plugins.blob.FileCache

          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);
              }
          }
      

      Attachments

        Activity

          People

            amitj Amit Jain
            thomasm Thomas Mueller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: