tkalkirill commented on code in PR #1605:
URL: https://github.com/apache/ignite-3/pull/1605#discussion_r1091831978
##########
modules/storage-api/src/testFixtures/java/org/apache/ignite/internal/storage/AbstractMvTableStorageTest.java:
##########
@@ -544,37 +544,30 @@ public void testStartRebalanceForClosedPartition() {
}
@Test
- public void testDestroyTableStorage() throws Exception {
+ public void testDestroyTableStorage() {
MvPartitionStorage mvPartitionStorage =
tableStorage.getOrCreateMvPartition(PARTITION_ID);
HashIndexStorage hashIndexStorage =
tableStorage.getOrCreateHashIndex(PARTITION_ID, hashIdx.id());
SortedIndexStorage sortedIndexStorage =
tableStorage.getOrCreateSortedIndex(PARTITION_ID, sortedIdx.id());
- RowId rowId = new RowId(PARTITION_ID);
-
- TableRow tableRow = tableRow(new TestKey(0, "0"), new TestValue(1,
"1"));
-
- IndexRow hashIndexRow = indexRow(hashIndexStorage.indexDescriptor(),
tableRow, rowId);
- IndexRow sortedIndexRow =
indexRow(sortedIndexStorage.indexDescriptor(), tableRow, rowId);
-
- mvPartitionStorage.runConsistently(() -> {
- mvPartitionStorage.addWriteCommitted(rowId, tableRow, clock.now());
-
- hashIndexStorage.put(hashIndexRow);
-
- sortedIndexStorage.put(sortedIndexRow);
+ List<IgniteTuple3<RowId, TableRow, HybridTimestamp>> rows = List.of(
Review Comment:
These are tests, they(`IgniteTuple3`) are already used in several tests,
let's not touch them?
--
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]