Revert "[Core]Fix ray.kill doesn't cancel pending actor bug (#13254)" (#14013)

This reverts commit 2092b097ea.
This commit is contained in:
Simon Mo
2021-02-09 11:36:38 -08:00
committed by GitHub
parent 1dcdfe9101
commit f51c26bae6
19 changed files with 54 additions and 325 deletions
@@ -59,8 +59,6 @@ public class KillActorTest extends BaseTest {
private void testKillActor(BiConsumer<ActorHandle<?>, Boolean> kill, boolean noRestart) {
ActorHandle<HangActor> actor = Ray.actor(HangActor::new).setMaxRestarts(1).remote();
// Wait for the actor to be created.
actor.task(HangActor::ping).remote().get();
ObjectRef<Boolean> result = actor.task(HangActor::hang).remote();
// The actor will hang in this task.
Assert.assertEquals(0, Ray.wait(ImmutableList.of(result), 1, 500).getReady().size());