Tim Armstrong created IMPALA-5895: ------------------------------------- Summary: Simplify and document memory management of RuntimeProfile Counters Key: IMPALA-5895 URL: https://issues.apache.org/jira/browse/IMPALA-5895 Project: IMPALA Issue Type: Improvement Components: Backend Affects Versions: Impala 2.10.0 Reporter: Tim Armstrong Assignee: Tim Armstrong
It's very unclear what requirements there are around object lifetimes for RuntimeProfile objects and the Counter objects that live in ObjectPools. See IMPALA-5878 for a case where it's very hard to reason about correctness of the memory management. We should document the requirements and also consider simplifying the ownership model. E.g. having each RuntimeProfile own all of its counters via unique_ptrs. -- This message was sent by Atlassian JIRA (v6.4.14#64029)