phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Soldatov (JIRA)" <>
Subject [jira] [Created] (PHOENIX-3969) Delete from table more than 100 rows fails with IndexOutOfBould
Date Thu, 22 Jun 2017 00:32:00 GMT
Sergey Soldatov created PHOENIX-3969:

             Summary: Delete from table more than 100 rows fails with IndexOutOfBould
                 Key: PHOENIX-3969
             Project: Phoenix
          Issue Type: Bug
    Affects Versions: 4.11.0
            Reporter: Sergey Soldatov
            Assignee: Sergey Soldatov
            Priority: Critical

That happens because in UngroupedAggregateRegionObserver to check whether we have something
to commit we call readyToCommit. We do that for both - data table mutations and local indexes
( indexMutations). In this method we check only rows count from original table, but not the
size of mutations list. Since indexMutations is using only for local indexes, in regular cases
the list will be empty and when we call commitBatch for empty list it fails with an exception
Error: org.apache.phoenix.exception.PhoenixIOException: org.apache.hadoop.hbase.DoNotRetryIOException:
GIGANTIC_TABLE,,1498079753609.137788ceb573b20bbbb7cdcaeb6ba489.: Index: 0, Size: 0
	at org.apache.phoenix.util.ServerUtil.createIOException(
	at org.apache.phoenix.util.ServerUtil.throwIOException(
	at org.apache.phoenix.coprocessor.BaseScannerRegionObserver$RegionScannerHolder.overrideDelegate(
	at org.apache.phoenix.coprocessor.BaseScannerRegionObserver$RegionScannerHolder.nextRaw(
	at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(
	at org.apache.hadoop.hbase.ipc.RpcExecutor$
	at org.apache.hadoop.hbase.ipc.RpcExecutor$
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.rangeCheck(
	at java.util.ArrayList.get(
	at org.apache.phoenix.coprocessor.UngroupedAggregateRegionObserver.commitBatch(
	at org.apache.phoenix.coprocessor.UngroupedAggregateRegionObserver.doPostScannerOpen(
	at org.apache.phoenix.coprocessor.BaseScannerRegionObserver$RegionScannerHolder.overrideDelegate(
	... 7 more (state=08000,code=101)

This message was sent by Atlassian JIRA

View raw message