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

[Tune] Fix storage client creation when sync function tpl is not provided (#26714) #26717

Conversation

rohit-annigeri
Copy link

Why are these changes needed?

It solves issue of restore from object failing to work during ray tune with sync config and PBT scheduler.

Related issue number

Closes #26714

Checks

  • 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 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 :(

Copy link
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

Thanks @rohit-annigeri - actually that part is correct. Your change will use the legacy sync client which is deprecated and even removed on master.

The correct fix here is to not try to sync the directory if it already exists locally. This regression actually exists in master as well. Here is a draft PR fixing it: #26725
I'll add tests to that PR to make sure this doesn't come up again and that everything works.

Could you apply that patch to 1.13.0 and see if it fixes your problem?

Thanks!

@rohit-annigeri
Copy link
Author

rohit-annigeri commented Jul 19, 2022

Could you apply that patch to 1.13.0 and see if it fixes your problem?
So that would merge to releases/1.13.0 ?
Also verified that my fix solves the problem.

@rohit-annigeri rohit-annigeri changed the base branch from releases/1.13.1 to releases/1.13.0 July 19, 2022 20:11
@krfricke
Copy link
Contributor

krfricke commented Jul 19, 2022

I mean if you apply the changes from #26725 to releases/1.13.0, does that also solve the problem?

The current fix in this PR disables syncing via pyarrow fs completely (as self.uses_cloud_checkpointing will be True), which is a regression.

The correct location to add the check would be at https://github.com/ray-project/ray/blob/releases/1.13.0/python/ray/tune/trainable.py#L536 to not trigger syncing if the directory already exists.

I can also update this PR if you prefer.

We will have to open it for releases/1.13.1 in any case. I see you already updated that, thanks!

Thanks!

@rohit-annigeri
Copy link
Author

I think I follow. I've updated the PR to reflect the change. Let me know if it makes sense. Not really sure if this is the best way to handle the exception

@rohit-annigeri
Copy link
Author

One side affect while "fixing" this, now it seems to sync all tmp43save_to_object folders to s3 as well.

image

@rohit-annigeri rohit-annigeri changed the base branch from releases/1.13.0 to releases/1.13.1 July 20, 2022 17:34
@krfricke krfricke self-assigned this Jul 21, 2022
Copy link
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

This looks good to me. We will merge this once we commence work on 1.13.1. I may update this PR with test cases when updating #26725

Signed-off-by: Kai Fricke <[email protected]>
@stale
Copy link

stale bot commented Sep 8, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

  • If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@stale stale bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Sep 8, 2022
@rohit-annigeri
Copy link
Author

hey @krfricke is this PR still good to go ?

@stale stale bot removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Sep 9, 2022
@stale
Copy link

stale bot commented Oct 9, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

  • If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@stale stale bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Oct 9, 2022
@krfricke
Copy link
Contributor

Generally yes, but there is currently no timeline for 1.13.1

@stale stale bot removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Oct 29, 2022
@stale
Copy link

stale bot commented Nov 28, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

  • If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@stale stale bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Nov 28, 2022
@pcmoritz pcmoritz deleted the branch ray-project:releases/1.13.1 December 7, 2022 04:45
@pcmoritz pcmoritz closed this Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale The issue is stale. It will be closed within 7 days unless there are further conversation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants