HDDS-1073. Fix FindBugs issues on OzoneBucketStub#createMultipartKey. Contributed by Aravindan Vijayan.
This commit is contained in:
parent
0c1bc4dcee
commit
df7b7dadf9
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user