wernerdv commented on code in PR #13554:
URL: https://github.com/apache/ignite/pull/13554#discussion_r4393003122


##########
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/freelist/AbstractFreeList.java:
##########
@@ -1134,8 +1257,194 @@ public int emptyDataPages() {
         }
     }
 
+    /** {@inheritDoc} */
+    @Override public long reserve(long rowSize, boolean bestEffort) throws 
IgniteOutOfMemoryException, IgniteCheckedException {
+        if (!reserveEnabled)
+            return 0;
+
+        long claimPages = requiredPages(rowSize);
+
+        if (!fitsRegion(claimPages)) {
+            if (bestEffort)
+                return 0; // Let the page memory decide.
+
+            throw outOfMemory();
+        }
+
+        long limitPages = limitPages(claimPages);
+
+        boolean recentStall = bestEffort && U.currentTimeMillis() - 
lastStallMillis < EVICTION_NO_PROGRESS_TIMEOUT_MILLIS;
+
+        long backoffNanos = EVICTION_BACKOFF_START_NANOS;
+
+        long lastProgressNanos = System.nanoTime();

Review Comment:
   Agreed, switched to U.currentTimeMillis().



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