ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-1871

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

    Details

    • Type: Improvement Improvement
    • Status: Patch Available
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.5
    • Fix Version/s: 3.5.2, 3.6.0
    • 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.

      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

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:

              Development