Skip to content

[Java] Add fetchLocal parameter in Ray.wait() - #13604

Merged
kfstorm merged 4 commits into
ray-project:masterfrom
antgroup:java_fetch_local
Jan 22, 2021
Merged

kfstorm merged 4 commits into
ray-project:masterfrom
antgroup:java_fetch_local

Conversation

@kfstorm

@kfstorm kfstorm commented Jan 21, 2021 •

Copy link
Copy Markdown
Member

Why are these changes needed?

#12526 introduced fetch_local for ray.wait(), but it forgot to update Java API and the JNI function signature of nativeWait doesn't match the one in Java code. So the fetch_local value of JNI function nativeWait is undefined.

To prevent this kind of issue in future, I also added a check in java/test.sh to make sure that the generated JNI header files match the native method definitions in Java.

Related issue number

Checks

@stephanie-wang stephanie-wang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@stephanie-wang

Copy link
Copy Markdown
Contributor

Looks like there might be travis errors.

@kfstorm
kfstorm merged commit 90f1e40 into ray-project:master Jan 22, 2021
@kfstorm
kfstorm deleted the java_fetch_local branch January 22, 2021 09:55
fishbone pushed a commit to fishbone/ray that referenced this pull request Feb 16, 2021
fishbone added a commit to fishbone/ray that referenced this pull request Feb 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants