Skip to content

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

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

[Java] Add fetchLocal parameter in Ray.wait()#13604
kfstorm merged 4 commits intoray-project:masterfrom
antgroup:java_fetch_local

Conversation

@kfstorm
Copy link
Member

@kfstorm kfstorm commented Jan 21, 2021

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

  • 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

@stephanie-wang stephanie-wang left a comment

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
Contributor

Looks like there might be travis errors.

@stephanie-wang stephanie-wang added the @author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. label Jan 21, 2021
@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

@author-action-required The PR author is responsible for the next step. Remove tag to send back to the reviewer. java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants