Skip to content

Commit 2ec81dd

Browse files
committed
chore: rename LIFECYCLE_SUPPORT
1 parent 84153b1 commit 2ec81dd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/lifecycle/OMLifecycleConfigurationDeleteRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager, Execut
183183
public static OMRequest disallowDeleteLifecycleConfigurationBeforeFinalization(
184184
OMRequest req, ValidationContext ctx) throws OMException {
185185
if (!ctx.versionManager()
186-
.isAllowed(OMLayoutFeature.LIFECYCLE_SUPPORT)) {
187-
throw new OMException("Cluster does not have the Lifecycle Support"
186+
.isAllowed(OMLayoutFeature.S3_LIFECYCLE_SUPPORT)) {
187+
throw new OMException("Cluster does not have the S3 Lifecycle Support"
188188
+ " feature finalized yet. Rejecting the request to delete lifecycle"
189189
+ " configuration. Please finalize the cluster upgrade and then try again.",
190190
OMException.ResultCodes.NOT_SUPPORTED_OPERATION_PRIOR_FINALIZATION);

hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/lifecycle/OMLifecycleConfigurationSetRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager, Execut
205205
public static OMRequest disallowSetLifecycleConfigurationBeforeFinalization(
206206
OMRequest req, ValidationContext ctx) throws OMException {
207207
if (!ctx.versionManager()
208-
.isAllowed(OMLayoutFeature.LIFECYCLE_SUPPORT)) {
209-
throw new OMException("Cluster does not have the Lifecycle Support"
208+
.isAllowed(OMLayoutFeature.S3_LIFECYCLE_SUPPORT)) {
209+
throw new OMException("Cluster does not have the S3 Lifecycle Support"
210210
+ " feature finalized yet. Rejecting the request to set lifecycle"
211211
+ " configuration. Please finalize the cluster upgrade and then try again.",
212212
OMException.ResultCodes.NOT_SUPPORTED_OPERATION_PRIOR_FINALIZATION);

hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/upgrade/OMLayoutFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public enum OMLayoutFeature implements LayoutFeature {
4747
HBASE_SUPPORT(7, "Full support of hsync, lease recovery and listOpenFiles APIs for HBase"),
4848
DELEGATION_TOKEN_SYMMETRIC_SIGN(8, "Delegation token signed by symmetric key"),
4949
SNAPSHOT_DEFRAG(9, "Supporting defragmentation of snapshot"),
50-
LIFECYCLE_SUPPORT(10, "Life Cycle configuration");
50+
S3_LIFECYCLE_SUPPORT(10, "S3 bucket lifecycle configuration support");
5151

5252
/////////////////////////////// /////////////////////////////
5353
// Example OM Layout Feature with Actions

0 commit comments

Comments
 (0)