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

Initialize command succeeds even though it didn't in case of permission errors on the data directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Trivial
    • Resolution: Unresolved
    • 3.5.0
    • None
    • scripts
    • None

    Description

      while testing single user mode that the initialize command succeeds even though it didn't in case of permission errors on the data directory:

      ....
      + exec /usr/lib/zookeeper/bin/zkServer-initialize.sh --myid=1
      mkdir: cannot create directory `/var/lib/zookeeper/version-2': Permission denied
      mkdir: cannot create directory `/var/lib/zookeeper/version-2': Permission denied
      /usr/lib/zookeeper/bin/zkServer-initialize.sh: line 112: /var/lib/zookeeper/myid: Permission denied
      

      Attachments

        1. ZOOKEEPER-2115.patch
          0.7 kB
          Flavio Paiva Junqueira
        2. ZOOKEEPER-2115.patch
          1 kB
          Manikandan Narayanaswamy
        3. ZOOKEEPER-2115-1.patch
          1 kB
          Manikandan Narayanaswamy
        4. ZOOKEEPER-2115-2.patch
          1 kB
          Biju Nair
        5. ZOOKEEPER-2115-3.patch
          2 kB
          Biju Nair

        Activity

          People

            gsbiju Biju Nair
            mnarayan Manikandan Narayanaswamy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: