Repository: phoenix
Updated Branches:
  refs/heads/4.x-HBase-0.98 b5b1c7a61 -> fab053570


PHOENIX-1908 TenantSpecificTablesDDLIT#testAddDropColumn is flaky(Rajeshbabu)


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

Branch: refs/heads/4.x-HBase-0.98
Commit: fab05357082a66156528967cea04c0f812591239
Parents: b5b1c7a
Author: Rajeshbabu Chintaguntla <[email protected]>
Authored: Thu Apr 30 19:04:47 2015 +0530
Committer: Rajeshbabu Chintaguntla <[email protected]>
Committed: Thu Apr 30 19:04:47 2015 +0530

----------------------------------------------------------------------
 .../java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/phoenix/blob/fab05357/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
----------------------------------------------------------------------
diff --git 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
index 7d9d495..60d9605 100644
--- 
a/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
+++ 
b/phoenix-core/src/main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java
@@ -1794,7 +1794,7 @@ public class MetaDataEndpointImpl extends 
MetaDataProtocol implements Coprocesso
                                     // column, get lock and drop the index. If 
found as covered
                                     // column, delete from index (do this 
client side?).
                                     // In either case, invalidate index if the 
column is in it
-                                    PhoenixConnection connection = 
QueryUtil.getConnection(env.getConfiguration()).unwrap(PhoenixConnection.class);
+                                    PhoenixConnection connection = 
table.getIndexes().isEmpty() ? null : 
QueryUtil.getConnection(env.getConfiguration()).unwrap(PhoenixConnection.class);
                                     for (PTable index : table.getIndexes()) {
                                         try {
                                             IndexMaintainer indexMaintainer = 
index.getIndexMaintainer(table, connection);

Reply via email to