Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1798

UnsupportedOperationException throws from BaseResultIterators.getIterators

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.0
    • 3.3.1, 4.3.1, 4.4.0
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              qqqc851001 Cen Qi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified