Skip to content
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

[core] [easy] Cleanup shared pointer for runtime env client #48975

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dentiny
Copy link
Contributor

@dentiny dentiny commented Nov 27, 2024

Shared pointer is wide-spread our codebase, which makes ownership justification and tracing hard.
To make things worse, new code has to confirm the same interface, which means more shared pointer.

Would like to spend some time to cleanup, start with something simple.

@@ -377,7 +377,7 @@ NodeManager::NodeManager(
dashboard_agent_manager_ = CreateDashboardAgentManager(self_node_id, config);
runtime_env_agent_manager_ = CreateRuntimeEnvAgentManager(self_node_id, config);

runtime_env_agent_client_ = RuntimeEnvAgentClient::Create(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not used elsewhere, ownership directly transferred to worker pool.

@dentiny dentiny added the go add ONLY when ready to merge, run all tests label Nov 28, 2024
@dentiny dentiny force-pushed the hjiang/cleanup-runtime-env-client-shared branch from 168defa to f43c53e Compare November 28, 2024 00:07
@dentiny dentiny force-pushed the hjiang/cleanup-runtime-env-client-shared branch from f43c53e to 33187a8 Compare November 28, 2024 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
go add ONLY when ready to merge, run all tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant