[
https://issues.apache.org/jira/browse/IGNITE-26216?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kirill Tkalenko updated IGNITE-26216:
-------------------------------------
Description:
To correctly fix problems related to partition deletion, we need to compare
partition generations, so as not to copy a page for a checkpoint, for example.
But for this, we need to store the partition generation somewhere at the time
of creating a page in memory or updating it due to detection that it has become
obsolete.
It was discovered that the page header has an unused field
"RELATIVE_PTR_OFFSET", which essentially stores only flags. I suggest using it
and storing the partition generation there instead of not using a relative
pointer.
was:
To correctly fix problems related to partition deletion, we need to compare
partition generations, so as not to copy a page for a checkpoint, for example.
But for this, we need to store the partition generation somewhere at the time
of creating a page in memory or updating it due to detection that it has become
obsolete.
It was discovered that the page header has an unused field
"RELATIVE_PTR_OFFSET", which essentially stores only flags. I suggest using it
and storing the partition generation there instead of not using a relative
pointer.
Also within this ticket it is proposed to make some changes, maybe refactorings
and improving documentation.
> Add partition generation to in-memory page header for PersistentPageMemory
> --------------------------------------------------------------------------
>
> Key: IGNITE-26216
> URL: https://issues.apache.org/jira/browse/IGNITE-26216
> Project: Ignite
> Issue Type: Improvement
> Reporter: Kirill Tkalenko
> Assignee: Kirill Tkalenko
> Priority: Major
> Labels: ignite-3
> Time Spent: 1h 40m
> Remaining Estimate: 0h
>
> To correctly fix problems related to partition deletion, we need to compare
> partition generations, so as not to copy a page for a checkpoint, for
> example. But for this, we need to store the partition generation somewhere at
> the time of creating a page in memory or updating it due to detection that it
> has become obsolete.
> It was discovered that the page header has an unused field
> "RELATIVE_PTR_OFFSET", which essentially stores only flags. I suggest using
> it and storing the partition generation there instead of not using a relative
> pointer.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)