[
https://issues.apache.org/jira/browse/PHOENIX-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15602646#comment-15602646
]
James Taylor commented on PHOENIX-3394:
---------------------------------------
Sequences need to go through this API in ConnectionQueryServices:
{code}
void validateSequences(List<SequenceAllocation> sequenceAllocations, long
timestamp, long[] values, SQLException[] exceptions, Sequence.ValueOp action)
throws SQLException;
{code}
This relies on caching in ConnectionQueryServices, so would be fine to call
often. There's also a helper class called {{SequenceManager}} that can be used
if that's easier (it calls through to the above API).
For the issue resolving schemas, if we can't find another solution, we could
require that useNamespace = true. I was thinking at a minimum of making that
the default when we do our next major release.
> 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
> Assignee: 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)