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
Conversation
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); |
There was a problem hiding this comment.
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
).
There was a problem hiding this comment.
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
.
Test FAILed. |
Test PASSed. |
Why are these changes needed?
For a Java actor, the
instanceof RayPyActor
should befalse
. This is a bug introduced in #5370.Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.