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] [7/N] Cleanup gcs server shared pointer #49089

Merged

Conversation

@dentiny dentiny requested review from jjyao, rynewang and dayshah December 5, 2024 03:38
@dentiny dentiny requested a review from a team as a code owner December 5, 2024 03:38
@@ -231,7 +231,7 @@ class GcsServer {
/// The cluster resource scheduler.
std::shared_ptr<ClusterResourceScheduler> cluster_resource_scheduler_;
/// The cluster task manager.
std::shared_ptr<ClusterTaskManager> cluster_task_manager_;
std::unique_ptr<ClusterTaskManager> cluster_task_manager_;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cluster task manager depends on cluster resource manager, so defined later.

@dentiny dentiny force-pushed the hjiang/gcs-server-shared-pointer-7 branch from 156e222 to 75a48f9 Compare December 5, 2024 03:41
std::shared_ptr<ClusterTaskManager> cluster_task_manager_;
std::unique_ptr<ClusterTaskManager> cluster_task_manager_;
/// The gcs resource manager.
std::unique_ptr<GcsResourceManager> gcs_resource_manager_;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

resource manager depends on cluster resource manager, so defined later.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you change those into comments. I'm still worried people will move things around without realizing there is order requirements.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, updated.

@dentiny dentiny changed the title [core] Cleanup gcs server shared pointer [core] [7/N] Cleanup gcs server shared pointer Dec 5, 2024
@dentiny dentiny added the go add ONLY when ready to merge, run all tests label Dec 5, 2024
@dentiny dentiny force-pushed the hjiang/gcs-server-shared-pointer-7 branch from 75a48f9 to ef27439 Compare December 5, 2024 04:50
std::shared_ptr<ClusterTaskManager> cluster_task_manager_;
std::unique_ptr<ClusterTaskManager> cluster_task_manager_;
/// The gcs resource manager.
std::unique_ptr<GcsResourceManager> gcs_resource_manager_;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you change those into comments. I'm still worried people will move things around without realizing there is order requirements.

@rynewang rynewang merged commit 99d631f into ray-project:master Dec 6, 2024
5 checks passed
ujjawal-khare pushed a commit to ujjawal-khare-27/ray that referenced this pull request Dec 17, 2024
Cleanup shared pointer and use unique pointer for clear memory ownership
and less error prune.

---------

Signed-off-by: hjiang <[email protected]>
Signed-off-by: ujjawal-khare <[email protected]>
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.

4 participants