DCHECK(query_status_.IsMemLimitExceeded()) fails due to conditional setting of MemLimitExceeded status. The query_status is only set to MemLimitExceeded if the prior status was ok (query_status_.ok).
This was discovered while running: ./tests/run-tests.py query_test/test_queries.py -k test_very_large_strings
which caused some impalad instances to hit the DCHECK and generate minidumps in my environment (and fail the test).
Removing the DCHECK still doesn't allow the test to pass due to what I think is better memory error reporting, but I'm still investigating the failures to better understand what is going on.