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

Add basic concurrency test for ray client #14630

Merged
merged 6 commits into from
Mar 13, 2021
Merged

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Mar 11, 2021

No description provided.

@richardliaw
Copy link
Contributor

richardliaw commented Mar 11, 2021 via email

@richardliaw
Copy link
Contributor

richardliaw commented Mar 11, 2021 via email

@ericl ericl changed the title Make ray client thread-safe via global lock Add basic concurrency test for ray client Mar 11, 2021
@ericl
Copy link
Contributor Author

ericl commented Mar 11, 2021

Actually, I realized this is not needed since the client impl is actually thread-safe (added a simple test). I think your original issue is unrelated.

@AmeerHajAli AmeerHajAli requested a review from ijrsvt March 12, 2021 22:53
Copy link
Contributor

@AmeerHajAli AmeerHajAli left a comment

Choose a reason for hiding this comment

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

LGTM. Not sure though how it "fixes" the other issue (instead of verifying it works).

@ericl
Copy link
Contributor Author

ericl commented Mar 12, 2021

Sorry, it's actually not fixing the issue (fixed the description). This is just adding another test to avoid regressions on this front.

@AmeerHajAli AmeerHajAli added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Mar 12, 2021
time.sleep(1)

# Can concurrently execute the get.
assert ray.get(fast.remote(), timeout=5) == "ok"
Copy link
Contributor

Choose a reason for hiding this comment

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

OOC, will this introduce flakiness in an over-loaded test environment?

@ericl
Copy link
Contributor Author

ericl commented Mar 12, 2021 via email

@ijrsvt
Copy link
Contributor

ijrsvt commented Mar 12, 2021

@ericl 5 is probably fine, we can always bump in the future

Copy link
Contributor

@ijrsvt ijrsvt left a comment

Choose a reason for hiding this comment

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

LGTM

@ericl ericl merged commit 3bdcca7 into ray-project:master Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants