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

View File

@ -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 =