tkalkirill commented on code in PR #1325:
URL: https://github.com/apache/ignite-3/pull/1325#discussion_r1030533278


##########
modules/page-memory/src/test/java/org/apache/ignite/internal/pagememory/persistence/store/FilePageStoreManagerTest.java:
##########
@@ -358,19 +347,133 @@ void testAllPageStores() throws Exception {
 
         manager.start();
 
-        manager.initialize("test0", 1, 1);
-        manager.initialize("test1", 2, 1);
+        manager.initialize("test0", 1, 0);
+        manager.initialize("test1", 2, 0);
+
+        List<Path> allPageStoreFiles = manager.allPageStores().stream()
+                .map(GroupPageStores::getAll)
+                .flatMap(Collection::stream)
+                .map(PartitionPageStore::pageStore)
+                .map(FilePageStore::filePath)
+                .collect(toList());
 
         assertThat(
-                
manager.allPageStores().stream().flatMap(List::stream).map(FilePageStore::filePath).collect(toList()),
+                allPageStoreFiles,
                 containsInAnyOrder(
                         workDir.resolve("db/table-1").resolve("part-0.bin"),
                         workDir.resolve("db/table-2").resolve("part-0.bin")
                 )
         );
     }
 
+    @Test
+    void testOnPartitionDestruction() throws Exception {
+        FilePageStoreManager manager = createManager();
+
+        manager.start();
+
+        manager.initialize("test0", 0, 0);
+        manager.initialize("test1", 1, 0);
+
+        FilePageStore filePageStore0 = manager.getStore(0, 0);
+        FilePageStore filePageStore1 = manager.getStore(1, 0);
+
+        filePageStore0.ensure();

Review Comment:
   I don’t know the reasons, it came from 2.0



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to