Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
HDDS-11408. Snapshot rename table entries are propagated incorrectly on snapshot deletes #7200
HDDS-11408. Snapshot rename table entries are propagated incorrectly on snapshot deletes #7200
Changes from 8 commits
0335ed2
53a5b5d
87ea520
6675538
96c3daa
535a6cd
7d49b64
f79c5c7
7124b1e
ae0085c
5fb5d8c
67b5a05
4b724fe
e2f0461
8600803
8b477b6
09b9523
7ee74dd
da7701f
b7380e1
e31c153
f6104fd
bc4de22
57d665a
075441b
c3a11a5
bd28a4c
1fd5f1d
d1c0a77
0d0e3e7
554e452
1aa55ff
364663c
9af1e99
0a8183d
73572ad
063f7b7
302491d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Is there a reason to return the List of Pairs and not the Map? If it is just to maintain the order, LinkedHashMap could be used. I feel that the map improves the readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no reason to creating another map since we are anyways going iterate over it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not asking to create another map. I'm saying the return type could be a map rather than a list of pairs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this null check?
tableIterator.hasNext()
should do that check?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No harm in having one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there is no harm but it isn't how an iterator is supposed to be used unless null is allowed value in the collection.