dombizita opened a new pull request, #3269:
URL: https://github.com/apache/ozone/pull/3269

   ## 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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to