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

Cannot use iterators in MockAccumulo running in a secondary classloader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.0
    • start
    • None

    Description

      We have a situation where there is a test client which spins off a Thread running a MockAccumulo, and then we try to use iterators that are on the classpath for that Thread. Unfortunately, they CNFE. We've traced it back, since the ReloadingClassLoader just uses the parent classloader (AccumuloClassLoader) in absence of configurations. The AccumuloClassLoader.getClassLoader uses ClassLoader.getSystemClassLoader() as it's parent, not AccumuloClassLoader.class.getClassLoader(). I believe that should preserve the way the classloaders work in the standard use cases while not breaking in any other cases.

      Attachments

        Activity

          People

            vines John Vines
            vines John Vines
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: