Repository navigation
HDDS-15879. [Ozone Versioning] [T1] Metadata foundation #10781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: HDDS-15728
Are you sure you want to change the base?
Changes from all commits
326471f
b61c47f
ebc2e92
2b6bfa0
640ddc2
b723516
8f6b1ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.hadoop.ozone.om.helpers; | ||
|
|
||
| import org.apache.hadoop.ozone.protocol.proto.OzoneManagerProtocolProtos.BucketVersioningStatusProto; | ||
|
|
||
| /** | ||
| * S3-compatible bucket versioning state machine: | ||
| * UNVERSIONED -> ENABLED <-> SUSPENDED. | ||
| * Once versioning has been enabled, a bucket can never return to UNVERSIONED. | ||
| */ | ||
| public enum BucketVersioningStatus { | ||
| UNVERSIONED, | ||
| ENABLED, | ||
| SUSPENDED; | ||
|
|
||
| public static BucketVersioningStatus fromProto(BucketVersioningStatusProto proto) { | ||
| switch (proto) { | ||
| case VERSIONING_ENABLED: | ||
| return ENABLED; | ||
| case VERSIONING_SUSPENDED: | ||
| return SUSPENDED; | ||
| case UNVERSIONED: | ||
| default: | ||
| return UNVERSIONED; | ||
| } | ||
| } | ||
|
|
||
| public BucketVersioningStatusProto toProto() { | ||
| switch (this) { | ||
| case ENABLED: | ||
| return BucketVersioningStatusProto.VERSIONING_ENABLED; | ||
| case SUSPENDED: | ||
| return BucketVersioningStatusProto.VERSIONING_SUSPENDED; | ||
| default: | ||
| return BucketVersioningStatusProto.UNVERSIONED; | ||
| } | ||
| } | ||
|
|
||
| /** The legacy isVersionEnabled flag value kept in sync with this status. */ | ||
| public boolean toVersionEnabledFlag() { | ||
| return this == ENABLED; | ||
| } | ||
|
|
||
| /** | ||
| * Whether a bucket may transition from this status to {@code target}. | ||
| * The only forbidden transition is back to UNVERSIONED after versioning | ||
| * has been enabled or suspended (matches the S3 state machine). | ||
| */ | ||
| public boolean canTransitionTo(BucketVersioningStatus target) { | ||
| return this == UNVERSIONED || target != UNVERSIONED; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -44,6 +44,11 @@ public final class OmBucketArgs extends WithMetadata implements Auditable { | |||||||||||||||||
| * Bucket Version flag. | ||||||||||||||||||
| */ | ||||||||||||||||||
| private final Boolean isVersionEnabled; | ||||||||||||||||||
| /** | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we make the isVersionEnabled deprecated on both this class and proto definition, and OmBucketInfo too, instead of support both fields with careful handling? If we want to have a isVersionEnabled check(unset & missing vs enabled&disabled, I prefer we implement a isVersionEnabled() function instead of have two fields which one has dependency or precedence to the other. |
||||||||||||||||||
| * S3-compatible versioning status; null when not being changed. | ||||||||||||||||||
| * Takes precedence over isVersionEnabled when both are set. | ||||||||||||||||||
| */ | ||||||||||||||||||
| private final BucketVersioningStatus versioningStatus; | ||||||||||||||||||
| /** | ||||||||||||||||||
| * Type of storage to be used for this bucket. | ||||||||||||||||||
| * [RAM_DISK, SSD, DISK, ARCHIVE] | ||||||||||||||||||
|
|
@@ -73,6 +78,7 @@ private OmBucketArgs(Builder b) { | |||||||||||||||||
| this.volumeName = b.volumeName; | ||||||||||||||||||
| this.bucketName = b.bucketName; | ||||||||||||||||||
| this.isVersionEnabled = b.isVersionEnabled; | ||||||||||||||||||
| this.versioningStatus = b.versioningStatus; | ||||||||||||||||||
| this.storageType = b.storageType; | ||||||||||||||||||
| this.ownerName = b.ownerName; | ||||||||||||||||||
| this.defaultReplicationConfig = b.defaultReplicationConfig; | ||||||||||||||||||
|
|
@@ -108,6 +114,14 @@ public Boolean getIsVersionEnabled() { | |||||||||||||||||
| return isVersionEnabled; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| /** | ||||||||||||||||||
| * Returns the requested versioning status, or null if not being changed. | ||||||||||||||||||
| * @return BucketVersioningStatus | ||||||||||||||||||
| */ | ||||||||||||||||||
| public BucketVersioningStatus getVersioningStatus() { | ||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tiny one: ozone/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmBucketArgs.java Lines 199 to 206 in f74c331
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated, PTAL. |
||||||||||||||||||
| return versioningStatus; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| /** | ||||||||||||||||||
| * Returns the type of storage to be used. | ||||||||||||||||||
| * @return StorageType | ||||||||||||||||||
|
|
@@ -190,6 +204,9 @@ public Map<String, String> toAuditMap() { | |||||||||||||||||
| getMetadata().get(OzoneConsts.GDPR_FLAG)); | ||||||||||||||||||
| auditMap.put(OzoneConsts.IS_VERSION_ENABLED, | ||||||||||||||||||
| String.valueOf(this.isVersionEnabled)); | ||||||||||||||||||
| if (this.versioningStatus != null) { | ||||||||||||||||||
| auditMap.put(OzoneConsts.VERSIONING_STATUS, this.versioningStatus.name()); | ||||||||||||||||||
| } | ||||||||||||||||||
| if (this.storageType != null) { | ||||||||||||||||||
| auditMap.put(OzoneConsts.STORAGE_TYPE, this.storageType.name()); | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
@@ -227,6 +244,7 @@ public static class Builder extends WithMetadata.Builder { | |||||||||||||||||
| private String volumeName; | ||||||||||||||||||
| private String bucketName; | ||||||||||||||||||
| private Boolean isVersionEnabled; | ||||||||||||||||||
| private BucketVersioningStatus versioningStatus; | ||||||||||||||||||
| private StorageType storageType; | ||||||||||||||||||
| private boolean quotaInBytesSet = false; | ||||||||||||||||||
| private long quotaInBytes; | ||||||||||||||||||
|
|
@@ -261,6 +279,11 @@ public Builder setIsVersionEnabled(Boolean versionFlag) { | |||||||||||||||||
| return this; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| public Builder setVersioningStatus(BucketVersioningStatus status) { | ||||||||||||||||||
| this.versioningStatus = status; | ||||||||||||||||||
| return this; | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| @Deprecated | ||||||||||||||||||
| public Builder setBucketEncryptionKey(BucketEncryptionKeyInfo info) { | ||||||||||||||||||
| if (info == null || info.getKeyName() != null) { | ||||||||||||||||||
|
|
@@ -339,6 +362,9 @@ public BucketArgs getProtobuf() { | |||||||||||||||||
| if (isVersionEnabled != null) { | ||||||||||||||||||
| builder.setIsVersionEnabled(isVersionEnabled); | ||||||||||||||||||
| } | ||||||||||||||||||
| if (versioningStatus != null) { | ||||||||||||||||||
| builder.setVersioningStatus(versioningStatus.toProto()); | ||||||||||||||||||
| } | ||||||||||||||||||
| if (storageType != null) { | ||||||||||||||||||
| builder.setStorageType(storageType.toProto()); | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
@@ -381,6 +407,10 @@ public static Builder builderFromProtobuf(BucketArgs bucketArgs) { | |||||||||||||||||
| if (bucketArgs.hasIsVersionEnabled()) { | ||||||||||||||||||
| builder.setIsVersionEnabled(bucketArgs.getIsVersionEnabled()); | ||||||||||||||||||
| } | ||||||||||||||||||
| if (bucketArgs.hasVersioningStatus()) { | ||||||||||||||||||
| builder.setVersioningStatus( | ||||||||||||||||||
| BucketVersioningStatus.fromProto(bucketArgs.getVersioningStatus())); | ||||||||||||||||||
| } | ||||||||||||||||||
| if (bucketArgs.hasStorageType()) { | ||||||||||||||||||
| builder.setStorageType(StorageType.valueOf(bucketArgs.getStorageType())); | ||||||||||||||||||
| } | ||||||||||||||||||
|
|
||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -59,9 +59,13 @@ public final class OmBucketInfo extends WithObjectID implements Auditable, CopyO | |||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||
| private final ImmutableList<OzoneAcl> acls; | ||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||
| * Bucket Version flag. | ||||||||||||||||||||||||||||||
| * Bucket Version flag, kept in sync with versioningStatus (ENABLED -> true). | ||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||
| private final boolean isVersionEnabled; | ||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||
| * S3-compatible versioning status; authoritative over isVersionEnabled. | ||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||
| private final BucketVersioningStatus versioningStatus; | ||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||
| * Type of storage to be used for this bucket. | ||||||||||||||||||||||||||||||
| * [RAM_DISK, SSD, DISK, ARCHIVE] | ||||||||||||||||||||||||||||||
|
|
@@ -118,7 +122,14 @@ private OmBucketInfo(Builder b) { | |||||||||||||||||||||||||||||
| this.volumeName = b.volumeName; | ||||||||||||||||||||||||||||||
| this.bucketName = b.bucketName; | ||||||||||||||||||||||||||||||
| this.acls = b.acls.build(); | ||||||||||||||||||||||||||||||
| this.isVersionEnabled = b.isVersionEnabled; | ||||||||||||||||||||||||||||||
| // A null versioningStatus means the bucket carries no S3 versioning status | ||||||||||||||||||||||||||||||
| // at all, mirroring the optional proto field: such a bucket is driven by the | ||||||||||||||||||||||||||||||
| // legacy isVersionEnabled flag alone. The flag is derived from the status | ||||||||||||||||||||||||||||||
| // only when a status was actually set, so that a legacy client enabling | ||||||||||||||||||||||||||||||
| // versioning does not silently opt an existing bucket into S3 versioning. | ||||||||||||||||||||||||||||||
| this.versioningStatus = b.versioningStatus; | ||||||||||||||||||||||||||||||
| this.isVersionEnabled = b.versioningStatus != null | ||||||||||||||||||||||||||||||
| ? b.versioningStatus.toVersionEnabledFlag() : b.isVersionEnabled; | ||||||||||||||||||||||||||||||
| this.storageType = b.storageType; | ||||||||||||||||||||||||||||||
| this.creationTime = b.creationTime; | ||||||||||||||||||||||||||||||
| this.modificationTime = b.modificationTime; | ||||||||||||||||||||||||||||||
|
|
@@ -173,6 +184,27 @@ public boolean getIsVersionEnabled() { | |||||||||||||||||||||||||||||
| return isVersionEnabled; | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||
| * Returns the S3-compatible versioning status; never null. A bucket that only | ||||||||||||||||||||||||||||||
| * carries the legacy isVersionEnabled flag is UNVERSIONED as far as S3 | ||||||||||||||||||||||||||||||
| * versioning is concerned: the legacy flag selects the in-record block version | ||||||||||||||||||||||||||||||
| * list, which is a different feature. | ||||||||||||||||||||||||||||||
| * @return BucketVersioningStatus | ||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||
| public BucketVersioningStatus getVersioningStatus() { | ||||||||||||||||||||||||||||||
| return versioningStatus != null | ||||||||||||||||||||||||||||||
| ? versioningStatus : BucketVersioningStatus.UNVERSIONED; | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||
| * Whether an S3 versioning status was explicitly set on this bucket, as | ||||||||||||||||||||||||||||||
| * opposed to the bucket carrying only the legacy isVersionEnabled flag. | ||||||||||||||||||||||||||||||
| * @return whether the optional status field is present | ||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||
| public boolean hasVersioningStatus() { | ||||||||||||||||||||||||||||||
| return versioningStatus != null; | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||
| * Returns the type of storage to be used. | ||||||||||||||||||||||||||||||
| * @return StorageType | ||||||||||||||||||||||||||||||
|
|
@@ -338,6 +370,8 @@ public Map<String, String> toAuditMap() { | |||||||||||||||||||||||||||||
| (this.acls != null) ? this.acls.toString() : null); | ||||||||||||||||||||||||||||||
| auditMap.put(OzoneConsts.IS_VERSION_ENABLED, | ||||||||||||||||||||||||||||||
| String.valueOf(this.isVersionEnabled)); | ||||||||||||||||||||||||||||||
| auditMap.put(OzoneConsts.VERSIONING_STATUS, | ||||||||||||||||||||||||||||||
| this.versioningStatus != null ? this.versioningStatus.name() : null); | ||||||||||||||||||||||||||||||
| auditMap.put(OzoneConsts.STORAGE_TYPE, | ||||||||||||||||||||||||||||||
| (this.storageType != null) ? this.storageType.name() : null); | ||||||||||||||||||||||||||||||
| auditMap.put(OzoneConsts.CREATION_TIME, String.valueOf(this.creationTime)); | ||||||||||||||||||||||||||||||
|
|
@@ -379,6 +413,7 @@ public Builder toBuilder() { | |||||||||||||||||||||||||||||
| .setBucketName(bucketName) | ||||||||||||||||||||||||||||||
| .setStorageType(storageType) | ||||||||||||||||||||||||||||||
| .setIsVersionEnabled(isVersionEnabled) | ||||||||||||||||||||||||||||||
| .setVersioningStatus(versioningStatus) | ||||||||||||||||||||||||||||||
| .setCreationTime(creationTime) | ||||||||||||||||||||||||||||||
| .setModificationTime(modificationTime) | ||||||||||||||||||||||||||||||
| .setBucketEncryptionKey(bekInfo) | ||||||||||||||||||||||||||||||
|
|
@@ -408,6 +443,11 @@ public OmBucketInfo withOperationalPropertiesFrom(OmBucketInfo source) { | |||||||||||||||||||||||||||||
| return toBuilder() | ||||||||||||||||||||||||||||||
| .setStorageType(source.getStorageType()) | ||||||||||||||||||||||||||||||
| .setIsVersionEnabled(source.getIsVersionEnabled()) | ||||||||||||||||||||||||||||||
| // Only when the real bucket actually carries a status: copying the | ||||||||||||||||||||||||||||||
| // value getVersioningStatus() derives for a legacy bucket would give | ||||||||||||||||||||||||||||||
| // the link an explicit status the real bucket does not have. | ||||||||||||||||||||||||||||||
| .setVersioningStatus(source.hasVersioningStatus() | ||||||||||||||||||||||||||||||
| ? source.getVersioningStatus() : null) | ||||||||||||||||||||||||||||||
| .setBucketEncryptionKey(source.getEncryptionKeyInfo()) | ||||||||||||||||||||||||||||||
| .setUsedBytes(source.getUsedBytes()) | ||||||||||||||||||||||||||||||
| .setUsedNamespace(source.getUsedNamespace()) | ||||||||||||||||||||||||||||||
|
|
@@ -430,6 +470,7 @@ public static class Builder extends WithObjectID.Builder<OmBucketInfo> { | |||||||||||||||||||||||||||||
| private String bucketName; | ||||||||||||||||||||||||||||||
| private final AclListBuilder acls; | ||||||||||||||||||||||||||||||
| private boolean isVersionEnabled; | ||||||||||||||||||||||||||||||
| private BucketVersioningStatus versioningStatus; | ||||||||||||||||||||||||||||||
| private StorageType storageType = StorageType.DISK; | ||||||||||||||||||||||||||||||
| private long creationTime; | ||||||||||||||||||||||||||||||
| private long modificationTime; | ||||||||||||||||||||||||||||||
|
|
@@ -486,11 +527,26 @@ public Builder addAcl(OzoneAcl ozoneAcl) { | |||||||||||||||||||||||||||||
| return this; | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| /** | ||||||||||||||||||||||||||||||
| * Sets the legacy flag only. It deliberately does not derive a | ||||||||||||||||||||||||||||||
| * versioningStatus: a legacy client enabling versioning must not opt the | ||||||||||||||||||||||||||||||
| * bucket into S3 versioning semantics. Deriving the status is the job of | ||||||||||||||||||||||||||||||
| * OMBucketSetPropertyRequest, where an actual state transition is requested. | ||||||||||||||||||||||||||||||
| */ | ||||||||||||||||||||||||||||||
| public Builder setIsVersionEnabled(boolean versionFlag) { | ||||||||||||||||||||||||||||||
| this.isVersionEnabled = versionFlag; | ||||||||||||||||||||||||||||||
| return this; | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| /** No-op when status is null (e.g. records without the new field). */ | ||||||||||||||||||||||||||||||
| public Builder setVersioningStatus(BucketVersioningStatus status) { | ||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice work keeping the two fields in sync here! One spot that looks left behind:
ozone/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java Lines 3059 to 3072 in b981afb
Since SUSPENDED maps to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch, Updated, PTAL. |
||||||||||||||||||||||||||||||
| if (status != null) { | ||||||||||||||||||||||||||||||
| this.versioningStatus = status; | ||||||||||||||||||||||||||||||
| this.isVersionEnabled = status.toVersionEnabledFlag(); | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
| return this; | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
| public Builder setStorageType(StorageType storage) { | ||||||||||||||||||||||||||||||
| this.storageType = storage; | ||||||||||||||||||||||||||||||
| return this; | ||||||||||||||||||||||||||||||
|
|
@@ -639,6 +695,12 @@ public BucketInfo getProtobuf() { | |||||||||||||||||||||||||||||
| .setQuotaInNamespace(quotaInNamespace) | ||||||||||||||||||||||||||||||
| .setSnapshotUsedBytes(snapshotUsedBytes) | ||||||||||||||||||||||||||||||
| .setSnapshotUsedNamespace(snapshotUsedNamespace); | ||||||||||||||||||||||||||||||
| // Written only when actually set, so that hasVersioningStatus() keeps | ||||||||||||||||||||||||||||||
| // telling a legacy-flag bucket apart from an S3-versioned one after a | ||||||||||||||||||||||||||||||
| // round trip through RocksDB. | ||||||||||||||||||||||||||||||
| if (versioningStatus != null) { | ||||||||||||||||||||||||||||||
| bib.setVersioningStatus(versioningStatus.toProto()); | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
| if (bucketLayout != null) { | ||||||||||||||||||||||||||||||
| bib.setBucketLayout(bucketLayout.toProto()); | ||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||
|
|
@@ -683,6 +745,9 @@ public static Builder builderFromProtobuf(BucketInfo bucketInfo, | |||||||||||||||||||||||||||||
| .setAcls(bucketInfo.getAclsList().stream().map( | ||||||||||||||||||||||||||||||
| OzoneAcl::fromProtobuf).collect(Collectors.toList())) | ||||||||||||||||||||||||||||||
| .setIsVersionEnabled(bucketInfo.getIsVersionEnabled()) | ||||||||||||||||||||||||||||||
| .setVersioningStatus(bucketInfo.hasVersioningStatus() | ||||||||||||||||||||||||||||||
| ? BucketVersioningStatus.fromProto(bucketInfo.getVersioningStatus()) | ||||||||||||||||||||||||||||||
| : null) | ||||||||||||||||||||||||||||||
| .setStorageType(StorageType.valueOf(bucketInfo.getStorageType())) | ||||||||||||||||||||||||||||||
| .setCreationTime(bucketInfo.getCreationTime()) | ||||||||||||||||||||||||||||||
| .setUsedBytes(bucketInfo.getUsedBytes()) | ||||||||||||||||||||||||||||||
|
|
@@ -789,6 +854,7 @@ public boolean equals(Object o) { | |||||||||||||||||||||||||||||
| bucketName.equals(that.bucketName) && | ||||||||||||||||||||||||||||||
| Objects.equals(acls, that.acls) && | ||||||||||||||||||||||||||||||
| Objects.equals(isVersionEnabled, that.isVersionEnabled) && | ||||||||||||||||||||||||||||||
| versioningStatus == that.versioningStatus && | ||||||||||||||||||||||||||||||
| storageType == that.storageType && | ||||||||||||||||||||||||||||||
| getObjectID() == that.getObjectID() && | ||||||||||||||||||||||||||||||
| getUpdateID() == that.getUpdateID() && | ||||||||||||||||||||||||||||||
|
|
@@ -817,6 +883,7 @@ public String toString() { | |||||||||||||||||||||||||||||
| ", bucketName='" + bucketName + "'" + | ||||||||||||||||||||||||||||||
| ", acls=" + acls + | ||||||||||||||||||||||||||||||
| ", isVersionEnabled=" + isVersionEnabled + | ||||||||||||||||||||||||||||||
| ", versioningStatus=" + versioningStatus + | ||||||||||||||||||||||||||||||
| ", storageType=" + storageType + | ||||||||||||||||||||||||||||||
| ", creationTime=" + creationTime + | ||||||||||||||||||||||||||||||
| ", bekInfo=" + bekInfo + | ||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this to isVersionEnabled?