Skip to content

Conversation

@rakeshadr
Copy link
Contributor

What changes were proposed in this pull request?

This task is to use open file table for the allocate block operations. This has been identified as part of Hive TPCDS benchmark test

What is the link to the Apache JIRA

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

How was this patch tested?

Added UT cases. Also, verified by running hive tpcds test

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.

Please address below minor comment and fix failed unit test, : ).

@rakeshadr
Copy link
Contributor Author

Please address below minor comment and fix failed unit test, : ).

TestOzoneFileSystemV1#testListStatusOnLargeDirectory is failing in the build, interestingly it is passing consistently in my local env. Added log messages to debug it. Will monitor the results in next build.

@rakeshadr
Copy link
Contributor Author

@linyiqun I've addressed your comments. Could you please review it again when you get a chance. Thanks!

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.
Thanks for addressing the comments, @rakeshadr .

Copy link
Contributor

@bharatviswa504 bharatviswa504 left a comment

Choose a reason for hiding this comment

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

Overall LGTM, few comments.

private static void checkDirectoryAlreadyExists(String keyName,
OzoneManager ozoneManager, boolean reachedLastPathComponent)
throws IOException {
// Reached last component, which would be a file. Returns its parentID.
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor: Comment says Returns its parentID.

In code we just check if lastComponent is true and fileSystem enabled, we return exception.

And also as current V1 always assumes fs enabled true, do we need && ozoneManager.getEnableFileSystemPaths() check?

And also these 3 lines can be in the calling method, as it is not a utility method which is called by different classes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed, Done the changes!

omClientResponse = new OMAllocateBlockResponse(omResponse.build(),
openKeyInfo, clientID, omVolumeArgs, omBucketInfo.copyObject());

omClientResponse = getOmClientResponse(clientID, omResponse,
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't update omVolumeArgs, but still reading and passing to Response, which is not required.
Not related to your patch BTW, we can fix this in master and get to branch.

Copy link
Contributor

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

@rakeshadr
Copy link
Contributor Author

Thank you @linyiqun , @bharatviswa504 for the useful review comments. Merging it to the feature branch.

@rakeshadr rakeshadr merged commit 9618c5f into apache:HDDS-2939 Dec 22, 2020
rakeshadr added a commit that referenced this pull request Jan 6, 2021
rakeshadr added a commit that referenced this pull request Jan 11, 2021
rakeshadr added a commit that referenced this pull request Jan 13, 2021
rakeshadr added a commit that referenced this pull request Jan 25, 2021
rakeshadr added a commit that referenced this pull request Jan 28, 2021
rakeshadr added a commit that referenced this pull request Feb 1, 2021
rakeshadr added a commit that referenced this pull request Feb 1, 2021
rakeshadr added a commit that referenced this pull request Feb 3, 2021
rakeshadr added a commit that referenced this pull request Feb 5, 2021
rakeshadr added a commit that referenced this pull request Feb 15, 2021
rakeshadr added a commit that referenced this pull request Feb 18, 2021
rakeshadr added a commit that referenced this pull request Feb 25, 2021
rakeshadr added a commit that referenced this pull request Mar 3, 2021
rakeshadr added a commit that referenced this pull request Mar 9, 2021
rakeshadr added a commit that referenced this pull request Mar 27, 2021
rakeshadr added a commit that referenced this pull request Apr 7, 2021
rakeshadr added a commit that referenced this pull request Apr 8, 2021
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