Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
renaudhartert-db committed Nov 14, 2024
1 parent 21c797b commit 6d2c183
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions databricks/sdk/_base_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ def _perform(self,
if error is not None:
# If the request body is a seekable stream, rewind it so that it is ready
# to be read again in case of a retry.
#
# TODO: This should be moved into a "before-retry" hook to avoid one
# unnecessary seek on the last failed retry before aborting.
if self._is_seekable_stream(data):
data.seek(initial_data_position)
raise error from None
Expand Down

0 comments on commit 6d2c183

Please sign in to comment.