[ 
https://issues.apache.org/jira/browse/IGNITE-27843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Bessonov updated IGNITE-27843:
-----------------------------------
       Reviewer: Roman Puchkovskiy
    Description: 
{code:java}
Caused by: org.apache.ignite.internal.storage.index.IndexNotBuiltException: 
IGN-STORAGE-1 Index not built yet: [indexId=59, partitionId=31] TraceId:f662e871
        at 
org.apache.ignite.internal.storage.util.StorageUtils.throwExceptionIfIndexIsNotBuilt(StorageUtils.java:272)
        at 
org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.throwExceptionIfIndexIsNotBuilt(AbstractPageMemoryIndexStorage.java:493)
        at 
org.apache.ignite.internal.storage.pagememory.index.sorted.PageMemorySortedIndexStorage.lambda$readOnlyScan$6(PageMemorySortedIndexStorage.java:154)
        at 
org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.busy(AbstractPageMemoryIndexStorage.java:327)
        at 
org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.busyDataRead(AbstractPageMemoryIndexStorage.java:318)
        at 
org.apache.ignite.internal.storage.pagememory.index.sorted.PageMemorySortedIndexStorage.readOnlyScan(PageMemorySortedIndexStorage.java:151)
        at 
org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.lambda$scanSortedIndex$64(PartitionReplicaListener.java:1781)
        at 
org.apache.ignite.internal.tx.impl.RemotelyTriggeredResourceRegistry.lambda$register$0(RemotelyTriggeredResourceRegistry.java:56)
        at 
java.base/java.util.concurrent.ConcurrentSkipListMap.computeIfAbsent(ConcurrentSkipListMap.java:1462)
        at 
org.apache.ignite.internal.tx.impl.RemotelyTriggeredResourceRegistry.register(RemotelyTriggeredResourceRegistry.java:56)
        at 
org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.scanSortedIndex(PartitionReplicaListener.java:1780)
        at 
org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.lambda$processReadOnlyScanRetrieveBatchAction$19(PartitionReplicaListener.java:731)
        at 
java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
        ... 22 more
{code}

This is caused by the reordering of build index raft commands in cases when 
primary replica is not collocated with replication group leader. Reasons for 
the reordering will be figured out separately, here we only need a quick fix.


  was:

{code:java}
Caused by: org.apache.ignite.internal.storage.index.IndexNotBuiltException: 
IGN-STORAGE-1 Index not built yet: [indexId=59, partitionId=31] TraceId:f662e871
        at 
org.apache.ignite.internal.storage.util.StorageUtils.throwExceptionIfIndexIsNotBuilt(StorageUtils.java:272)
        at 
org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.throwExceptionIfIndexIsNotBuilt(AbstractPageMemoryIndexStorage.java:493)
        at 
org.apache.ignite.internal.storage.pagememory.index.sorted.PageMemorySortedIndexStorage.lambda$readOnlyScan$6(PageMemorySortedIndexStorage.java:154)
        at 
org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.busy(AbstractPageMemoryIndexStorage.java:327)
        at 
org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.busyDataRead(AbstractPageMemoryIndexStorage.java:318)
        at 
org.apache.ignite.internal.storage.pagememory.index.sorted.PageMemorySortedIndexStorage.readOnlyScan(PageMemorySortedIndexStorage.java:151)
        at 
org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.lambda$scanSortedIndex$64(PartitionReplicaListener.java:1781)
        at 
org.apache.ignite.internal.tx.impl.RemotelyTriggeredResourceRegistry.lambda$register$0(RemotelyTriggeredResourceRegistry.java:56)
        at 
java.base/java.util.concurrent.ConcurrentSkipListMap.computeIfAbsent(ConcurrentSkipListMap.java:1462)
        at 
org.apache.ignite.internal.tx.impl.RemotelyTriggeredResourceRegistry.register(RemotelyTriggeredResourceRegistry.java:56)
        at 
org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.scanSortedIndex(PartitionReplicaListener.java:1780)
        at 
org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.lambda$processReadOnlyScanRetrieveBatchAction$19(PartitionReplicaListener.java:731)
        at 
java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
        ... 22 more
{code}

This is caused by the reordering of build index raft commands in cases when 
primary replica is not collocated with replication group leader. Reasons for 
the reordering will be figured out separately, here we only need a quick fix.



> Available index reports that it's not built
> -------------------------------------------
>
>                 Key: IGNITE-27843
>                 URL: https://issues.apache.org/jira/browse/IGNITE-27843
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Ivan Bessonov
>            Assignee: Ivan Bessonov
>            Priority: Major
>              Labels: ignite-3
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {code:java}
> Caused by: org.apache.ignite.internal.storage.index.IndexNotBuiltException: 
> IGN-STORAGE-1 Index not built yet: [indexId=59, partitionId=31] 
> TraceId:f662e871
>       at 
> org.apache.ignite.internal.storage.util.StorageUtils.throwExceptionIfIndexIsNotBuilt(StorageUtils.java:272)
>       at 
> org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.throwExceptionIfIndexIsNotBuilt(AbstractPageMemoryIndexStorage.java:493)
>       at 
> org.apache.ignite.internal.storage.pagememory.index.sorted.PageMemorySortedIndexStorage.lambda$readOnlyScan$6(PageMemorySortedIndexStorage.java:154)
>       at 
> org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.busy(AbstractPageMemoryIndexStorage.java:327)
>       at 
> org.apache.ignite.internal.storage.pagememory.index.AbstractPageMemoryIndexStorage.busyDataRead(AbstractPageMemoryIndexStorage.java:318)
>       at 
> org.apache.ignite.internal.storage.pagememory.index.sorted.PageMemorySortedIndexStorage.readOnlyScan(PageMemorySortedIndexStorage.java:151)
>       at 
> org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.lambda$scanSortedIndex$64(PartitionReplicaListener.java:1781)
>       at 
> org.apache.ignite.internal.tx.impl.RemotelyTriggeredResourceRegistry.lambda$register$0(RemotelyTriggeredResourceRegistry.java:56)
>       at 
> java.base/java.util.concurrent.ConcurrentSkipListMap.computeIfAbsent(ConcurrentSkipListMap.java:1462)
>       at 
> org.apache.ignite.internal.tx.impl.RemotelyTriggeredResourceRegistry.register(RemotelyTriggeredResourceRegistry.java:56)
>       at 
> org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.scanSortedIndex(PartitionReplicaListener.java:1780)
>       at 
> org.apache.ignite.internal.table.distributed.replicator.PartitionReplicaListener.lambda$processReadOnlyScanRetrieveBatchAction$19(PartitionReplicaListener.java:731)
>       at 
> java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1187)
>       ... 22 more
> {code}
> This is caused by the reordering of build index raft commands in cases when 
> primary replica is not collocated with replication group leader. Reasons for 
> the reordering will be figured out separately, here we only need a quick fix.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to