nizhikov commented on code in PR #10603:
URL: https://github.com/apache/ignite/pull/10603#discussion_r1152968195
##########
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/snapshot/IgniteSnapshotManagerSelfTest.java:
##########
@@ -466,9 +468,11 @@ public void testSnapshotIteratorLargeRows() throws
Exception {
for (int i = 0; i < keys; i++)
ignite.getOrCreateCache(ccfg).put(i, new Value(new
byte[SIZE_FOR_FIT_3_PAGES]));
+ ignite = grid(ignite.affinity(ccfg.getName()).mapPartitionToNode(0));
Review Comment:
```
try (GridCloseableIterator<CacheDataRow> iter =
snp(ignite).partitionRowIterator(SNAPSHOT_NAME,
ignite.context().pdsFolderResolver().resolveFolders().folderName(),
dfltCacheCfg.getName(),
part,
ignite.context().encryption())
) {
```
Because, few lines below we trying to iterate 0 partition from snapshot.
And in `onlyPrimary==true` mode partition file will be only on primary node.
Constant introduced so this should simplify reading.
--
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]