Ivan Bessonov created IGNITE-23103:
--------------------------------------

             Summary: RandomLruPageReplacementPolicy is not fully ported
                 Key: IGNITE-23103
                 URL: https://issues.apache.org/jira/browse/IGNITE-23103
             Project: Ignite
          Issue Type: Bug
            Reporter: Ivan Bessonov


There should be a line
{code:java}
if (relRmvAddr == rndAddr || pinned || skip || (dirty && (checkpointPages == 
null || !checkpointPages.contains(fullId)))) {{code}
instead of
{code:java}
if (relRmvAddr == rndAddr || pinned || skip || dirty) { {code}
Due to this mistake we have several conditions, that are always evaluated to 
constants, namely
 * 
{{!dirty}} - always true
 * 
{{pageTs < dirtyTs && dirty && !storMeta}} - always false

Ideally, we should add tests that would cover this situation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to