Skip to content

Conversation

@bharatviswa504
Copy link
Contributor

What changes were proposed in this pull request?

Cleanup usage of VolumeArgs in Request/Response classes in Key requests.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-4581

How was this patch tested?

Existing tests.

Copy link
Contributor

@linyiqun linyiqun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor comments from me.
In additional, with compared the change in HDD-4308. S3MultipartUploadAbortRequest/TestS3MultipartUploadAbortRequest is missed updated here.

.collect(Collectors.toList());
omKeyInfo.appendNewBlocks(newLocationList, false);

omVolumeArgs = getVolumeInfo(omMetadataManager, volumeName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we not remove omVolumeArgs variable defined in this method?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed it, thanks for catching it.

long scmBlockSize = ozoneManager.getScmBlockSize();
int factor = omKeyInfo.getFactor().getNumber();
omVolumeArgs = getVolumeInfo(omMetadataManager, volumeName);
omBucketInfo = getBucketInfo(omMetadataManager, volumeName, bucketName);
Copy link
Contributor

@linyiqun linyiqun Dec 12, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment like above.

@bharatviswa504
Copy link
Contributor Author

Thank You @linyiqun for the review, addressed review comments in the latest update.

@linyiqun
Copy link
Contributor

linyiqun commented Dec 13, 2020

@bharatviswa504 , would you mind checking if the failed unit test related to this PR? If not, I am +1 for this PR.

Copy link
Member

@captainzmc captainzmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM over all, just one comment. CI failure may have nothing to do with this PR and we can retrigger it.

.collect(Collectors.toList());
omKeyInfo.appendNewBlocks(newLocationList, false);

omVolumeArgs = getVolumeInfo(omMetadataManager, volumeName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the use of the getVolumeInfo method has been removed, so getVolumeInfo should not be needed, we can delete it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@captainzmc captainzmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM.

Copy link
Contributor

@linyiqun linyiqun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1.

@captainzmc captainzmc merged commit e0ce757 into apache:master Dec 14, 2020
@captainzmc
Copy link
Member

Thanks for @bharatviswa504’s patch. Also thanks for the review of @linyiqun. Merged this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants