Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.8.0
-
None
Description
Adding the bottom DCHECK:
void ConsumeLocal(int64_t bytes, MemTracker* end_tracker) { DCHECK(consumption_metric_ == NULL) << "Should not be called on root."; for (int i = 0; i < all_trackers_.size(); ++i) { if (all_trackers_[i] == end_tracker) return; DCHECK(!all_trackers_[i]->has_limit()); all_trackers_[i]->consumption_->Add(bytes); } DCHECK(false) << "end_tracker is not an ancestor"; }
caused backend test failures, e.g. some BufferedBlockMgr tests because they set up their MemTrackers in a strange way. The DCHECK is useful so this should be fixed.