diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java index 88ffee1a6ed6..f7b36f5246af 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java @@ -283,10 +283,10 @@ public static OMPathInfoWithFSO verifyDirectoryKeysInPath( * the directory search result code. */ public static class OMPathInfoWithFSO extends OMPathInfo { - private String leafNodeName; + private final String leafNodeName; + private final String fileExistsInPath; private long lastKnownParentId; private long leafNodeObjectId; - private String fileExistsInPath; public OMPathInfoWithFSO(String leafNodeName, long lastKnownParentId, List missingParents, OMDirectoryResult result, @@ -335,9 +335,9 @@ public String getFileExistsInPath() { * the directory search result code. */ public static class OMPathInfo { - private OMDirectoryResult directoryResult; - private List missingParents; - private List acls; + private final OMDirectoryResult directoryResult; + private final List missingParents; + private final List acls; public OMPathInfo(List missingParents, OMDirectoryResult result, List aclList) { @@ -346,7 +346,7 @@ public OMPathInfo(List missingParents, OMDirectoryResult result, this.acls = aclList; } - public List getMissingParents() { + public List getMissingParents() { return missingParents; } @@ -567,7 +567,8 @@ public static void addToOpenFileTable(OMMetadataManager omMetadataMgr, * @return multipartFileKey * @throws IOException DB failure */ - public static String addToOpenFileTable(OMMetadataManager omMetadataMgr, + public static String addToOpenFileTableForMultipart( + OMMetadataManager omMetadataMgr, BatchOperation batchOp, OmKeyInfo omFileInfo, String uploadID, long volumeId, long bucketId) throws IOException { diff --git a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/s3/multipart/S3InitiateMultipartUploadResponseWithFSO.java b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/s3/multipart/S3InitiateMultipartUploadResponseWithFSO.java index a380980dfa34..e92a886bae88 100644 --- a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/s3/multipart/S3InitiateMultipartUploadResponseWithFSO.java +++ b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/s3/multipart/S3InitiateMultipartUploadResponseWithFSO.java @@ -101,7 +101,8 @@ public void addToDBBatch(OMMetadataManager omMetadataManager, bucketKey, omBucketInfo); } - OMFileRequest.addToOpenFileTable(omMetadataManager, batchOperation, + OMFileRequest.addToOpenFileTableForMultipart(omMetadataManager, + batchOperation, getOmKeyInfo(), getOmMultipartKeyInfo().getUploadID(), volumeId, bucketId);