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

Add an option to zkCli to wait for connection before executing commands

    XMLWordPrintableJSON

Details

    Description

      Add an option to zkCli to wait for connection before executing any commands.
      This is helpful for the execution of inline commands.

      We are having some scripts to create/delete znodes through commandline. But if getting the connection delays due to one of the node down, then command will fail with connectionloss even though quorum is available.

      So I propose a commandline option (similar to -server and -timeout) "-waitforconnection" to wait for the connection before executing any commands.

      Attachments

        1. ZOOKEEPER-1871.patch
          6 kB
          Takashi Ohnishi
        2. ZOOKEEPER-1871.patch
          6 kB
          Takashi Ohnishi
        3. ZOOKEEPER-1871.patch
          5 kB
          Takashi Ohnishi
        4. ZOOKEEPER-1871.patch
          4 kB
          Takashi Ohnishi

        Activity

          People

            Mukti Mukti Krishnan
            vinayakumarb Vinayakumar B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 4h
                4h