You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by ra...@apache.org on 2017/12/26 06:46:19 UTC

phoenix git commit: PHOENIX-4495 Fix possible NPE/ClassCastException in Stats IT tests(Rajeshbabu)

Repository: phoenix
Updated Branches:
  refs/heads/5.x-HBase-2.0 2af8aaf6b -> b4ccdd2c9


PHOENIX-4495 Fix possible NPE/ClassCastException in Stats IT tests(Rajeshbabu)


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

Branch: refs/heads/5.x-HBase-2.0
Commit: b4ccdd2c97494b3ce40f2594e48baecd0e72bf31
Parents: 2af8aaf
Author: Rajeshbabu Chintaguntla <ra...@apache.org>
Authored: Tue Dec 26 12:15:58 2017 +0530
Committer: Rajeshbabu Chintaguntla <ra...@apache.org>
Committed: Tue Dec 26 12:15:58 2017 +0530

----------------------------------------------------------------------
 .../java/org/apache/phoenix/schema/stats/StatsCollectorIT.java  | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/b4ccdd2c/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/StatsCollectorIT.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/StatsCollectorIT.java b/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/StatsCollectorIT.java
index 5aa97ab..f7a2edd 100644
--- a/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/StatsCollectorIT.java
+++ b/phoenix-core/src/it/java/org/apache/phoenix/schema/stats/StatsCollectorIT.java
@@ -824,9 +824,8 @@ public abstract class StatsCollectorIT extends BaseUniqueNamesOwnClusterIT {
 
     private RegionCoprocessorEnvironment getRegionEnvrionment(String tableName)
             throws IOException, InterruptedException {
-        return getUtility()
-                .getRSForFirstRegionInTable(TableName.valueOf(tableName))
-                .getOnlineRegionsLocalContext().iterator().next().getCoprocessorHost()
+        return getUtility().getMiniHBaseCluster().getRegions(TableName.valueOf(tableName)).get(0)
+                .getCoprocessorHost()
                 .findCoprocessorEnvironment(UngroupedAggregateRegionObserver.class.getName());
     }
 }