From dev-return-45612-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Apr 5 12:10:03 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 060C2180778 for ; Fri, 5 Apr 2019 14:10:02 +0200 (CEST) Received: (qmail 26306 invoked by uid 500); 5 Apr 2019 12:10:01 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 26253 invoked by uid 99); 5 Apr 2019 12:10:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2019 12:10:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7E2D3E2883 for ; Fri, 5 Apr 2019 12:10:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 705D7245A4 for ; Fri, 5 Apr 2019 12:10:00 +0000 (UTC) Date: Fri, 5 Apr 2019 12:10:00 +0000 (UTC) From: "Alexey Goncharuk (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-11687) Concurrent WAL replay & log may fail with CRC error on read MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Alexey Goncharuk created IGNITE-11687: ----------------------------------------- Summary: Concurrent WAL replay & log may fail with CRC error on read Key: IGNITE-11687 URL: https://issues.apache.org/jira/browse/IGNITE-11687 Project: Ignite Issue Type: Bug Reporter: Alexey Goncharuk The cause is the way {{end}} is calculated for WAL iterator: {code} if (hnd != null) end = hnd.position(); {code} {code} @Override public FileWALPointer position() { lock.lock(); try { return new FileWALPointer(getSegmentId(), (int)written, 0); } finally { lock.unlock(); } } {code} Consider a partially written entry. In this case, {{written}} has been already updated, concurrent WAL replay will attempt to read the incompletely written record and since {{end}} is not null, iterator will fail with CRC error. -- This message was sent by Atlassian JIRA (v7.6.3#76005)