From df7b7dadf94dbc196297c607ca87cbc87d72ee4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Fri, 8 Feb 2019 11:35:55 +0100 Subject: [PATCH] HDDS-1073. Fix FindBugs issues on OzoneBucketStub#createMultipartKey. Contributed by Aravindan Vijayan. --- .../java/org/apache/hadoop/ozone/client/OzoneBucketStub.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/client/OzoneBucketStub.java b/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/client/OzoneBucketStub.java index d036fe04c5..28213621c7 100644 --- a/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/client/OzoneBucketStub.java +++ b/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/client/OzoneBucketStub.java @@ -176,7 +176,7 @@ public OzoneOutputStream createMultipartKey(String key, long size, int partNumber, String uploadID) throws IOException { String multipartUploadID = multipartUploadIdMap.get(key); - if (multipartUploadID == null || multipartUploadID != uploadID) { + if (multipartUploadID == null || !multipartUploadID.equals(uploadID)) { throw new IOException("NO_SUCH_MULTIPART_UPLOAD_ERROR"); } else { ByteArrayOutputStream byteArrayOutputStream =