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

Aleksandr Polovtsev updated IGNITE-24626:
-----------------------------------------
    Reviewer: Kirill Tkalenko

> Not enough information in assertion message
> -------------------------------------------
>
>                 Key: IGNITE-24626
>                 URL: https://issues.apache.org/jira/browse/IGNITE-24626
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksandr Polovtsev
>            Assignee: Aleksandr Polovtsev
>            Priority: Major
>              Labels: ignite-3
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> We've got the following exception during one of our tests:
> {code:java}
>       at 
> org.apache.ignite.internal.table.distributed.TableManager.lambda$tableStopFuture$90(TableManager.java:1932)
>       at 
> java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
>  
>       at 
> java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
>  
> java.util.concurrent.CompletionException: java.lang.AssertionError:  
> REBALANCE 
>       at 
> java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
>  
>       at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
>  
>       at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
>  
>       at java.base/java.lang.Thread.run(Thread.java:833) 
> Caused by: java.lang.AssertionError:  REBALANCE
>       at 
> org.apache.ignite.internal.tx.storage.state.rocksdb.TxStateRocksDbPartitionStorage.tryToCloseStorageAndResources(TxStateRocksDbPartitionStorage.java:575)
>       at 
> org.apache.ignite.internal.tx.storage.state.rocksdb.TxStateRocksDbPartitionStorage.close(TxStateRocksDbPartitionStorage.java:415)
> {code}
> There are several issues here:
> # The assertion error does not contain enough information, like partitionId 
> and tableId of the failed storage.
> # Inside {{TableManager#tableStopFuture}} `whenCompleteAsync` is used, which 
> can hide the original exception that happened before closing the storages.



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

Reply via email to