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

Vladislav Pyatkov updated IGNITE-22043:
---------------------------------------
    Description: 
h3. Motivation
When the assignments moved from the table to the zone description, we just 
removed a code that was removing the assignment from Meta storage.
{code}
Set<ByteArray> assignmentKeys = IntStream.range(0, partitions)
        .mapToObj(p -> stablePartAssignmentsKey(new TablePartitionId(tableId, 
p)))
        .collect(toSet());
metaStorageMgr.removeAll(assignmentKeys);
{code}
Of course, this is incorrect because the assignment is stored indefinitely now.

h3. Definition of done
Restoring the code when a zone is deleted.

  was:
h3. Motivation
When the assignments moved from the table to the zone description, we just 
removed a code that was removing the assignment from Meta storage.
{code}
Set<ByteArray> assignmentKeys = IntStream.range(0, partitions)
        .mapToObj(p -> stablePartAssignmentsKey(new TablePartitionId(tableId, 
p)))
        .collect(toSet());
metaStorageMgr.removeAll(assignmentKeys);
{code}
Of course, this is incorrect because the assignment is stored indefinitely now.

h3. Definition of don
Restoring the code when a zone is deleted.


> Remove assignment from Meta storage
> -----------------------------------
>
>                 Key: IGNITE-22043
>                 URL: https://issues.apache.org/jira/browse/IGNITE-22043
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Vladislav Pyatkov
>            Priority: Major
>              Labels: ignite-3
>
> h3. Motivation
> When the assignments moved from the table to the zone description, we just 
> removed a code that was removing the assignment from Meta storage.
> {code}
> Set<ByteArray> assignmentKeys = IntStream.range(0, partitions)
>         .mapToObj(p -> stablePartAssignmentsKey(new TablePartitionId(tableId, 
> p)))
>         .collect(toSet());
> metaStorageMgr.removeAll(assignmentKeys);
> {code}
> Of course, this is incorrect because the assignment is stored indefinitely 
> now.
> h3. Definition of done
> Restoring the code when a zone is deleted.



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

Reply via email to