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

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

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.5
    • Fix Version/s: 3.6.0, 3.5.5
    • Component/s: None
    • Labels:
      None
    • Release Note:
      Hide
      Change zkCli.sh so as to wait until connection to quorum is done.
      Add an option -waitforconnection for cmd args option to set this timeout to be same with session timeout.
      Show
      Change zkCli.sh so as to wait until connection to quorum is done. Add an option -waitforconnection for cmd args option to set this timeout to be same with session timeout.

      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
          4 kB
          Takashi Ohnishi
        2. ZOOKEEPER-1871.patch
          5 kB
          Takashi Ohnishi
        3. ZOOKEEPER-1871.patch
          6 kB
          Takashi Ohnishi
        4. ZOOKEEPER-1871.patch
          6 kB
          Takashi Ohnishi

          Activity

            People

            • Assignee:
              bwtakacy Takashi Ohnishi
              Reporter:
              vinayrpet Vinayakumar B
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: