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

ozone sh key put should only accept positive expectedGeneration

    XMLWordPrintableJSON

Details

    Description

      Atomic rewrite with expectedGeneration work on zero and negative values. This breaks the behaviour of rewrite with generation

      $ ozone sh key put vol1/buck1/ks.cfg anaconda-ks.cfg  --expectedGeneration=1
      NOT_SUPPORTED_OPERATION Feature disabled: ATOMIC_REWRITE_KEY
      
      $ ozone sh key put vol1/buck1/ks.cfg anaconda-ks.cfg  --expectedGeneration=-1
      ...
      
      $ ozone sh key info vol1/buck1/ks.cfg
      {
        "volumeName" : "vol1",
        "bucketName" : "buck1",
        "name" : "ks.cfg",
        ..
        "metadata" : { },
        "tags" : { },
        ..
        "generation" : 407,
        "file" : true
      }
      

      Also, a new metadata field has been added as part of this changeĀ "generation : <n>"

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              ssulav Soumitra Sulav
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: