Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-5672 Support protocol aware buckets within a single OM
  3. HDDS-6223

Ozone 1.1.0 client listKeys on FSO bucket returns empty list

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Implemented
    • 1.3.0
    • 1.3.0
    • Ozone Client, Ozone Manager
    • None

    Description

      Ozone 1.1.0 or earlier client gets empty list for listKeys operation on FSO bucket in 1.3.0 cluster.

      setup
      $ cd hadoop-ozone/dist/target/ozone-1.3.0-SNAPSHOT/compose/xcompat
      $ export COMPOSE_FILE=new-cluster.yaml:clients.yaml
      $ docker-compose up -d --scale datanode=3
      $ docker-compose exec new_client bash
      bash-4.2$ ozone freon ockg -n1 -t1 -p test
      bash-4.2$ ozone sh bucket info /vol1/bucket1
      {
        "metadata" : { },
        "volumeName" : "vol1",
        "name" : "bucket1",
        "storageType" : "DISK",
        "versioning" : false,
        "usedBytes" : 805306368,
        "usedNamespace" : 1,
        "creationTime" : "2022-01-25T18:02:35.564Z",
        "modificationTime" : "2022-01-25T18:02:35.564Z",
        "quotaInBytes" : -1,
        "quotaInNamespace" : -1,
        "bucketLayout" : "FILE_SYSTEM_OPTIMIZED",
        "owner" : "hadoop",
        "link" : false
      }
      bash-4.2$ ozone sh key list /vol1/bucket1
      [ {
        "volumeName" : "vol1",
        "bucketName" : "bucket1",
        "name" : "test/",
        "dataSize" : 0,
        "creationTime" : "2022-01-25T18:02:35.765Z",
        "modificationTime" : "2022-01-25T18:02:35.765Z",
        "replicationConfig" : {
          "replicationFactor" : "ONE",
          "requiredNodes" : 1,
          "replicationType" : "RATIS"
        },
        "replicationType" : "RATIS",
        "replicationFactor" : 1
      }, {
        "volumeName" : "vol1",
        "bucketName" : "bucket1",
        "name" : "test/0",
        "dataSize" : 10240,
        "creationTime" : "2022-01-25T18:02:35.765Z",
        "modificationTime" : "2022-01-25T18:02:38.545Z",
        "replicationConfig" : {
          "replicationFactor" : "THREE",
          "requiredNodes" : 3,
          "replicationType" : "RATIS"
        },
        "replicationType" : "RATIS",
        "replicationFactor" : 3
      } ]
      
      repro
      $ docker-compose exec old_client_1_0_0 ozone sh --verbose key list /vol1/bucket1
      Volume Name : vol1
      Bucket Name : bucket1
      Found : 0 keys for bucket bucket1 in volume : vol1
      

      Same happens with 1.1.0 client. 1.2.0+ client works fine. (These newer versions are being added in HDDS-6221.)

      Also, 1.1.0 client works fine if bucket layout is OBJECT_STORE.

      Attachments

        Issue Links

          Activity

            People

              jyotindersingh Jyotinder Singh
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: