You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/09/10 12:29:00 UTC

[jira] [Updated] (HDDS-11441) ATOMIC_REWRITE_KEY works with negative generation value

     [ https://issues.apache.org/jira/browse/HDDS-11441?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Attila Doroszlai updated HDDS-11441:
------------------------------------
    Description: 
Atomic rewrite with expectedGeneration work on zero and negative values. This breaks the behaviour of rewrite with generation

{code:java}
$ 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
}
{code}

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

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

{code:java}
[root@ccycloud-1.quasar-wjvbac.root.comops.site ~]# ozone sh key put vol1/buck1/ks.cfg anaconda-ks.cfg  --expectedGeneration=-1
24/09/10 09:07:04 WARN impl.MetricsConfig: Cannot locate configuration: tried hadoop-metrics2-xceiverclientmetrics.properties,hadoop-metrics2.properties
24/09/10 09:07:04 INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period at 10 second(s).
24/09/10 09:07:04 INFO impl.MetricsSystemImpl: XceiverClientMetrics metrics system started
24/09/10 09:07:04 INFO scm.XceiverClientRatis: WatchType ALL_COMMITTED. Majority 2,
24/09/10 09:07:04 INFO netty.NettyConfigKeys$DataStream: setTlsConf GrpcTlsConfig0-
24/09/10 09:07:04 INFO metrics.MetricRegistries: Loaded MetricRegistries class org.apache.ratis.metrics.dropwizard3.Dm3MetricRegistriesImpl
[root@ccycloud-1.quasar-wjvbac.root.comops.site ~]# ozone sh key put vol1/buck1/ks.cfg anaconda-ks.cfg  --expectedGeneration=1
NOT_SUPPORTED_OPERATION Feature disabled: ATOMIC_REWRITE_KEY

[root@ccycloud-1.quasar-wjvbac.root.comops.site ~]# ozone sh key info vol1/buck1/ks.cfg
{
  "volumeName" : "vol1",
  "bucketName" : "buck1",
  "name" : "ks.cfg",
  ..
  "metadata" : { },
  "tags" : { },
  ..
  "generation" : 407,
  "file" : true
}
{code}
Also, a new metadata field has been added as part of this change {{"generation : <n>"}}


> ATOMIC_REWRITE_KEY works with negative generation value
> -------------------------------------------------------
>
>                 Key: HDDS-11441
>                 URL: https://issues.apache.org/jira/browse/HDDS-11441
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: Ozone Manager
>            Reporter: Soumitra Sulav
>            Assignee: Attila Doroszlai
>            Priority: Critical
>
> Atomic rewrite with expectedGeneration work on zero and negative values. This breaks the behaviour of rewrite with generation
> {code:java}
> $ 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
> }
> {code}
> Also, a new metadata field has been added as part of this change {{"generation : <n>"}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org