Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12365

Ozone: ListVolume displays incorrect createdOn time when the volume was created by OzoneRpcClient

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • HDFS-7240
    • None
    • ozone
    • None

    Description

      Reproduce steps

      1. Create a key in ozone with corona (this delegates the call to OzoneRpcClient), e.g

      [wwei@ozone1 hadoop-3.0.0-beta1-SNAPSHOT]$ ./bin/hdfs corona -numOfThreads 1 -numOfVolumes 1 -numOfBuckets 1 -numOfKeys 1
      

      2. Run listVolume

      [wwei@ozone1 hadoop-3.0.0-beta1-SNAPSHOT]$ ./bin/hdfs oz -listVolume http://localhost:9864 -user wwei
      {
        "owner" : {
          "name" : "wwei"
        },
        "quota" : {
          "unit" : "TB",
          "size" : 1048576
        },
        "volumeName" : "vol-0-31437",
        "createdOn" : "Thu, 01 Jan 1970 00:00:00 GMT",
        "createdBy" : null
      }
      {
        "owner" : {
          "name" : "wwei"
        },
        "quota" : {
          "unit" : "TB",
          "size" : 1048576
        },
        "volumeName" : "vol-0-38900",
        "createdOn" : "Thu, 01 Jan 1970 00:00:00 GMT",
        "createdBy" : null
      }
      

      Note, the time displayed in createdOn are both incorrect Thu, 01 Jan 1970 00:00:00 GMT.

      Attachments

        Activity

          People

            cheersyang Weiwei Yang
            cheersyang Weiwei Yang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: