[Bug] Fix bug that double unregister the resource pool in runtime state (#3458)

The resource pool in runtime state will be automatically unregistered
when deconstructing the RuntimeState. So no need to unregister it when
closing the plan fragment executor.
This commit is contained in:
Mingyu Chen
2020-05-04 14:48:57 +08:00
committed by GitHub
parent a5922051c9
commit 101c7c161d

View File

@ -553,16 +553,14 @@ void PlanFragmentExecutor::close() {
}
}
_exec_env->thread_mgr()->unregister_pool(_runtime_state->resource_pool());
{
std::stringstream ss;
// Compute the _local_time_percent before pretty_print the runtime_profile
// Before add this operation, the print out like that:
// UNION_NODE (id=0):(Active: 56.720us, non-child: 00.00%)
// After add thie operation, the print out like that:
// UNION_NODE (id=0):(Active: 56.720us, non-child: 82.53%)
// We can easily know the exec node excute time without child time consumed.
// Compute the _local_time_percent before pretty_print the runtime_profile
// Before add this operation, the print out like that:
// UNION_NODE (id=0):(Active: 56.720us, non-child: 00.00%)
// After add thie operation, the print out like that:
// UNION_NODE (id=0):(Active: 56.720us, non-child: 82.53%)
// We can easily know the exec node excute time without child time consumed.
_runtime_state->runtime_profile()->compute_time_in_profile();
_runtime_state->runtime_profile()->pretty_print(&ss);
LOG(INFO) << ss.str();