Skip to content

[core] [DO NOT MERGE] (Original FreeObjects 3/n) Remove original FreeObjects RPC and broadcast - #63213

Closed
aaronscalene wants to merge 41 commits into
ray-project:masterfrom
aaronscalene:aaron/gut-dead-code
Closed

aaronscalene wants to merge 41 commits into
ray-project:masterfrom
aaronscalene:aaron/gut-dead-code

Conversation

@aaronscalene

@aaronscalene aaronscalene commented May 8, 2026 •

Copy link
Copy Markdown
Contributor

Description

The first two parts of this feature demonstrated removing the dependency of the pubsub as well as the FreeObjects spray, and thus many original implementations are also necessary to be gutted. In this PR, we will target removing the original FreeObjects RPC and the local_only=false branch.

Essentially, we will remove these parts:

  • We no longer need the FreeObjects RPC that was broadcasted to all nodes, so we can delete this and any code relating this (tests, proto, etc.)
  • We no longer need local_only=false option (broadcasted FreeObjects RPC), so we can delete any logic relating to this as well.

For removing the pubsub, see #63181.

gemini-code-assist[bot]

This comment was marked as spam.

@aaronscalene
aaronscalene force-pushed the aaron/gut-dead-code branch from 212e748 to 88b47cd Compare May 8, 2026 03:07
@aaronscalene aaronscalene changed the title [core] [DO NOT MERGE] (FreeObjects 2/n) [core] [DO NOT MERGE] (FreeObjects 3/n) May 8, 2026
@aaronscalene
aaronscalene force-pushed the aaron/gut-dead-code branch 2 times, most recently from 0d0f48d to b8b3bc3 Compare May 15, 2026 06:43
@aaronscalene aaronscalene changed the title [core] [DO NOT MERGE] (FreeObjects 3/n) [core] (FreeObjects 3/n) Remove original FreeObjects implementation and dead code May 15, 2026
@aaronscalene
aaronscalene force-pushed the aaron/gut-dead-code branch from b8b3bc3 to 0599831 Compare May 15, 2026 21:20
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>
@aaronscalene
aaronscalene force-pushed the aaron/gut-dead-code branch from 0599831 to 438067c Compare May 20, 2026 22:22
@aaronscalene
aaronscalene marked this pull request as ready for review May 21, 2026 03:14
@aaronscalene
aaronscalene requested a review from a team as a code owner May 21, 2026 03:14
Comment thread src/ray/protobuf/node_manager.proto Resolved
Comment thread src/ray/raylet/node_manager.cc Resolved
@ray-gardener ray-gardener Bot added the core Issues that should be addressed in Ray Core label May 21, 2026
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>
v
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>
i
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>
@aaronscalene
aaronscalene force-pushed the aaron/gut-dead-code branch from 438067c to c7a5079 Compare May 22, 2026 22:13
@aaronscalene aaronscalene changed the title [core] (FreeObjects 3/n) Remove original FreeObjects implementation and dead code [core] (FreeObjects 3/n) Remove original FreeObjects RPC and broadcast May 23, 2026
@aaronscalene aaronscalene changed the title [core] (FreeObjects 3/n) Remove original FreeObjects RPC and broadcast [core] (FreeObjects 2/n) Remove original FreeObjects RPC and broadcast May 30, 2026
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>

# Conflicts:
#	src/ray/object_manager/object_manager.cc
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>
Signed-off-by: aaron.li <[email protected]>

# Conflicts:
#	src/ray/object_manager/object_manager.cc
#	src/ray/object_manager/object_manager.h
#	src/ray/object_manager/tests/object_manager_test.cc

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 49e2106. Configure here.

if (!locations_set.empty()) {
free_object_on_nodes_async_(it->first, locations_set);
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Remote plasma leak without location RPC

High Severity

Cluster-wide plasma cleanup now depends on free_object_on_nodes_async targeting nodes in the owner’s location set, while the raylet pubsub eviction handler only unsubscribes and no longer releases local copies. If that set is empty or missing a node that still holds a primary, secondary, or spilled copy, no FreeLocalObjects RPC is sent and remote plasma can stay pinned until node or worker failure cleanup.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 49e2106. Configure here.

@aaronscalene aaronscalene changed the title [core] (FreeObjects 2/n) Remove original FreeObjects RPC and broadcast [core] [DO NOT MERGE] (FreeObjects 2/n) Remove original FreeObjects RPC and broadcast Jun 9, 2026
@aaronscalene aaronscalene changed the title [core] [DO NOT MERGE] (FreeObjects 2/n) Remove original FreeObjects RPC and broadcast [core] [DO NOT MERGE] (Original FreeObjects 3/n) Remove original FreeObjects RPC and broadcast Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant