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 Bug
    • Status: Resolved
    • Priority: Major 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

        Patrick Hunt made changes -
        Fix Version/s 3.4.0 [ 12314469 ]
        Fix Version/s 3.3.4 [ 12316276 ]
        Hide
        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
        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.
        Hide
        Mahadev konar added a comment -

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

        Show
        Mahadev konar added a comment - camille, Should we fix the documentation of atleast the command output for better reporting?
        Camille Fournier made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Hide
        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
        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.
        Camille Fournier created issue -

          People

          • Assignee:
            Camille Fournier
            Reporter:
            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