[
https://issues.apache.org/jira/browse/IGNITE-29384?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anton Vinogradov updated IGNITE-29384:
--------------------------------------
Description:
{{SplitForwardPageRecord}}, {{MergeRecord}} and {{InnerReplaceRecord}} cannot
be created: their constructors throw an exception. For page split, merge and
inner replace, {{BPlusTree}} logs a full page image instead. So no WAL holds
the record types {{BTREE_FORWARD_PAGE_SPLIT}}, {{BTREE_PAGE_MERGE}} and
{{BTREE_PAGE_INNER_REPLACE}}, but {{RecordDataV1Serializer}} still has code to
write and read them.
Remove the three classes and their code in {{RecordDataV1Serializer}}. Keep the
record types in {{RecordType}} and mark them as deprecated, like the removed
MVCC types. The reader then rejects these types like other removed types.
Two more record types are not written by new code, but stay readable:
* {{MASTER_KEY_CHANGE_RECORD}}: a master key change is written as
{{MASTER_KEY_CHANGE_RECORD_V2}}, and the reader reads the old records into the
new class. Mark the type as deprecated, the class {{MasterKeyChangeRecord}}
already is.
* {{ENCRYPTED_RECORD}}: an encrypted record is written as
{{ENCRYPTED_RECORD_V2}}, but the reader returns {{ENCRYPTED_RECORD}} for both
formats when it has no key to decrypt the record. The type stays in use, so it
is not deprecated: its javadoc says what it is used for.
{{WalRecordSerializationCompatibilityTest}} (IGNITE-29339) keeps the three
B+tree types in {{NOT_WRITTEN}}: released versions still have the classes. If
that test is merged first, update the comment of {{NOT_WRITTEN}} in the same
change.
was:
{{SplitForwardPageRecord}}, {{MergeRecord}} and {{InnerReplaceRecord}} cannot
be created: their constructors throw an exception. For page split, merge and
inner replace, {{BPlusTree}} logs a full page image instead. So no WAL holds
the record types {{BTREE_FORWARD_PAGE_SPLIT}}, {{BTREE_PAGE_MERGE}} and
{{BTREE_PAGE_INNER_REPLACE}}, but {{RecordDataV1Serializer}} still has code to
write and read them.
Remove the three classes and their code in {{RecordDataV1Serializer}}. Keep the
record types in {{RecordType}} and mark them as deprecated, like the removed
MVCC types. The reader then rejects these types like other removed types.
{{WalRecordSerializationCompatibilityTest}} (IGNITE-29339) keeps these types in
{{NOT_WRITTEN}}: released versions still have the classes. If that test is
merged first, update the comment of {{NOT_WRITTEN}} in the same change.
> Remove the unused WAL records of B+tree page split, merge and inner replace
> ---------------------------------------------------------------------------
>
> Key: IGNITE-29384
> URL: https://issues.apache.org/jira/browse/IGNITE-29384
> Project: Ignite
> Issue Type: Task
> Reporter: Anton Vinogradov
> Assignee: Anton Vinogradov
> Priority: Major
>
> {{SplitForwardPageRecord}}, {{MergeRecord}} and {{InnerReplaceRecord}} cannot
> be created: their constructors throw an exception. For page split, merge and
> inner replace, {{BPlusTree}} logs a full page image instead. So no WAL holds
> the record types {{BTREE_FORWARD_PAGE_SPLIT}}, {{BTREE_PAGE_MERGE}} and
> {{BTREE_PAGE_INNER_REPLACE}}, but {{RecordDataV1Serializer}} still has code
> to write and read them.
> Remove the three classes and their code in {{RecordDataV1Serializer}}. Keep
> the record types in {{RecordType}} and mark them as deprecated, like the
> removed MVCC types. The reader then rejects these types like other removed
> types.
> Two more record types are not written by new code, but stay readable:
> * {{MASTER_KEY_CHANGE_RECORD}}: a master key change is written as
> {{MASTER_KEY_CHANGE_RECORD_V2}}, and the reader reads the old records into
> the new class. Mark the type as deprecated, the class
> {{MasterKeyChangeRecord}} already is.
> * {{ENCRYPTED_RECORD}}: an encrypted record is written as
> {{ENCRYPTED_RECORD_V2}}, but the reader returns {{ENCRYPTED_RECORD}} for both
> formats when it has no key to decrypt the record. The type stays in use, so
> it is not deprecated: its javadoc says what it is used for.
> {{WalRecordSerializationCompatibilityTest}} (IGNITE-29339) keeps the three
> B+tree types in {{NOT_WRITTEN}}: released versions still have the classes. If
> that test is merged first, update the comment of {{NOT_WRITTEN}} in the same
> change.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)