Skip to content

Comments

HDDS-4683. [FSO]ListKeys: do lookup in dir and file tables#1954

Merged
rakeshadr merged 6 commits intoapache:HDDS-2939from
rakeshadr:HDDS-4683-01
Feb 26, 2021
Merged

HDDS-4683. [FSO]ListKeys: do lookup in dir and file tables#1954
rakeshadr merged 6 commits intoapache:HDDS-2939from
rakeshadr:HDDS-4683-01

Conversation

@rakeshadr
Copy link
Contributor

What changes were proposed in this pull request?

This task is to perform #listKeys by searching the startKey, keyPrefix in Dir & File Tables.

What is the link to the Apache JIRA

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

How was this patch tested?

Added only one UT now. I will add more test cases. I'm thinking something like large dirs and sub-dirs/files.

Also, there is an open point: #listKeys("key-a-"), basically partial keyName and startKey. For example, actual keyName stored in DB are "key-a-10", "key-a-11", "key-a-12"..."key-z-10", "key-z-11", "key-z-12".

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.

@rakeshadr , haven't taken a deep review for this PR, but catch one thing makes me a little confused.

@rakeshadr
Copy link
Contributor Author

FYI, raised HDDS-4859 jira to handle the back and forth search.

@linyiqun
Copy link
Contributor

@rakeshadr , the PR looks good to me now. Please check above minor comment.

@rakeshadr
Copy link
Contributor Author

@rakeshadr , the PR looks good to me now. Please check above minor comment.

Thanks a lot @linyiqun for the review comments. I will wait for QA report and then merge it.

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.

2 participants