From issues-return-120432-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Jun 1 06:23:06 2021 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-ec2-va.apache.org (mxout1-ec2-va.apache.org [3.227.148.255]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id 203E3180636 for ; Tue, 1 Jun 2021 08:23:06 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-ec2-va.apache.org (ASF Mail Server at mxout1-ec2-va.apache.org) with SMTP id 497A03F914 for ; Tue, 1 Jun 2021 06:23:05 +0000 (UTC) Received: (qmail 47667 invoked by uid 500); 1 Jun 2021 06:23:04 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 47283 invoked by uid 99); 1 Jun 2021 06:23:01 -0000 Received: from ec2-52-204-25-47.compute-1.amazonaws.com (HELO mailrelay1-ec2-va.apache.org) (52.204.25.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jun 2021 06:23:01 +0000 Received: from jira2-he-de.apache.org (jira2-he-de.apache.org [168.119.33.54]) by mailrelay1-ec2-va.apache.org (ASF Mail Server at mailrelay1-ec2-va.apache.org) with ESMTPS id A2DED422FC for ; Tue, 1 Jun 2021 06:23:01 +0000 (UTC) Received: from jira2-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira2-he-de.apache.org (ASF Mail Server at jira2-he-de.apache.org) with ESMTP id 71AD9C81E9E for ; Tue, 1 Jun 2021 06:23:00 +0000 (UTC) Date: Tue, 1 Jun 2021 06:23:00 +0000 (UTC) From: "Kirill Tkalenko (Jira)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-8719) Index left partially built if a node crashes during index create or rebuild MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-8719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354836#comment-17354836 ] Kirill Tkalenko commented on IGNITE-8719: ----------------------------------------- [~jooger] Please make code review. > Index left partially built if a node crashes during index create or rebuild > --------------------------------------------------------------------------- > > Key: IGNITE-8719 > URL: https://issues.apache.org/jira/browse/IGNITE-8719 > Project: Ignite > Issue Type: Bug > Components: sql > Reporter: Alexey Goncharuk > Assignee: Kirill Tkalenko > Priority: Critical > Fix For: 2.11 > > Attachments: IndexRebuildAfterNodeCrashTest.java, IndexRebuildingTest.java > > Time Spent: 4h 10m > Remaining Estimate: 0h > > Currently, we do not have any state associated with the index tree. Consider the following scenario: > 1) Start node, put some data > 2) start CREATE INDEX operation > 3) Wait for a checkpoint and stop node before index create finished > 4) Restart node > Since the checkpoint finished, the new index tree will be persisted to the disk, but not all data will be present in the index. > We should somehow store information about initializing index tree and mark it valid only after all data is indexed. The state should be persisted as well. -- This message was sent by Atlassian Jira (v8.3.4#803005)