[
https://issues.apache.org/jira/browse/PHOENIX-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14390202#comment-14390202
]
ASF GitHub Bot commented on PHOENIX-1798:
-----------------------------------------
GitHub user StormAll opened a pull request:
https://github.com/apache/phoenix/pull/62
PHOENIX-1798 change Collections.empytList() to Lists.newArrayList()
This change related to PHOENIX-1798.
If the select SQL query a lot of data, the issue will occur.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/StormAll/phoenix master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/phoenix/pull/62.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #62
----
commit e0db28e0bbd4588d209b65ac8d9525349e84e919
Author: Cen Qi <[email protected]>
Date: 2015-04-01T07:55:29Z
PHOENIX-1798 change Collections.empytList() to Lists.newArrayList()
----
> UnsupportedOperationException throws from BaseResultIterators.getIterators
> --------------------------------------------------------------------------
>
> Key: PHOENIX-1798
> URL: https://issues.apache.org/jira/browse/PHOENIX-1798
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.3.0
> Reporter: Cen Qi
> Original Estimate: 4h
> Remaining Estimate: 4h
>
> If there throw an StaleRegionBoundaryCacheException, concatIterators will be
> reassigned by Collections.emptyList(). And then call the add method again, it
> will throw the UnsupportedOperationException.
> Exception in thread "main" org.apache.phoenix.exception.PhoenixIOException
> at
> org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:108)
> at
> org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:589)
> at
> org.apache.phoenix.iterate.ConcatResultIterator.getIterators(ConcatResultIterator.java:50)
> at
> org.apache.phoenix.iterate.ConcatResultIterator.currentIterator(ConcatResultIterator.java:97)
> at
> org.apache.phoenix.iterate.ConcatResultIterator.next(ConcatResultIterator.java:117)
> at
> org.apache.phoenix.iterate.BaseGroupedAggregatingResultIterator.next(BaseGroupedAggregatingResultIterator.java:64)
> at
> org.apache.phoenix.iterate.UngroupedAggregatingResultIterator.next(UngroupedAggregatingResultIterator.java:39)
> at
> org.apache.phoenix.jdbc.PhoenixResultSet.next(PhoenixResultSet.java:764)
> at PhoenixDemo.main(PhoenixDemo.java:12)
> Caused by: java.lang.UnsupportedOperationException
> at java.util.AbstractList.add(AbstractList.java:148)
> at java.util.AbstractList.add(AbstractList.java:108)
> at
> org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:535)
> ... 7 more
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)