This is an automated email from the ASF dual-hosted git repository.

chinmayskulkarni pushed a commit to branch 4.x
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/4.x by this push:
     new e3c7b4b  PHOENIX-6069: We should check that the parent table key is in 
the region in the MetaDataEndpointImpl.dropTable code
e3c7b4b is described below

commit e3c7b4bdce2524eb4fd1e7eb0ccd3454fcca81ce
Author: Chinmay Kulkarni <chinmayskulka...@gmail.com>
AuthorDate: Tue Aug 11 11:40:42 2020 -0700

    PHOENIX-6069: We should check that the parent table key is in the region in 
the MetaDataEndpointImpl.dropTable code
---
 .../main/java/org/apache/phoenix/coprocessor/MetaDataEndpointImpl.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 00ce50f..236b3f5 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
@@ -2228,7 +2228,7 @@ public class MetaDataEndpointImpl extends 
MetaDataProtocol implements Coprocesso
             // Only lock parent table for indexes
             if (parentTableName != null && pTableType == PTableType.INDEX) {
                 parentLockKey = SchemaUtil.getTableKey(tenantIdBytes, 
schemaName, parentTableName);
-                result = checkTableKeyInRegion(lockKey, region);
+                result = checkTableKeyInRegion(parentLockKey, region);
                 if (result != null) {
                     done.run(MetaDataMutationResult.toProto(result));
                     return;

Reply via email to