Skip to content

Commit

Permalink
Handle more DeadlineReached exceptions from ObjectStorageApi
Browse files Browse the repository at this point in the history
  • Loading branch information
fvennetier committed May 15, 2019
1 parent dfe0186 commit 895fa98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oioswift/proxy/controllers/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ def _link_object(self, req):
raise HTTPClientDisconnect(request=req)
except exceptions.EtagMismatch:
return HTTPUnprocessableEntity(request=req)
except (exceptions.ServiceBusy, exceptions.OioTimeout):
except (exceptions.ServiceBusy, exceptions.OioTimeout,
exceptions.DeadlineReached):
raise
except (exceptions.NoSuchContainer, exceptions.NotFound):
raise HTTPNotFound(request=req)
Expand Down Expand Up @@ -597,7 +598,8 @@ def _store_object(self, req, data_source, headers):
raise HTTPClientDisconnect(request=req)
except exceptions.EtagMismatch:
return HTTPUnprocessableEntity(request=req)
except (exceptions.ServiceBusy, exceptions.OioTimeout):
except (exceptions.ServiceBusy, exceptions.OioTimeout,
exceptions.DeadlineReached):
raise
except exceptions.NoSuchContainer:
raise HTTPNotFound(request=req)
Expand Down

0 comments on commit 895fa98

Please sign in to comment.