You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by rl...@apache.org on 2017/10/02 20:39:31 UTC
[20/50] [abbrv] ambari git commit: AMBARI-21799 : Hive query failing
randomly with Null point exception status 500 (nitirajrathore)
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/branch-feature-AMBARI-20859
Commit: d198dd3c43d491b8fb0689546522351bb9b303de
Parents: add33d4
Author: Nitiraj Singh Rathore <ni...@gmail.com>
Authored: Thu Sep 28 17:12:40 2017 +0530
Committer: Nitiraj Singh Rathore <ni...@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) {