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

[Java] Fix instanceof RayPyActor #6377

Merged
merged 2 commits into from Dec 7, 2019

Conversation

kfstorm
Copy link
Member

@kfstorm kfstorm commented Dec 6, 2019

Why are these changes needed?

For a Java actor, the instanceof RayPyActor should be false. This is a bug introduced in #5370.

Related issue number

Checks

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@@ -37,7 +37,7 @@ public RayActor createActor(FunctionDescriptor functionDescriptor, List<Function
ActorCreationOptions options) {
byte[] actorId = nativeCreateActor(nativeCoreWorkerPointer, functionDescriptor, args,
options);
return new NativeRayActor(nativeCoreWorkerPointer, actorId);
return NativeRayActor.create(nativeCoreWorkerPointer, actorId);
Copy link
Contributor

Choose a reason for hiding this comment

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

We can tell the language from functionDescriptor, so it's not necessary to look up the language again in C++ (nativeGetLanguage).

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I've updated the code and removed nativeGetLanguage.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/19267/
Test FAILed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/19288/
Test PASSed.

@raulchen raulchen merged commit eb912b6 into ray-project:master Dec 7, 2019
@raulchen raulchen deleted the actor_interface_fix branch December 7, 2019 08:36
chaokunyang pushed a commit to alipay/ant-ray that referenced this pull request Dec 7, 2019
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.

None yet

4 participants