HDDS-1073. Fix FindBugs issues on OzoneBucketStub#createMultipartKey. Contributed by Aravindan Vijayan.

This commit is contained in:
Márton Elek 2019-02-08 11:35:55 +01:00
parent 0c1bc4dcee
commit df7b7dadf9
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ public class OzoneBucketStub extends OzoneBucket {
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 =