Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1394

ClassNotFoundException on shutdown of client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 3.4.2
    • None
    • java client
    • None
    • OS X 10.7 java version "1.6.0_29"

    Description

      When close() is called on the ZooKeeper instance from a ContextListener (contextDestroyed) there is no way to synchronize with the fact that the EventThread and SendThread have actually finished their work. The problem lies in the SendThread which makes a call to ZooTrace when it exits, but that class has not been loaded yet. Because the ContextListener could not synchronize with the death of the threads the classloader has already disappeared, resulting in a ClassNotFoundException.
      My personal opinion is that the close() method should probably wait until the event and send thread have actually died.

      Attachments

        1. ZOOKEEPER-1394.patch
          1 kB
          wu wen

        Issue Links

          Activity

            People

              wuwen wu wen
              meerlol Herman Meerlo
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: