[ https://issues.apache.org/jira/browse/IGNITE-19187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17710126#comment-17710126 ]
Yury Gerzhedovich commented on IGNITE-19187: -------------------------------------------- [~xtern] LGTM. > Sql. Handle StorageRebalanceException during rowsCount estimation > ----------------------------------------------------------------- > > Key: IGNITE-19187 > URL: https://issues.apache.org/jira/browse/IGNITE-19187 > Project: Ignite > Issue Type: Bug > Components: sql > Reporter: Konstantin Orlov > Assignee: Pavel Pereslegin > Priority: Major > Labels: ignite-3 > Fix For: 3.0.0-beta2 > > Time Spent: 1h > Remaining Estimate: 0h > > We need to handle StorageRebalanceException which may be thrown from > {{org.apache.ignite.internal.storage.MvPartitionStorage#rowsCount}} during > row count estimation > ({{org.apache.ignite.internal.sql.engine.schema.IgniteTableImpl.StatisticsImpl#getRowCount}}). > {code:java} > Caused by: org.apache.ignite.internal.storage.StorageRebalanceException: > IGN-STORAGE-4 TraceId:a943b5f5-8018-4c4b-9e66-cc5060796848 Storage in the > process of rebalancing: [table=TEST, partitionId=0] > at > app//org.apache.ignite.internal.storage.util.StorageUtils.throwExceptionDependingOnStorageState(StorageUtils.java:129) > at > app//org.apache.ignite.internal.storage.util.StorageUtils.throwExceptionIfStorageNotInRunnableState(StorageUtils.java:51) > at > app//org.apache.ignite.internal.storage.pagememory.mv.AbstractPageMemoryMvPartitionStorage.throwExceptionIfStorageNotInRunnableState(AbstractPageMemoryMvPartitionStorage.java:894) > at > app//org.apache.ignite.internal.storage.pagememory.mv.AbstractPageMemoryMvPartitionStorage.lambda$rowsCount$24(AbstractPageMemoryMvPartitionStorage.java:707) > at > app//org.apache.ignite.internal.storage.pagememory.mv.AbstractPageMemoryMvPartitionStorage.busy(AbstractPageMemoryMvPartitionStorage.java:785) > at > app//org.apache.ignite.internal.storage.pagememory.mv.AbstractPageMemoryMvPartitionStorage.rowsCount(AbstractPageMemoryMvPartitionStorage.java:706) > at > app//org.apache.ignite.internal.sql.engine.schema.IgniteTableImpl$StatisticsImpl.getRowCount(IgniteTableImpl.java:551) > at > app//org.apache.calcite.prepare.RelOptTableImpl.getRowCount(RelOptTableImpl.java:238) > at > app//org.apache.ignite.internal.sql.engine.rel.ProjectableFilterableTableScan.computeSelfCost(ProjectableFilterableTableScan.java:156) > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)