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

zookeeper_init accepts empty host-port string and returns valid pointer to zhandle_t.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: c client
    • Labels:
      None
    • Environment:

      Linux

    • Hadoop Flags:
      Reviewed

      Description

      Please, add this test to src/c/tests/TestZookeeperInit.cc to reproduce this:

      void testEmptyAddressString()

      { zh=zookeeper_init("",0,0,0,0,0); CPPUNIT_ASSERT(zh==0); }

        Attachments

        1. ZOOKEEPER-182-UnitTests-Init-AddressString.patch
          2 kB
          Maxim P. Dementiev
        2. ZOOKEEPER-182.patch
          0.4 kB
          Maxim P. Dementiev

          Activity

            People

            • Assignee:
              dememax Maxim P. Dementiev
              Reporter:
              dememax Maxim P. Dementiev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: