Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1833 fix windows build
  3. ZOOKEEPER-1459

Standalone ZooKeeperServer is not closing the transaction log files on shutdown

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.4.6, 3.5.0
    • server
    • None
    • Incompatible change

    Description

      When shutdown the standalone ZK server, its only clearing the zkdatabase and not closing the transaction log streams. When tries to delete the temporary files in unit tests on windows, its failing.
      ZooKeeperServer.java

              if (zkDb != null) {
                  zkDb.clear();
              }
      

      Suggestion to close the zkDb as follows, this inturn will take care transaction logs:

              if (zkDb != null) {
                  zkDb.clear();
                  try {
                      zkDb.close();
                  } catch (IOException ie) {
                      LOG.warn("Error closing logs ", ie);
                  }
              }
      

      Attachments

        1. ZOOKEEPER-1459-branch-3_4.patch
          3 kB
          Rakesh Radhakrishnan
        2. ZOOKEEPER-1459.patch
          3 kB
          Rakesh Radhakrishnan
        3. ZOOKEEPER-1459-branch-3_4.patch
          4 kB
          Rakesh Radhakrishnan
        4. ZOOKEEPER-1459.patch
          4 kB
          Rakesh Radhakrishnan
        5. ZOOKEEPER-1459.patch
          4 kB
          David Lao
        6. ZOOKEEPER-1459.patch
          1 kB
          David Lao
        7. ZOOKEEPER-1459.patch
          4 kB
          Rakesh Radhakrishnan
        8. ZOOKEEPER-1459.patch
          1 kB
          Rakesh Radhakrishnan
        9. ZOOKEEPER-1459.patch
          1 kB
          Rakesh Radhakrishnan
        10. ZOOKEEPER-1459.patch
          0.6 kB
          Rakesh Radhakrishnan

        Activity

          People

            rakeshr Rakesh Radhakrishnan
            rakeshr Rakesh Radhakrishnan
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: