Repository: ambari Updated Branches: refs/heads/trunk add33d4f1 -> d198dd3c4
AMBARI-21799 : Hive query failing randomly with Null point exception status 500 (nitirajrathore) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d198dd3c Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d198dd3c Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d198dd3c Branch: refs/heads/trunk Commit: d198dd3c43d491b8fb0689546522351bb9b303de Parents: add33d4 Author: Nitiraj Singh Rathore <nitiraj.rath...@gmail.com> Authored: Thu Sep 28 17:12:40 2017 +0530 Committer: Nitiraj Singh Rathore <nitiraj.rath...@gmail.com> Committed: Thu Sep 28 17:14:27 2017 +0530 ---------------------------------------------------------------------- .../src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/d198dd3c/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java ---------------------------------------------------------------------- diff --git a/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java b/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java index 8b987be..3db2081 100644 --- a/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java +++ b/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsApi.java @@ -500,7 +500,7 @@ public class HdfsApi { result = ugi.doAs(action); succeeded = true; } catch (IOException ex) { - if (!ex.getMessage().contains("Cannot obtain block length for")) { + if (!Strings.isNullOrEmpty(ex.getMessage()) && !ex.getMessage().contains("Cannot obtain block length for")) { throw ex; } if (tryNumber >= 3) {