Skip to content
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-5119. Recon file count by size page has incorrect data when keys are deleted #3269

Merged
merged 5 commits into from Apr 6, 2022

Conversation

dombizita
Copy link
Contributor

What changes were proposed in this pull request?

In this change I fixed a bug in Recon. In the OMDBUpdatesHandler class when we process the events, if there were multiple actions on the same key the old value was not correct. The events are iterated upon before the actual Recon's OM copy DB is updated with these set of events. When we set the old value of the event's we set it from the DB, so after the second action the old value wasn't correct.

I changed it to get the old value from this batch if there were a previous event with the key. I did some refactoring in the TestOMDBUpdatesHandler and added a test case when we operate on the same entry in the same batch. In the OMDBUpdateEvent class I added the table to the hash method, as it was missing from there.

What is the link to the Apache JIRA

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

How was this patch tested?

Added integration tests.

@avijayanhwx avijayanhwx self-requested a review April 5, 2022 16:54
Copy link
Contributor

@fapifta fapifta left a comment

Choose a reason for hiding this comment

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

Hi @dombizita thank you for working on these changes, the changes look good to me.

Let's wait a bit for @avijayanhwx if he has any further comments, but if he does not have the time, I will merge the changes later on.

@fapifta fapifta merged commit aa68b9a into apache:master Apr 6, 2022
@fapifta
Copy link
Contributor

fapifta commented Apr 6, 2022

We have synced with @avijayanhwx offline, based on that I am merging the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants