Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-426

Add field modificationTime for Volume and Bucket

    XMLWordPrintableJSON

Details

    Description

      There are update operations that can be performed for Volume, Bucket and Key.

      While Key records the modification time, Volume and & Bucket do not capture this.

       

      This Jira proposes to add the required field to Volume and Bucket in order to capture the modficationTime.
      (The modification time of this Jira only applies to volume/bucket metadata modification itself, not covering key changes under the volume bucket.)
       

      Current Status:

      hadoop@1987b5de4203:~$ ./bin/ozone oz -infoVolume /dummyvol
      2018-09-10 17:16:12 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      {
      "owner" : {
      "name" : "bilbo"
      },
      "quota" : {
      "unit" : "TB",
      "size" : 1048576
      },
      "volumeName" : "dummyvol",
      "createdOn" : "Mon, 10 Sep 2018 17:11:32 GMT",
      "createdBy" : "bilbo"
      }
      
      hadoop@1987b5de4203:~$ ./bin/ozone oz -infoBucket /dummyvol/mybuck
      2018-09-10 17:15:25 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      {
      "volumeName" : "dummyvol",
      "bucketName" : "mybuck",
      "createdOn" : "Mon, 10 Sep 2018 17:12:09 GMT",
      "acls" : [ {
      "type" : "USER",
      "name" : "hadoop",
      "rights" : "READ_WRITE"
      }, {
      "type" : "GROUP",
      "name" : "users",
      "rights" : "READ_WRITE"
      }, {
      "type" : "USER",
      "name" : "spark",
      "rights" : "READ_WRITE"
      } ],
      "versioning" : "DISABLED",
      "storageType" : "DISK"
      }
      
      hadoop@1987b5de4203:~$ ./bin/ozone oz -infoKey /dummyvol/mybuck/myk1
      2018-09-10 17:19:43 WARN NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
      {
      "version" : 0,
      "md5hash" : null,
      "createdOn" : "Mon, 10 Sep 2018 17:19:04 GMT",
      "modifiedOn" : "Mon, 10 Sep 2018 17:19:04 GMT",
      "size" : 0,
      "keyName" : "myk1",
      "keyLocations" : [ ]
      }

      Attachments

        1. bucketCreate.png
          49 kB
          Yi-Sheng Lien
        2. volUpdateQuota.png
          125 kB
          Yi-Sheng Lien
        3. volUpdateUser.png
          123 kB
          Yi-Sheng Lien
        4. volCreate.png
          67 kB
          Yi-Sheng Lien

        Issue Links

          Activity

            People

              cxorm Yi-Sheng Lien
              dineshchitlangia Dinesh Chitlangia
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m