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

   ## What changes were proposed in this pull request?
   
   Currently in case of IOException also OzoneManager terminates and not able 
to recover. In this PR handling IOException in runCommand in 
OzoneManagerStateMachine so that ozone manager runs normally. 
   Detail mentioned in below "patch tested" step when this can happen.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9074
   
   ## How was this patch tested?
   Verified locally using below steps:
   
   1. Create bucket bucket1
   2. Delete bucket bucket1 (Before Apply transaction) 
   3. Create key key1 inside bucket1 (Pre execute) 
   4. Delete bucket bucket1 (Apply transaction)
   5. Key1 create(During apply transaction)
   Calls `OzoneManagerRatisUtils.createClientRequest` which uses 
[getBucketLayout](https://github.com/apache/ozone/blob/e374aae82db1f39e666325d47fcd09a0392d0b70/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/BucketLayoutAwareOMKeyRequestFactory.java#L230)
   Since bucket is already deleted, it throws [Bucket Not 
Found](https://github.com/apache/ozone/blob/e374aae82db1f39e666325d47fcd09a0392d0b70/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManagerUtils.java#L143)
   Ozone manager 
[terminates](https://github.com/apache/ozone/blob/e374aae82db1f39e666325d47fcd09a0392d0b70/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/ratis/OzoneManagerStateMachine.java#L572)
 as it doesn't handle OMException.
   
   After fix It fails normally and ozone manager doesn't stop, And returns 
error message to client.
   


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