You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Maksim Timonin (Jira)" <ji...@apache.org> on 2020/12/14 15:57:00 UTC

[jira] [Comment Edited] (IGNITE-13190) Core defragmentation functions

    [ https://issues.apache.org/jira/browse/IGNITE-13190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17249069#comment-17249069 ] 

Maksim Timonin edited comment on IGNITE-13190 at 12/14/20, 3:56 PM:
--------------------------------------------------------------------

[~sergeychugunov] [~ibessonov] [~mmuzaf]

Hi! I'm was discovering how defragmentation work and found that defragmentation performed only for single index per table [1]. Is it correct behavior?

Also there is fixed offset 2 to get the index. It may lead to ArrayOutOfBoundsException in case of rebuilding hash index [2]. But I'm not sure whether this situation is possible or not.

[1] [IndexingDefragmentation.java#L124|https://github.com/apache/ignite/blob/dc4b71b230e289e5b0d99b00e0632c9d1d0e6e82/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/defragmentation/IndexingDefragmentation.java#L124]

[2] [GridH2Table.java#L1163|https://github.com/apache/ignite/blob/2fbbb676386515ea881e4e61f08864d6bc93225a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Table.java#L1163]


was (Author: timonin.maksim):
[~sergeychugunov] [~ibessonov] [~mmuzaf]

Hi! I'm was discovering how defragmentation work and found that defragmentation performed only for single index per table [1]. Is it correct behavior?

Also there is fixed offset 2 to get the index. It may lead to ArrayOutOfBoundsException in case of rebuilding hash index [2]. I'm not sure whether this situation is possible or not.

[1] [IndexingDefragmentation.java#L124|https://github.com/apache/ignite/blob/dc4b71b230e289e5b0d99b00e0632c9d1d0e6e82/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/defragmentation/IndexingDefragmentation.java#L124]

[2] [GridH2Table.java#L1163|https://github.com/apache/ignite/blob/2fbbb676386515ea881e4e61f08864d6bc93225a/modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Table.java#L1163]

> Core defragmentation functions
> ------------------------------
>
>                 Key: IGNITE-13190
>                 URL: https://issues.apache.org/jira/browse/IGNITE-13190
>             Project: Ignite
>          Issue Type: Sub-task
>            Reporter: Sergey Chugunov
>            Assignee: Ivan Bessonov
>            Priority: Major
>              Labels: IEP-47
>             Fix For: 2.10
>
>          Time Spent: 20h 50m
>  Remaining Estimate: 0h
>
> The following set of functions covering defragmentation happy-case needed:
>  * Initialization of defragmentation manager when node is started in maintenance mode.
>  * Information about partition files is gathered by defrag mgr.
>  * For each partition file corresponding file of defragmented partition is created and initialized.
>  * Keys are transferred from old partitions to new partitions.
>  * Checkpointer is aware of new partition files and flushes defragmented memory to new partition files.
>  
> No fault-tolerance code nor index defragmentation mappings are needed in this task.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)