phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PHOENIX-3394) Fix getHTable unsupported operation
Date Thu, 20 Oct 2016 21:34:58 GMT

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

James Taylor commented on PHOENIX-3394:
---------------------------------------

Correct, [~lomoree] - the non IT unit tests that run during mvn package (i.e. those derived
from BaseConnectionlessQueryTest) do not spin up an HBase mini cluster. They are meant to
run only compilation but perform no execution. The way we get the table metadata in this case
is through the PMetaDataCache kept on ConnectionlessQueryServicesImpl. All operations that
attempt to retrieve any metadata should go through the ConnectionQueryService interface. It
appears that this is not the case. I bet [~maryannxue] could point you in the right direction.
Can you post more of the stack trace? This would be a great one to fix.

> Fix getHTable unsupported operation
> -----------------------------------
>
>                 Key: PHOENIX-3394
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3394
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Eric Lomore
>
> Tons of unit tests have this same stack trace. It appears that this call shouldn't reach
ConnectionlessQueryServicesImpl.getTable?
> {code}
> Caused by: java.lang.UnsupportedOperationException
> 	at org.apache.phoenix.query.ConnectionlessQueryServicesImpl.getTable(ConnectionlessQueryServicesImpl.java:157)
> 	at org.apache.phoenix.query.DelegateConnectionQueryServices.getTable(DelegateConnectionQueryServices.java:70)
> 	at org.apache.phoenix.execute.MutationState.getHTable(MutationState.java:360)
> 	at org.apache.phoenix.iterate.TableResultIterator.<init>(TableResultIterator.java:101)
> 	at org.apache.phoenix.iterate.DefaultTableResultIteratorFactory.newIterator(DefaultTableResultIteratorFactory.java:33)
> 	at org.apache.phoenix.iterate.ParallelIterators.submitWork(ParallelIterators.java:104)
> 	at org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:871)
> 	... 71 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message