You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "E. Sammer (JIRA)" <ji...@apache.org> on 2011/03/07 18:49:59 UTC
[jira] Created: (ZOOKEEPER-1008) ZK should give more specific error
on missing myid
ZK should give more specific error on missing myid
--------------------------------------------------
Key: ZOOKEEPER-1008
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1008
Project: ZooKeeper
Issue Type: Improvement
Components: server
Affects Versions: 3.3.2
Reporter: E. Sammer
Priority: Minor
On startup, ZK should specifically test for and provide an error message if the myid file is missing. Currently, the error message is simply "Invalid config" if myid is missing.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (ZOOKEEPER-1008) ZK should give more specific
error on missing myid
Posted by "Thomas Koch (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13097128#comment-13097128 ]
Thomas Koch commented on ZOOKEEPER-1008:
----------------------------------------
Hi,
as you can see below, the specific error cause, the missing myid file, is mentioned in the first Caused by section. Isn't that enough?
2011-09-05 11:44:40,134 [myid:] - ERROR [main:QuorumPeerMain@85] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Error processing /home/thkoch/repos/zookeeper/conf/zoo.cfg
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:121)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:101)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:78)
Caused by: java.lang.IllegalArgumentException: /tmp/zookeeper/myid file is missing
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:344)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:117)
... 2 more
> ZK should give more specific error on missing myid
> --------------------------------------------------
>
> Key: ZOOKEEPER-1008
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1008
> Project: ZooKeeper
> Issue Type: Improvement
> Components: server
> Affects Versions: 3.3.2
> Reporter: E. Sammer
> Priority: Minor
>
> On startup, ZK should specifically test for and provide an error message if the myid file is missing. Currently, the error message is simply "Invalid config" if myid is missing.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira