You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Roman Puchkovskiy (Jira)" <ji...@apache.org> on 2022/06/01 09:09:00 UTC
[jira] [Resolved] (IGNITE-16980) PageMemoryPartitionStorage#write() can leak page slots
[ https://issues.apache.org/jira/browse/IGNITE-16980?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roman Puchkovskiy resolved IGNITE-16980.
----------------------------------------
Resolution: Won't Fix
Closing as this code will be removed soon
> PageMemoryPartitionStorage#write() can leak page slots
> ------------------------------------------------------
>
> Key: IGNITE-16980
> URL: https://issues.apache.org/jira/browse/IGNITE-16980
> Project: Ignite
> Issue Type: Bug
> Components: persistence
> Reporter: Roman Puchkovskiy
> Assignee: Kirill Tkalenko
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-alpha5
>
>
> {{public void write(DataRow row) throws StorageException {}}
> {{ try {}}
> {{ TableDataRow dataRow = wrap(row);}}
> {{ freeList.insertDataRow(dataRow);}}
> {{ tree.put(dataRow);}}
> {{ } catch (IgniteInternalCheckedException e) {}}
> {{ throw new StorageException("Error writing row", e);}}
> {{ }}}
> {{}}}
> This code always occupies a slot in a data page, even if the key was already put to the partition. So, if 2 puts with same key occur, one page slot is wasted.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)