-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-12159. Remove redundant seek for rocksDBs #7794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1955,19 +1955,15 @@ public Set<String> getMultipartUploadKeys( | |
| } | ||
| } | ||
|
|
||
| // prefixed iterator will only iterate until keys match the prefix | ||
| try (TableIterator<String, ? extends KeyValue<String, OmMultipartKeyInfo>> | ||
| iterator = getMultipartInfoTable().iterator()) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i don't see this one became a problem in my stacktrace, but it should be fixed too. There are 100+ of similar iterator usages. It would be a huge effort to try and update all of them.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jojochuang, we can split and do it in multiple PRs. One PR per module should be doable. |
||
| iterator.seek(prefixKey); | ||
| iterator = getMultipartInfoTable().iterator(prefixKey)) { | ||
|
|
||
| while (iterator.hasNext()) { | ||
| KeyValue<String, OmMultipartKeyInfo> entry = iterator.next(); | ||
| if (entry.getKey().startsWith(prefixKey)) { | ||
| // If it is marked for abort, skip it. | ||
| if (!aborted.contains(entry.getKey())) { | ||
| response.add(entry.getKey()); | ||
| } | ||
| } else { | ||
| break; | ||
| // If it is marked for abort, skip it. | ||
| if (!aborted.contains(entry.getKey())) { | ||
| response.add(entry.getKey()); | ||
| } | ||
| } | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.