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/73cb9b8b Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/73cb9b8b Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/73cb9b8b Branch: refs/heads/release-2.10.0 Commit: 73cb9b8b0f6020fb90acf4fa12a00753a3120058 Parents: 99fe9b3 Author: Tim Armstrong <[email protected]> Authored: Mon Aug 28 15:03:38 2017 -0700 Committer: Tim Armstrong <[email protected]> Committed: Wed Aug 30 14:54:49 2017 -0700 ---------------------------------------------------------------------- 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/73cb9b8b/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"),
