Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3383

AccumuloVFSClassloader creates conflicting local cache directory names when vfs.cache.dir property is set.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.1
    • 1.6.2, 1.7.0
    • start
    • None

    Description

      When the vfs.cache.dir property is not set, the AccumuloVFSClassloader will use java.io.tmpdir as a base directory for the local cache of jars and then generate a unique directory name using a combination of the processid, hostname and userid executing the JVM.

      When the vfs.cache.dir property is set, that value is used as the base directory and an attempt to generate a unique directory is made using an AtomicInteger. This isn't suitable because for non-long lived processes, this will always be 1 - and there's a good chance that directory already exists and is owned by another user, and not writable to by the user in question.

      This leads to a failure of the invoked accumulo component to start.

      Modify the behavior of the unique directory creation when vfs.cache.dir is set so that it employs the same mechanism for unique directory naming that is used when it is not set.

      Attachments

        1. ACCUMULO-3383.patch
          2 kB
          Drew Farris
        2. ACCUMULO-3383-1.patch
          7 kB
          Drew Farris

        Activity

          People

            drew.farris Drew Farris
            drew.farris Drew Farris
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m