You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Kirill Tkalenko (Jira)" <ji...@apache.org> on 2023/03/02 11:30:00 UTC

[jira] [Updated] (IGNITE-18882) Fix tombstone is stored if it is the first entry of version chain

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

Kirill Tkalenko updated IGNITE-18882:
-------------------------------------
    Reviewer: Kirill Tkalenko

> Fix tombstone is stored if it is the first entry of version chain
> -----------------------------------------------------------------
>
>                 Key: IGNITE-18882
>                 URL: https://issues.apache.org/jira/browse/IGNITE-18882
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Semyon Danilov
>            Assignee: Semyon Danilov
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> This test in AbstractMvPartitionStorageGcTest should pass   
> {code:java}
> void testTombstoneFirst() {
>         addAndCommit(null);
>         addAndCommit(TABLE_ROW);
>         addAndCommit(TABLE_ROW2);
>         BinaryRowAndRowId row = pollForVacuum(HybridTimestamp.MAX_VALUE);
>         assertRowMatches(row.binaryRow(), TABLE_ROW);
>     }
> {code}
> At this moment, storages will store the tombstone if it is the first committed value which disrupts the GC flow.
> addWrite with null argument as a first version of row is valid, for example: 
> {code:sql}
> CREATE TABLE test (
>   id INT
> );
> BEGIN;
> INSERT INTO test VALUES(1);
> DELETE from test where id = 1;
> COMMIT;
> {code}
> is ok, but tombstone should not be stored (so the operation should be no-op)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)