You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by db...@apache.org on 2016/06/14 10:32:18 UTC

ambari git commit: AMBARI-17108 Fix error on column search, and a minor lifecycle fix (Ashween Rajeev via dipayanb)

Repository: ambari
Updated Branches:
  refs/heads/trunk f65fb23b6 -> 8f52cff95


AMBARI-17108 Fix error on column search, and a minor lifecycle fix (Ashween Rajeev via dipayanb)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/8f52cff9
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/8f52cff9
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/8f52cff9

Branch: refs/heads/trunk
Commit: 8f52cff955d6f7738d6dc89593459a671b5cc74a
Parents: f65fb23
Author: Dipayan Bhowmick <di...@gmail.com>
Authored: Tue Jun 14 16:01:51 2016 +0530
Committer: Dipayan Bhowmick <di...@gmail.com>
Committed: Tue Jun 14 16:01:51 2016 +0530

----------------------------------------------------------------------
 .../org/apache/ambari/view/hive2/actor/AsyncJdbcConnector.java   | 4 +++-
 .../view/hive2/resources/jobs/ResultsPaginationController.java   | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/8f52cff9/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/AsyncJdbcConnector.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/AsyncJdbcConnector.java b/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/AsyncJdbcConnector.java
index 9d3517f..9a5992c 100644
--- a/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/AsyncJdbcConnector.java
+++ b/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/actor/AsyncJdbcConnector.java
@@ -161,7 +161,9 @@ public class AsyncJdbcConnector extends JdbcConnector {
               e.getMessage(), e);
       updateJobStatus(jobId,Job.JOB_STATE_ERROR);
       parent.tell(failure, self());
-      // Update the operation controller to write an error on tshe right side
+      // Update the operation controller to write an error on the right side
+      // make sure we can stop the connector
+      executing = false;
       LOG.error("Caught SQL excpetion for job-"+message,e);
 
     }

http://git-wip-us.apache.org/repos/asf/ambari/blob/8f52cff9/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/resources/jobs/ResultsPaginationController.java
----------------------------------------------------------------------
diff --git a/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/resources/jobs/ResultsPaginationController.java b/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/resources/jobs/ResultsPaginationController.java
index 6131d03..bb0d053 100644
--- a/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/resources/jobs/ResultsPaginationController.java
+++ b/contrib/views/hive-next/src/main/java/org/apache/ambari/view/hive2/resources/jobs/ResultsPaginationController.java
@@ -193,7 +193,8 @@ public class ResultsPaginationController {
   private <T> List<T> filter(List<T> list, Set<Integer> selectedColumns) {
     List<T> filtered = Lists.newArrayList();
     for(int i: selectedColumns) {
-      filtered.add(list.get(i));
+      if(list != null && list.get(i) != null)
+        filtered.add(list.get(i));
     }
 
     return filtered;