Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Data] Retry write if error during file clean up #42326

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

bveeramani
Copy link
Member

@bveeramani bveeramani commented Jan 11, 2024

Why are these changes needed?

We already do retries if an error happens during the actual write or when a file is opened. But, you can get an error when the file closes (specifically, when the NativeFile context closes), and that isn't retried.

To fix this issue, this PR updates our logic to increase the scope of retries.

Related issue number

Fixes #42287

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: Balaji Veeramani <balaji@anyscale.com>
Comment on lines +88 to +90
def open_output_stream(self, path: str) -> "pyarrow.NativeFile":
return self.filesystem.open_output_stream(path, **self.open_stream_args)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introduced this method as a seam for testing

Copy link
Contributor

@raulchen raulchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bveeramani bveeramani merged commit 390f5f0 into ray-project:master Jan 11, 2024
9 checks passed
@bveeramani bveeramani deleted the more-retries branch January 11, 2024 04:05
@bveeramani bveeramani added the release-blocker P0 Issue that blocks the release label Jan 11, 2024
bveeramani added a commit to bveeramani/ray that referenced this pull request Jan 11, 2024
We already do retries if an error happens during the actual write or when a file is opened. But, you can get an error when the file closes (specifically, when the NativeFile context closes), and that isn't retried.

To fix this issue, this PR updates our logic to increase the scope of retries.

Signed-off-by: Balaji Veeramani <balaji@anyscale.com>
can-anyscale pushed a commit that referenced this pull request Jan 11, 2024
We already do retries if an error happens during the actual write or when a file is opened. But, you can get an error when the file closes (specifically, when the NativeFile context closes), and that isn't retried.

To fix this issue, this PR updates our logic to increase the scope of retries.

Signed-off-by: Balaji Veeramani <balaji@anyscale.com>
vickytsang pushed a commit to ROCm/ray that referenced this pull request Jan 12, 2024
We already do retries if an error happens during the actual write or when a file is opened. But, you can get an error when the file closes (specifically, when the NativeFile context closes), and that isn't retried.

To fix this issue, this PR updates our logic to increase the scope of retries.

Signed-off-by: Balaji Veeramani <balaji@anyscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-blocker P0 Issue that blocks the release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data] write task failure retry should cover the entire write tasks
2 participants