ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1878

Inconsistent behavior in autocreation of dataDir and dataLogDir

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.5
    • Fix Version/s: 3.4.7, 3.5.0
    • Component/s: quorum
    • Labels:
      None

      Description

      During the startup if dataDir is not exists server will auto create this. But when user specifies different dataLogDir location which doesn't exists the server will validate and startup will fail.

      org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing build\test3085582797504170966.junit.dir\zoo.cfg
      	at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:123)
      	at org.apache.zookeeper.server.ServerConfig.parse(ServerConfig.java:79)
      	at org.apache.zookeeper.server.ZooKeeperServerMain.initializeAndRun(ZooKeeperServerMain.java:81)
      	at org.apache.zookeeper.server.ZooKeeperServerMainTest$MainThread.run(ZooKeeperServerMainTest.java:92)
      Caused by: java.lang.IllegalArgumentException: dataLogDir build/test3085582797504170966.junit.dir/data_txnlog is missing.
      	at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:253)
      	at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:119)
      	... 3 more
      
      1. ZOOKEEPER-1878_br_3_4.patch
        4 kB
        Rakesh R
      2. ZOOKEEPER-1878.patch
        5 kB
        Rakesh R
      3. ZOOKEEPER-1878.patch
        5 kB
        Rakesh R
      4. ZOOKEEPER-1878_br_3_4.patch
        4 kB
        Rakesh R
      5. ZOOKEEPER-1878-resets-autocreate-flag.patch
        2 kB
        Rakesh R

        Activity

        Rakesh R created issue -
        Rakesh R made changes -
        Field Original Value New Value
        Attachment ZOOKEEPER-1878.patch [ 12627845 ]
        Rakesh R made changes -
        Attachment ZOOKEEPER-1878.patch [ 12627845 ]
        Rakesh R made changes -
        Attachment ZOOKEEPER-1878_br_3_4.patch [ 12627846 ]
        Rakesh R made changes -
        Attachment ZOOKEEPER-1878.patch [ 12627847 ]
        Rakesh R made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Affects Version/s 3.4.5 [ 12321883 ]
        Fix Version/s 3.4.6 [ 12323310 ]
        Fix Version/s 3.5.0 [ 12316644 ]
        Flavio Junqueira made changes -
        Fix Version/s 3.4.7 [ 12325149 ]
        Fix Version/s 3.4.6 [ 12323310 ]
        Rakesh R made changes -
        Attachment ZOOKEEPER-1878.patch [ 12634722 ]
        Rakesh R made changes -
        Attachment ZOOKEEPER-1878_br_3_4.patch [ 12634888 ]
        Michi Mutsuzaki made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Rakesh R made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Rakesh R made changes -
        Rakesh R made changes -
        Status Reopened [ 4 ] Patch Available [ 10002 ]
        Michi Mutsuzaki made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Rakesh R
            Reporter:
            Rakesh R
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development