[ 
https://issues.apache.org/jira/browse/IGNITE-22661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867342#comment-17867342
 ] 

Denis Chudov commented on IGNITE-22661:
---------------------------------------

The bug from IGNITE-22415 is still able to be reproduced
{code:java}
java.util.concurrent.CompletionException: java.lang.AssertionError: tableId=43, 
catalogVersion=40
    at 
java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:645)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:2079)
 ~[?:?]
    at 
org.apache.ignite.internal.util.CompletableFutures.lambda$copyStateTo$2(CompletableFutures.java:160)
 ~[ignite-core-9.0.127-SNAPSHOT.jar:?]
    at 
java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:883)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2257)
 ~[?:?]
    at 
org.apache.ignite.internal.causality.BaseVersionedValue.copyState(BaseVersionedValue.java:315)
 ~[ignite-core-9.0.127-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.causality.BaseVersionedValue.complete(BaseVersionedValue.java:201)
 ~[ignite-core-9.0.127-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.causality.IncrementalVersionedValue.lambda$completeInternal$2(IncrementalVersionedValue.java:256)
 ~[ignite-core-9.0.127-SNAPSHOT.jar:?]
    at 
java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:883)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2257)
 ~[?:?]
    at 
org.apache.ignite.internal.causality.IncrementalVersionedValue.completeInternal(IncrementalVersionedValue.java:256)
 ~[ignite-core-9.0.127-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.metastorage.server.WatchProcessor.notifyUpdateRevisionListeners(WatchProcessor.java:379)
 ~[ignite-metastorage-9.0.127-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.metastorage.server.WatchProcessor.lambda$notifyWatches$4(WatchProcessor.java:200)
 ~[ignite-metastorage-9.0.127-SNAPSHOT.jar:?]
    at 
java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
 ~[?:?]
    at 
java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
 ~[?:?]
    at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 ~[?:?]
    at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 ~[?:?]
    at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.AssertionError: tableId=43, catalogVersion=40
    at 
org.apache.ignite.internal.table.distributed.TableManager.getTableDescriptor(TableManager.java:2892)
 ~[ignite-table-9.0.127-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.table.distributed.TableManager.setTablesPartitionCountersForRebalance(TableManager.java:2291)
 ~[ignite-table-9.0.127-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.table.distributed.TableManager.lambda$handleChangePendingAssignmentEvent$102(TableManager.java:2093)
 ~[ignite-table-9.0.127-SNAPSHOT.jar:?]
    at 
java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:642)
 ~[?:?]
    ... 20 more{code}

> Add catalog version into Assignments
> ------------------------------------
>
>                 Key: IGNITE-22661
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22661
>             Project: Ignite
>          Issue Type: Bug
>            Reporter:  Kirill Sizov
>            Assignee:  Kirill Sizov
>            Priority: Major
>              Labels: ignite-3
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> This task emerged from the analysis of IGNITE-22415. The observed failure was 
> caused by a missing table in the catalog. 
> It happens when tables and zones are dropped and the zone is altered.
> Such activity triggers the pending assignment change and the table descriptor 
> could not be found in the latest version of catalog.
> The suggested fix is to bundle catalog version into Assignments and use it 
> instead of taking the latest available one.
> *Other catalog version issues*
> The catalog version issue for table counters was fixed in IGNITE-22415.
> This task covers the fix of catalog version in the assignments handlers.
> Indexes are also affected by mismatching catalog version, there is already a 
> task for that IGNITE-22656



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

Reply via email to