bharatviswa504 opened a new pull request #609: HDDS-3069. UpdateID check should 
be skipped for non-HA OzoneManager.
URL: https://github.com/apache/hadoop-ozone/pull/609
 
 
   ## What changes were proposed in this pull request?
   
   Donot have precondition check of updateID in non-HA OM cluster.
   
   // Because in non-HA, we have multiple rpc handler threads and
       // transactionID is generated in OzoneManagerServerSideTranslatorPB.
   
       // Lets take T1 -> Set Bucket Property
       // T2 -> Set Bucket Acl
   
       // Now T2 got lock first, so updateID will be set to 2. Now when T1 gets
       // executed we will hit the precondition exception. So for OM non-HA with
       // out ratis we should not have this check.
   
       // Same can happen after OM restart also.
   
       // OM Start
       // T1 -> Create Bucket
       // T2 -> Set Bucket Property
   
       // OM restart
       // T1 -> Set Bucket Acl
   
       // So when T1 is executing, Bucket will have updateID 2 which is set by 
T2
       // execution before restart.
   
       // Main reason, in non-HA transaction Index after restart starts from 0.
       // And also because of this same reason we don't do replay checks in 
non-HA.
   
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-3069
   
   ## How was this patch tested?
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to