You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ashishkumar50 (via GitHub)" <gi...@apache.org> on 2023/07/25 06:10:42 UTC
[GitHub] [ozone] ashishkumar50 opened a new pull request, #5110: HDDS-9074. Ozone Manager terminated in CreateKey request due to bucket not found
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] ashishkumar50 commented on pull request #5110: HDDS-9074. Ozone Manager terminated in CreateKey request due to bucket not found
Posted by "ashishkumar50 (via GitHub)" <gi...@apache.org>.
ashishkumar50 commented on PR #5110:
URL: https://github.com/apache/ozone/pull/5110#issuecomment-1649181593
@sumitagrawl Please help to review.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sumitagrawl merged pull request #5110: HDDS-9074. Ozone Manager terminated in CreateKey request due to bucket not found
Posted by "sumitagrawl (via GitHub)" <gi...@apache.org>.
sumitagrawl merged PR #5110:
URL: https://github.com/apache/ozone/pull/5110
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org