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/05/13 11:12:00 UTC
[jira] [Created] (IGNITE-16980) PageMemoryPartitionStorage#write() can leak page slots
Roman Puchkovskiy created IGNITE-16980:
------------------------------------------
Summary: 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
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)