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

Change log level for "ZKShutdownHandler is not registered" error message

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.4.10, 3.5.3, 3.6.0
    • 3.5.4, 3.6.0, 3.4.12
    • None
    • None

    Description

      We have an integration test suite that starts up an embedded version of zookeeper as part of a suite of services.

      However because it doesn't register a shutdown handler, we get lots of warnings that look like this

      17-05-30 15:04:56 achambers.local ERROR [org.apache.zookeeper.server.ZooKeeperServer:472] - ZKShutdownHandler is not registered, so ZooKeeper server won't take any action on ERROR or SHUTDOWN server state changes

      My java is a bit rusty but I think I can't create one of these shutdown handlers from outside the "org.apache.zookeeper.server" package because the constructor has not been marked "public". Would it be possible to do so?

      Attachments

        Issue Links

          Activity

            People

              abrahamfine Abraham Fine
              achambers.home@gmail.com Andy Chambers
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: