You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "sashapolo (via GitHub)" <gi...@apache.org> on 2023/03/29 07:51:57 UTC

[GitHub] [ignite-3] sashapolo commented on a diff in pull request #1854: IGNITE-18865 Test storage recovery on rebalance abortion

sashapolo commented on code in PR #1854:
URL: https://github.com/apache/ignite-3/pull/1854#discussion_r1151528855


##########
modules/table/src/test/java/org/apache/ignite/internal/table/distributed/TableManagerTest.java:
##########
@@ -734,21 +820,21 @@ private TableManager createTableManager(CompletableFuture<TableManager> tblManag
         ) {
             @Override
             protected MvTableStorage createTableStorage(TableConfiguration tableCfg, TablesConfiguration tablesCfg) {
-                return Mockito.spy(super.createTableStorage(tableCfg, tablesCfg));
+                mvTableStorage = spy(super.createTableStorage(tableCfg, tablesCfg));
+
+                return mvTableStorage;
             }
 
             @Override
             protected TxStateTableStorage createTxStateTableStorage(TableConfiguration tableCfg) {
-                return Mockito.spy(super.createTxStateTableStorage(tableCfg));
+                txStateTableStorage = spy(super.createTxStateTableStorage(tableCfg));
+
+                return txStateTableStorage;
             }
         };
 
         sm.start();
 
-        if (!waitingSqlSchema) {

Review Comment:
   Most likely this is a remnant of a refactoring (take a look at [this commit](https://github.com/apache/ignite-3/commit/dac5eea8a7e068e70759f21dc180b595c9b7038d#diff-55a0f3352995b95631fd08274bac04cc06655335ff88eeef8ca362bf88869ff2R773).  The listener is a no-op now, unless I'm missing something. And the tests pass without it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org