[ 
https://issues.apache.org/jira/browse/IGNITE-29334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Werner updated IGNITE-29334:
-----------------------------------
    Description: 
IgniteIndexReader#visitPageList adds each page list node page to the page list 
statistics twice, so the "<PAGE_LIST> ---- Page stat:" table shows twice the 
real number of PagesListNodeIO pages and twice their free space.

Since IGNITE-17161 the node page is read twice, and only the second read was 
counted. IGNITE-17181 started counting the first read as well but kept the 
second one.

Fix: remove the second read. The first one already marks the page as visited, 
so the sequential scan still does not
report it as an orphan.

  was:
IgniteIndexReader#visitPageList reads each page list node page twice and adds 
it to the statistics both times.
As a result, the "<PAGE_LIST> ---- Page stat:" table shows twice the real 
number of PagesListNodeIO pages and twice their free space.

The second read is left over from IGNITE-17181, which started collecting stats 
from the first read.

Fix: remove the second read. The first one already marks the page as visited, 
so the sequential scan still does not report it as an orphan.


> Index reader counts page list node pages twice
> ----------------------------------------------
>
>                 Key: IGNITE-29334
>                 URL: https://issues.apache.org/jira/browse/IGNITE-29334
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Dmitry Werner
>            Assignee: Dmitry Werner
>            Priority: Minor
>             Fix For: 2.20
>
>
> IgniteIndexReader#visitPageList adds each page list node page to the page 
> list statistics twice, so the "<PAGE_LIST> ---- Page stat:" table shows twice 
> the real number of PagesListNodeIO pages and twice their free space.
> Since IGNITE-17161 the node page is read twice, and only the second read was 
> counted. IGNITE-17181 started counting the first read as well but kept the 
> second one.
> Fix: remove the second read. The first one already marks the page as visited, 
> so the sequential scan still does not
> report it as an orphan.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to