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

delQuota does not remove the quota node and subesquent setquota calls for that path will fail

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.3.3
    • Fix Version/s: None
    • Component/s: server
    • Labels:
      None

      Description

      sequota -b 1000 /testing
      delquota -b /testing
      setquota -n 1024 /testing
      Command failed: java.lang.IllegalArgumentException: /testing has a parent /zookeeper/quota/testing which has a quota

        Activity

        Hide
        fournc Camille Fournier added a comment -

        Ah this appears to be just a really poorly-documented feature. If no flag is passed, it will completely delete the node. If both flags are passed, it will swallow the command. Deciding whether to clean that up or just close this.

        Show
        fournc Camille Fournier added a comment - Ah this appears to be just a really poorly-documented feature. If no flag is passed, it will completely delete the node. If both flags are passed, it will swallow the command. Deciding whether to clean that up or just close this.
        Hide
        mahadev Mahadev konar added a comment -

        camille,
        Should we fix the documentation of atleast the command output for better reporting?

        Show
        mahadev Mahadev konar added a comment - camille, Should we fix the documentation of atleast the command output for better reporting?
        Hide
        fournc Camille Fournier added a comment -

        Yes. We should probably also make setquota accept both -n and -b when called from the client instead of barfing. Very frustrating.

        Show
        fournc Camille Fournier added a comment - Yes. We should probably also make setquota accept both -n and -b when called from the client instead of barfing. Very frustrating.

          People

          • Assignee:
            fournc Camille Fournier
            Reporter:
            fournc Camille Fournier
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

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

                Development