Skip to content

Commit

Permalink
fix mis-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
fishbone committed May 10, 2022
1 parent 3825141 commit 77710ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ray/core_worker/profiling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Profiler::Profiler(WorkerContext &worker_context,
rpc_profile_data_(new rpc::ProfileTableData()),
gcs_client_(gcs_client) {
rpc_profile_data_->set_component_type(WorkerTypeString(worker_context.GetWorkerType()));
rpc_profile_data_->set_message_type(worker_context.GetWorkerID().Binary());
rpc_profile_data_->set_component_id(worker_context.GetWorkerID().Binary());
rpc_profile_data_->set_node_ip_address(node_ip_address);
periodical_runner_.RunFnPeriodically(
[this] { FlushEvents(); },
Expand All @@ -56,7 +56,7 @@ void Profiler::FlushEvents() {
absl::MutexLock lock(&mutex_);
if (rpc_profile_data_->profile_events_size() != 0) {
cur_profile_data->set_component_type(rpc_profile_data_->component_type());
cur_profile_data->set_message_type(rpc_profile_data_->message_type());
cur_profile_data->set_component_id(rpc_profile_data_->component_id());
cur_profile_data->set_node_ip_address(rpc_profile_data_->node_ip_address());
rpc_profile_data_.swap(cur_profile_data);
}
Expand Down
2 changes: 1 addition & 1 deletion src/ray/gcs/gcs_client/accessor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ StatsInfoAccessor::StatsInfoAccessor(GcsClient *client_impl)
Status StatsInfoAccessor::AsyncAddProfileData(
const std::shared_ptr<rpc::ProfileTableData> &data_ptr,
const StatusCallback &callback) {
NodeID node_id = NodeID::FromBinary(data_ptr->message_type());
NodeID node_id = NodeID::FromBinary(data_ptr->component_id());
RAY_LOG(DEBUG) << "Adding profile data, component type = " << data_ptr->component_type()
<< ", node id = " << node_id;
rpc::AddProfileDataRequest request;
Expand Down
2 changes: 1 addition & 1 deletion src/ray/gcs/gcs_server/stats_handler_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace rpc {
void DefaultStatsHandler::HandleAddProfileData(const AddProfileDataRequest &request,
AddProfileDataReply *reply,
SendReplyCallback send_reply_callback) {
NodeID node_id = NodeID::FromBinary(request.profile_data().message_type());
NodeID node_id = NodeID::FromBinary(request.profile_data().component_id());
RAY_LOG(DEBUG) << "Adding profile data, component type = "
<< request.profile_data().component_type() << ", node id = " << node_id;
auto profile_table_data = std::make_shared<ProfileTableData>();
Expand Down

0 comments on commit 77710ef

Please sign in to comment.