sanpwc commented on code in PR #7136:
URL: https://github.com/apache/ignite-3/pull/7136#discussion_r2598571998
##########
modules/partition-replicator/src/test/java/org/apache/ignite/internal/partition/replicator/handlers/TxCleanupRecoveryRequestHandlerTest.java:
##########
@@ -114,16 +112,17 @@ private void
testInterruptsCleanupGracefullyOnStorageClosed(Supplier<? extends T
when(iterator.hasNext()).thenThrow(exceptionFactory.get());
TxCleanupRecoveryRequest request =
txMessagesFactory.txCleanupRecoveryRequest()
- .groupId(toReplicationGroupIdMessage(replicaMessagesFactory,
replicationGroupId))
+ .groupId(toZonePartitionIdMessage(replicaMessagesFactory,
replicationGroupId))
.build();
assertThat(handler.handle(request), willCompleteSuccessfully());
verify(failureProcessor, never()).process(any());
}
- private static List<EnlistedPartitionGroup>
tableEnlistedPartitions(TablePartitionId... tablePartitionIds) {
- return Arrays.stream(tablePartitionIds)
- .map(tablePartitionId -> new
EnlistedPartitionGroup(tablePartitionId, Set.of(tablePartitionId.tableId())))
+ private static List<EnlistedPartitionGroup>
tableEnlistedPartitions(ZonePartitionId... zonePartitionIds) {
+ return Arrays.stream(zonePartitionIds)
+ // Assume that partition ID equals to table ID and both tables
belong to the same distribution zone.
Review Comment:
;)
--
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]