IMPALA-5852: improve MINIMUM_RESERVATION_UNAVAILABLE error Augment the error message to mention that oversubscription is likely the problem and hint at solutions.
Change-Id: I8e367e1b0cb08e11fdd0546880df23b785e3b7c9 Reviewed-on: http://gerrit.cloudera.org:8080/7861 Reviewed-by: Dan Hecht <[email protected]> Tested-by: Impala Public Jenkins Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/d6376425 Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/d6376425 Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/d6376425 Branch: refs/heads/master Commit: d637642534dcfd0b92b1caa7848cf4bf3f97f70a Parents: 593ec25 Author: Tim Armstrong <[email protected]> Authored: Mon Aug 28 15:03:38 2017 -0700 Committer: Impala Public Jenkins <[email protected]> Committed: Tue Aug 29 03:26:20 2017 +0000 ---------------------------------------------------------------------- common/thrift/generate_error_codes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/d6376425/common/thrift/generate_error_codes.py ---------------------------------------------------------------------- diff --git a/common/thrift/generate_error_codes.py b/common/thrift/generate_error_codes.py index 1d3b7c6..393daba 100755 --- a/common/thrift/generate_error_codes.py +++ b/common/thrift/generate_error_codes.py @@ -323,8 +323,9 @@ error_codes = ( "Failed to verify generated IR function $0, see log for more details."), ("MINIMUM_RESERVATION_UNAVAILABLE", 106, "Failed to get minimum memory reservation of " - "$0 on daemon $1:$2 for query $3 because it would exceed an applicable query, " - "request pool or process memory limit. Memory usage:\\n$4"), + "$0 on daemon $1:$2 for query $3 because it would exceed an applicable memory " + "limit. Memory is likely oversubscribed. Reducing query concurrency or configuring " + "admission control may help avoid this error. Memory usage:\\n$4"), ("ADMISSION_REJECTED", 107, "Rejected query from pool $0: $1"),
