Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: documentation, fs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The `HDFS Quotas Guide` says

      A quota of zero still permits files to be created, but no blocks can be added to the files.
      

      But, this acutally is not so. When I tried, dfsadmin command failed with the below message.

      $ hdfs dfsadmin -setSpaceQuota 0 /user/alice/dirWithSpaceQuota
      setSpaceQuota: Invalid values for quota : 9223372036854775807 and 0
      
      1. HDFS-10242.1.patch
        3 kB
        Takashi Ohnishi

        Issue Links

          Activity

          Hide
          bwtakacy Takashi Ohnishi added a comment -

          Attached patch.

          Show
          bwtakacy Takashi Ohnishi added a comment - Attached patch.
          Hide
          hadoopqa Hadoop QA added a comment -
          -1 overall



          Vote Subsystem Runtime Comment
          0 reexec 0m 17s Docker mode activated.
          +1 @author 0m 0s The patch does not contain any @author tags.
          +1 test4tests 0m 0s The patch appears to include 1 new or modified test files.
          0 mvndep 0m 36s Maven dependency ordering for branch
          +1 mvninstall 7m 30s trunk passed
          +1 compile 8m 46s trunk passed with JDK v1.8.0_74
          +1 compile 7m 48s trunk passed with JDK v1.7.0_95
          +1 checkstyle 1m 10s trunk passed
          +1 mvnsite 2m 37s trunk passed
          +1 mvneclipse 0m 40s trunk passed
          +1 findbugs 5m 36s trunk passed
          +1 javadoc 2m 46s trunk passed with JDK v1.8.0_74
          +1 javadoc 3m 37s trunk passed with JDK v1.7.0_95
          0 mvndep 0m 16s Maven dependency ordering for patch
          +1 mvninstall 2m 17s the patch passed
          +1 compile 8m 48s the patch passed with JDK v1.8.0_74
          +1 javac 8m 48s the patch passed
          +1 compile 7m 53s the patch passed with JDK v1.7.0_95
          +1 javac 7m 53s the patch passed
          +1 checkstyle 1m 9s the patch passed
          +1 mvnsite 2m 37s the patch passed
          +1 mvneclipse 0m 38s the patch passed
          +1 whitespace 0m 0s Patch has no whitespace issues.
          +1 findbugs 6m 13s the patch passed
          +1 javadoc 2m 47s the patch passed with JDK v1.8.0_74
          +1 javadoc 3m 38s the patch passed with JDK v1.7.0_95
          -1 unit 9m 40s hadoop-common in the patch failed with JDK v1.8.0_74.
          +1 unit 1m 5s hadoop-hdfs-client in the patch passed with JDK v1.8.0_74.
          -1 unit 87m 5s hadoop-hdfs in the patch failed with JDK v1.8.0_74.
          +1 unit 9m 52s hadoop-common in the patch passed with JDK v1.7.0_95.
          +1 unit 1m 2s hadoop-hdfs-client in the patch passed with JDK v1.7.0_95.
          -1 unit 80m 26s hadoop-hdfs in the patch failed with JDK v1.7.0_95.
          +1 asflicense 0m 24s Patch does not generate ASF License warnings.
          268m 51s



          Reason Tests
          JDK v1.8.0_74 Failed junit tests hadoop.net.TestClusterTopology
            hadoop.hdfs.TestBlockStoragePolicy
            hadoop.hdfs.server.namenode.ha.TestEditLogTailer
            hadoop.hdfs.TestFileAppend
            hadoop.TestRefreshCallQueue
            hadoop.hdfs.TestRollingUpgrade
            hadoop.hdfs.server.namenode.TestDecommissioningStatus
            hadoop.hdfs.server.datanode.TestDirectoryScanner
          JDK v1.7.0_95 Failed junit tests hadoop.hdfs.server.datanode.fsdataset.impl.TestFsDatasetImpl
            hadoop.TestRefreshCallQueue
            hadoop.hdfs.server.namenode.TestDecommissioningStatus



          Subsystem Report/Notes
          Docker Image:yetus/hadoop:fbe3e86
          JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12796480/HDFS-10242.1.patch
          JIRA Issue HDFS-10242
          Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle
          uname Linux ff3e809d46f6 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
          Build tool maven
          Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh
          git revision trunk / 3488c4f
          Default Java 1.7.0_95
          Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_74 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_95
          findbugs v3.0.0
          unit https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_74.txt
          unit https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_74.txt
          unit https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt
          unit test logs https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_74.txt https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_74.txt https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt
          JDK v1.7.0_95 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/15034/testReport/
          modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: .
          Console output https://builds.apache.org/job/PreCommit-HDFS-Build/15034/console
          Powered by Apache Yetus 0.2.0 http://yetus.apache.org

          This message was automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment 0 reexec 0m 17s Docker mode activated. +1 @author 0m 0s The patch does not contain any @author tags. +1 test4tests 0m 0s The patch appears to include 1 new or modified test files. 0 mvndep 0m 36s Maven dependency ordering for branch +1 mvninstall 7m 30s trunk passed +1 compile 8m 46s trunk passed with JDK v1.8.0_74 +1 compile 7m 48s trunk passed with JDK v1.7.0_95 +1 checkstyle 1m 10s trunk passed +1 mvnsite 2m 37s trunk passed +1 mvneclipse 0m 40s trunk passed +1 findbugs 5m 36s trunk passed +1 javadoc 2m 46s trunk passed with JDK v1.8.0_74 +1 javadoc 3m 37s trunk passed with JDK v1.7.0_95 0 mvndep 0m 16s Maven dependency ordering for patch +1 mvninstall 2m 17s the patch passed +1 compile 8m 48s the patch passed with JDK v1.8.0_74 +1 javac 8m 48s the patch passed +1 compile 7m 53s the patch passed with JDK v1.7.0_95 +1 javac 7m 53s the patch passed +1 checkstyle 1m 9s the patch passed +1 mvnsite 2m 37s the patch passed +1 mvneclipse 0m 38s the patch passed +1 whitespace 0m 0s Patch has no whitespace issues. +1 findbugs 6m 13s the patch passed +1 javadoc 2m 47s the patch passed with JDK v1.8.0_74 +1 javadoc 3m 38s the patch passed with JDK v1.7.0_95 -1 unit 9m 40s hadoop-common in the patch failed with JDK v1.8.0_74. +1 unit 1m 5s hadoop-hdfs-client in the patch passed with JDK v1.8.0_74. -1 unit 87m 5s hadoop-hdfs in the patch failed with JDK v1.8.0_74. +1 unit 9m 52s hadoop-common in the patch passed with JDK v1.7.0_95. +1 unit 1m 2s hadoop-hdfs-client in the patch passed with JDK v1.7.0_95. -1 unit 80m 26s hadoop-hdfs in the patch failed with JDK v1.7.0_95. +1 asflicense 0m 24s Patch does not generate ASF License warnings. 268m 51s Reason Tests JDK v1.8.0_74 Failed junit tests hadoop.net.TestClusterTopology   hadoop.hdfs.TestBlockStoragePolicy   hadoop.hdfs.server.namenode.ha.TestEditLogTailer   hadoop.hdfs.TestFileAppend   hadoop.TestRefreshCallQueue   hadoop.hdfs.TestRollingUpgrade   hadoop.hdfs.server.namenode.TestDecommissioningStatus   hadoop.hdfs.server.datanode.TestDirectoryScanner JDK v1.7.0_95 Failed junit tests hadoop.hdfs.server.datanode.fsdataset.impl.TestFsDatasetImpl   hadoop.TestRefreshCallQueue   hadoop.hdfs.server.namenode.TestDecommissioningStatus Subsystem Report/Notes Docker Image:yetus/hadoop:fbe3e86 JIRA Patch URL https://issues.apache.org/jira/secure/attachment/12796480/HDFS-10242.1.patch JIRA Issue HDFS-10242 Optional Tests asflicense compile javac javadoc mvninstall mvnsite unit findbugs checkstyle uname Linux ff3e809d46f6 3.13.0-36-lowlatency #63-Ubuntu SMP PREEMPT Wed Sep 3 21:56:12 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Build tool maven Personality /testptch/hadoop/patchprocess/precommit/personality/provided.sh git revision trunk / 3488c4f Default Java 1.7.0_95 Multi-JDK versions /usr/lib/jvm/java-8-oracle:1.8.0_74 /usr/lib/jvm/java-7-openjdk-amd64:1.7.0_95 findbugs v3.0.0 unit https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_74.txt unit https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_74.txt unit https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt unit test logs https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-common-project_hadoop-common-jdk1.8.0_74.txt https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.8.0_74.txt https://builds.apache.org/job/PreCommit-HDFS-Build/15034/artifact/patchprocess/patch-unit-hadoop-hdfs-project_hadoop-hdfs-jdk1.7.0_95.txt JDK v1.7.0_95 Test Results https://builds.apache.org/job/PreCommit-HDFS-Build/15034/testReport/ modules C: hadoop-common-project/hadoop-common hadoop-hdfs-project/hadoop-hdfs-client hadoop-hdfs-project/hadoop-hdfs U: . Console output https://builds.apache.org/job/PreCommit-HDFS-Build/15034/console Powered by Apache Yetus 0.2.0 http://yetus.apache.org This message was automatically generated.
          Hide
          ajisakaa Akira Ajisaka added a comment -

          +1, committing this.

          Show
          ajisakaa Akira Ajisaka added a comment - +1, committing this.
          Hide
          ajisakaa Akira Ajisaka added a comment -

          Committed this to trunk, branch-2, and branch-2.8. Thanks Takashi Ohnishi for the contribution.

          Show
          ajisakaa Akira Ajisaka added a comment - Committed this to trunk, branch-2, and branch-2.8. Thanks Takashi Ohnishi for the contribution.
          Hide
          bwtakacy Takashi Ohnishi added a comment -

          Thanks Akira Ajisaka for reviewing and comitting!

          Show
          bwtakacy Takashi Ohnishi added a comment - Thanks Akira Ajisaka for reviewing and comitting!
          Hide
          hudson Hudson added a comment -

          ABORTED: Integrated in Hadoop-trunk-Commit #9788 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9788/)
          HDFS-10242. Cannot create space quota of zero. Contributed by Takashi (aajisaka: rev 9fe5828f05accc6746cb08a43916f7557dac533a)

          • hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/QuotaUsage.java
          • hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestQuota.java
          • hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java
          Show
          hudson Hudson added a comment - ABORTED: Integrated in Hadoop-trunk-Commit #9788 (See https://builds.apache.org/job/Hadoop-trunk-Commit/9788/ ) HDFS-10242 . Cannot create space quota of zero. Contributed by Takashi (aajisaka: rev 9fe5828f05accc6746cb08a43916f7557dac533a) hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/QuotaUsage.java hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestQuota.java hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSClient.java

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development