Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2567

Error message is not correct when wrong argument is passed for "reconfig" cmd

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • java client
    • None

    Description

      Error message is not correct when wrong argument is passed for "reconfig" cmd

      Steps to reproduce:-
      1. Start zookeeper in cluster mode
      2. use reconfig cmd with wrong argument (pass : instead of
      [zk: localhost:2181(CONNECTED) 10] reconfig -remove 3 -add 3=10.18.221.194:2888:3888:2181
      KeeperErrorCode = BadArguments for

      Here error message is not complete and informative on client console.

      The log is as below:-
      2016-09-08 18:54:08,701 [myid:1] - INFO [ProcessThread(sid:1 cport:-1)::PrepRequestProcessor@512] - Incremental reconfig
      2016-09-08 18:54:08,702 [myid:1] - INFO [ProcessThread(sid:1 cport:-1)::PrepRequestProcessor@843] - Got user-level KeeperException when processing sessionid:0x100299b7eac0000 type:reconfig cxid:0x7 zxid:0x400000004 txntype:-1 reqpath:n/a Error Path:Reconfiguration failed Error:KeeperErrorCode = BadArguments for Reconfiguration failed

      Attachments

        Activity

          People

            rakeshsingh Rakesh Kumar Singh
            rakeshsingh Rakesh Kumar Singh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: