-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Fix crash for Java task's task.argument()
in state.
#4063
Conversation
c558356
to
a40d893
Compare
Test FAILed. |
Test PASSed. |
Test PASSed. |
570ca8b
to
385455d
Compare
Test PASSed. |
Test PASSed. |
385455d
to
c49112c
Compare
Test FAILed. |
python/ray/experimental/state.py
Outdated
# to Java object in `task.arguments()`. | ||
"Args": (task.arguments() | ||
if task.language() == ray.gcs_utils.Language.PYTHON else | ||
"<java-argument>"), |
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.
"<java-argument>"
-> ["<java-argument>"]
this should be a list
Test FAILed. |
The CI complained about a linting error which is not related to my changes... |
I think the linting change should be fixed in the master. Maybe rebase? |
69d9a7d
to
f335297
Compare
I have rebased current master. :) |
Test FAILed. |
python/ray/experimental/state.py
Outdated
# to Java object in `task.arguments()`. | ||
"Args": (task.arguments() | ||
if task.language() == ray.gcs_utils.Language.PYTHON else | ||
["<java-argument>"]), |
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.
I think we should fix this issue inside the arguments
method, otherwise if someone else calls arguments
, it will also crash.
Test FAILed. |
Test FAILed. |
Test FAILed. |
What do these changes do?
Since
pickle.loads()
couldn't load the data to a Java object, skiping it for Java object does make sense.Related issue number
This fixes #3780