diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java index 8a21fdfa377..f2ea5fbfeb7 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequest.java @@ -558,7 +558,7 @@ public static OMRequest blockCommitKeyWithBucketLayoutFromOldClient( public static OMRequest disallowHsync( OMRequest req, ValidationContext ctx) throws OMException { if (!ctx.versionManager() - .isAllowed(OMLayoutFeature.HSYNC)) { + .isAllowed(OMLayoutFeature.HBASE_SUPPORT)) { CommitKeyRequest commitKeyRequest = req.getCommitKeyRequest(); boolean isHSync = commitKeyRequest.hasHsync() && commitKeyRequest.getHsync(); diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/upgrade/OMLayoutFeature.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/upgrade/OMLayoutFeature.java index 7cdff8f5c11..5a62a7cfc62 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/upgrade/OMLayoutFeature.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/upgrade/OMLayoutFeature.java @@ -40,6 +40,7 @@ public enum OMLayoutFeature implements LayoutFeature { MULTITENANCY_SCHEMA(3, "Multi-Tenancy Schema"), + @Deprecated HSYNC(4, "Support hsync"), FILESYSTEM_SNAPSHOT(5, "Ozone version supporting snapshot"),