ray/java
WanXing Wang 72bd2d7e09
[Core] Support back pressure for actor tasks. (#20894)
Resubmit the PR https://github.com/ray-project/ray/pull/19936

I've figure out that the test case `//rllib:tests/test_gpus::test_gpus_in_local_mode` failed due to deadlock in local mode.
In local mode, if the user code submits another task during the executing of current task, the `CoreWorker::actor_task_mutex_` may cause deadlock.
The solution is quite simple, release the lock before executing task in local mode.

In the commit 7c2f61c76c:
1. Release the lock in local mode to fix the bug. @scv119 
2. `test_local_mode_deadlock` added to cover the case. @rkooo567 
3. Left a trivial change in `rllib/tests/test_gpus.py` to make the `RAY_CI_RLLIB_DIRECTLY_AFFECTED ` to take effect.
2021-12-13 23:56:07 -08:00
..
api [Core] Support back pressure for actor tasks. (#20894) 2021-12-13 23:56:07 -08:00
performance_test [Java] Remove auto-generated pom.xml files. (#19475) 2021-10-19 17:35:37 +08:00
runtime [Core] Support back pressure for actor tasks. (#20894) 2021-12-13 23:56:07 -08:00
serve [Serve]Change Java LongPollClient's polling thread to singleton. (#20756) 2021-12-07 11:14:00 -08:00
test [Core] Support back pressure for actor tasks. (#20894) 2021-12-13 23:56:07 -08:00
build-jar-multiplatform.sh Revert "[Java] Skip javadoc when deploying. (#19428)" (#20137) 2021-11-08 15:53:31 +08:00
BUILD.bazel Revert "Revert "[runtime env] redefine runtime env to protobuf"" and fix windows compiling (#20692) 2021-11-24 09:01:01 -08:00
checkstyle-suppressions.xml [Java] Format ray java code (#13056) 2020-12-29 10:36:16 +08:00
checkstyle.xml [Serve] Define BackendConfig protobuf and adapt it in Java (#17201) 2021-08-06 09:50:45 -07:00
cleanup.sh Shellcheck comments (#9595) 2020-07-21 16:47:09 -05:00
dependencies.bzl Bump log4j from 2.14.0 to 2.15.0 (#21036) 2021-12-12 15:07:50 +08:00
generate_jni_header_files.sh Use javac -h instead of javah. (#19311) 2021-10-12 22:37:14 +08:00
pom.xml Bump Java version to 2.0.0-SNAPSHOT (#15394) 2021-08-30 12:25:30 +08:00
test.sh [CI] Run Java CI on Mac (#19757) 2021-11-03 23:40:05 +08:00
testng.xml [Serve] Define Java Backend (#16169) 2021-07-01 20:41:17 -07:00