phoenix-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-5180) Add API to PhoenixRunTime to get ptable of a tenant using a global connection
Date Tue, 26 Mar 2019 06:18:00 GMT

    [ https://issues.apache.org/jira/browse/PHOENIX-5180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16801423#comment-16801423
] 

Hudson commented on PHOENIX-5180:
---------------------------------

FAILURE: Integrated in Jenkins build Phoenix-4.x-HBase-1.3 #367 (See [https://builds.apache.org/job/Phoenix-4.x-HBase-1.3/367/])
PHOENIX-5180 Add API to PhoenixRunTime to get ptable of a tenant using a (tdsilva: rev 04bcd48a608f61753f621bb2f466d63684d43af6)
* (edit) phoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java
* (edit) phoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java
* (add) phoenix-core/src/it/java/org/apache/phoenix/end2end/GlobalConnectionTenantTableIT.java


> Add API to PhoenixRunTime to get ptable of a tenant using a global connection
> -----------------------------------------------------------------------------
>
>                 Key: PHOENIX-5180
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5180
>             Project: Phoenix
>          Issue Type: New Feature
>            Reporter: Thomas D'Silva
>            Assignee: Abhishek Singh Chouhan
>            Priority: Major
>              Labels: SFDC
>         Attachments: PHOENIX-5180-master.patch
>
>
> If we want to look up the PTable of a tenant view we currently need to create a tenant
specific connection and call {{PhoenixRuntime.getTable()}}. This could be inefficient if we
need to create millions of tenant specific connections.
> We could instead just pass in the tenant id and use a global connection
>  {{getTable(Connection conn, String tenantId, String fullTableName, long timestamp)}}
> Insread of using the scn from the connection to set the clientTimestamp, we would use
the passed in timestamp.
> If the table isn't cached we would need to make a rpc to fetch the table from SYSTEM.CATALOG
> {code:java}
> MetaDataMutationResult result = new MetaDataClient(pconn).updateCache(PName tenantId,
String schemaName, String tableName)
> {code}
> FYI [~andrew.purtell@gmail.com]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message