bharatviswa504 commented on pull request #2433:
URL: https://github.com/apache/ozone/pull/2433#issuecomment-883041040


   > Note: @bharatviswa504 has been also working on this concurrently in #2432 .
   
   As mentioned in the Jira, my PR addresses during key create return only 
latest version of key. 
   
   Key1 create - Blocks Version0 B1(0), B2(0), B3(0)
   
   1st time override
   Key1 override - Version0 -> B1(0), B2(0), B3(0), Version1 -> B1(0), B2(0), 
B3(0), New Blocks for this version (B4(1), B5(1), B6(1))
   
   2nd time override
   Key1 override - Version0 B1(0), B2(0), B3(0), Version1 -> B1(0), B2(0), 
B3(0), New Blocks for this version (B4(1), B5(1), B6(1)), Version 2 -> B1(0), 
B2(0), B3(0), B4(1), B5(1), B6(1), B7(2), B8(2), B9(2)
   
   So, the problem is each time a key is override, each version has its version 
of blocks along with all older versions.
   
   So, now when key create it returns all this versions. So, the list can 
become huge in size, depending on number of times key is override. In this 
patch I will fix to return latest version for create key. 
   
   >(I will open a new Jira to discuss about having each version including all 
its previous version)
   
   This PR is proposing to solve the 2nd part of the problem.


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