Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14505

"touchz" command should check quota limit before deleting an already existing file

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      HW15685:bin sbanerjee$ ./hdfs dfs -ls /dir2
      
      2019-05-21 15:14:01,080 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      
      Found 1 items
      
      -rw-r--r--   1 sbanerjee hadoop          0 2019-05-21 15:10 /dir2/file4
      
      
      HW15685:bin sbanerjee$ ./hdfs dfs -touchz /dir2/file4
      
      2019-05-21 15:14:12,247 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      
      touchz: The NameSpace quota (directories and files) of directory /dir2 is exceeded: quota=3 file count=5
      
      HW15685:bin sbanerjee$ ./hdfs dfs -ls /dir2
      
      2019-05-21 15:14:20,607 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      

      Here, the "touchz" command failed to create the file as the quota limit was hit, but ended up deleting the original file which existed. It should do the quota check before deleting the file so that after successful deletion, creation should succeed.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            hemanthboyina Hemanth Boyina Assign to me
            shashikant Shashikant Banerjee

            Dates

              Created:
              Updated:

              Slack

                Issue deployment