[WINDOWS] MiniZookeeperCluster should ensure that ZKDatabase is closed upon shutdown()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • 0.95.0
    • Affects Version/s: 0.94.3, 0.95.2
    • Component/s: None
    • Reviewed

      MiniZookeeperCluster.shutdown() shuts down the ZookeeperServer and NIOServerCnxnFactory. However, MiniZookeeperCluster uses a deprecated ZookeeperServer constructor, which in turn constructs its own FileTxnSnapLog, and ZKDatabase. Since ZookeeperServer.shutdown() does not close() the ZKDatabase, we have to explicitly close it in MiniZookeeperCluster.shutdown().

      Tests effected by this are

      TestSplitLogManager
      TestSplitLogWorker
      TestOfflineMetaRebuildBase
      TestOfflineMetaRebuildHole
      TestOfflineMetaRebuildOverlap
      

        1. hbase-6820_v1-trunk.patch
          1 kB
          Enis Soztutar
        2. hbase-6820_v1-0.94.patch
          1 kB
          Enis Soztutar

            Assignee:
            Enis Soztutar
            Reporter:
            Enis Soztutar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: