Deserialize Args in Event Loop Thread (#7806)

This commit is contained in:
Simon Mo
2020-03-30 18:28:13 -07:00
committed by GitHub
parent f86e623095
commit dc9b62e007
3 changed files with 53 additions and 32 deletions
+4 -1
View File
@@ -3410,11 +3410,15 @@ std::string FormatMemoryInfo(std::vector<rpc::GetNodeStatsReply> node_stats) {
for (const auto &worker_stats : reply.workers_stats()) {
bool pid_printed = false;
for (const auto &object_ref : worker_stats.core_worker_stats().object_refs()) {
auto obj_id = ObjectID::FromBinary(object_ref.object_id());
if (!object_ref.pinned_in_memory() && object_ref.local_ref_count() == 0 &&
object_ref.submitted_task_ref_count() == 0 &&
object_ref.contained_in_owned_size() == 0) {
continue;
}
if (obj_id.IsNil()) {
continue;
}
if (!pid_printed) {
if (worker_stats.is_driver()) {
builder << "; driver pid=" << worker_stats.pid() << "\n";
@@ -3423,7 +3427,6 @@ std::string FormatMemoryInfo(std::vector<rpc::GetNodeStatsReply> node_stats) {
}
pid_printed = true;
}
auto obj_id = ObjectID::FromBinary(object_ref.object_id());
builder << obj_id.Hex() << " ";
// TODO(ekl) we could convey more information about the reference status.
if (object_ref.pinned_in_memory()) {