vldpyatkov commented on code in PR #13774:
URL: https://github.com/apache/ignite/pull/13774#discussion_r4442909374


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java:
##########
@@ -5392,8 +5392,19 @@ private class CacheRecoveryLifecycle implements 
MetastorageLifecycleListener, Da
         /** {@inheritDoc} */
         @Override public void beforeBinaryMemoryRestore(
             IgniteCacheDatabaseSharedManager mgr) throws 
IgniteCheckedException {
-            for (DynamicCacheDescriptor cacheDescriptor : persistentCaches())
-                preparePageStore(cacheDescriptor, true);
+            // Reserve at least 2 threads for system operations.
+            int parallelismLvl = U.availableThreadCount(ctx, 
GridIoPolicy.SYSTEM_POOL, 2);

Review Comment:
   We can use all the readings, but look at the other snippet. We are always 
reserving 2 threads for a system op.



-- 
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