[
https://issues.apache.org/jira/browse/ZOOKEEPER-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13895880#comment-13895880
]
Rakesh R commented on ZOOKEEPER-1878:
-------------------------------------
{code}
-1 core tests. The patch failed core unit tests.
{code}
Following is the test case failure reported by QA. There is an issue
ZOOKEEPER-1870 open to address the same, so kindly ignore this failure report.
{code}
junit.framework.AssertionFailedError: client could not connect to reestablished
quorum: giving up after 30+ seconds.
at
org.apache.zookeeper.test.ReconfigTest.testNormalOperation(ReconfigTest.java:143)
at
org.apache.zookeeper.server.quorum.StandaloneDisabledTest.startSingleServerTest(StandaloneDisabledTest.java:75)
at
org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
{code}
Please review the problem and the proposed patch. Thanks
> Inconsistent behavior in autocreation of dataDir and dataLogDir
> ---------------------------------------------------------------
>
> Key: ZOOKEEPER-1878
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1878
> Project: ZooKeeper
> Issue Type: Bug
> Components: quorum
> Affects Versions: 3.4.5
> Reporter: Rakesh R
> Assignee: Rakesh R
> Fix For: 3.4.6, 3.5.0
>
> Attachments: ZOOKEEPER-1878.patch, ZOOKEEPER-1878_br_3_4.patch
>
>
> 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.
> {code}
> 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
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)