From issues-return-120528-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Thu Jun 3 07:17:03 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-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id E123F180643 for ; Thu, 3 Jun 2021 09:17:03 +0200 (CEST) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id D207960CBD for ; Thu, 3 Jun 2021 07:17:02 +0000 (UTC) Received: (qmail 40654 invoked by uid 500); 3 Jun 2021 07:17:02 -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 40597 invoked by uid 99); 3 Jun 2021 07:17:01 -0000 Received: from mailrelay1-he-de.apache.org (HELO mailrelay1-he-de.apache.org) (116.203.21.61) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jun 2021 07:17:01 +0000 Received: from jira2-he-de.apache.org (unknown [IPv6:2a01:4f8:242:1f49::2]) by mailrelay1-he-de.apache.org (ASF Mail Server at mailrelay1-he-de.apache.org) with ESMTPS id 87F953EA57 for ; Thu, 3 Jun 2021 07:17:00 +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 3BEEDC80998 for ; Thu, 3 Jun 2021 07:17:00 +0000 (UTC) Date: Thu, 3 Jun 2021 07:17:00 +0000 (UTC) From: "Vladislav Pyatkov (Jira)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-14821) AssertionError: Historical iterator tries to iterate WAL out of reservation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Vladislav Pyatkov created IGNITE-14821: ------------------------------------------ Summary: AssertionError: Historical iterator tries to iterate WAL out of reservation Key: IGNITE-14821 URL: https://issues.apache.org/jira/browse/IGNITE-14821 Project: Ignite Issue Type: Improvement Reporter: Vladislav Pyatkov A reason of the issue is incorrect comparison WAL pointer, that leads to choose not quite the last pointer for reservation before rebalance. The old code selected the earliest WAL segment, but not the last pointer in it. Assuming assertion error in description: Historical iterator tries to iterate WAL out of reservation [cache=SYSTEM_CACHEGROUP_LONGKEYS, reservedPointer=FileWALPointer [idx=10, fileOff=448674503, len=104925], historicalPointer=FileWALPointer [idx=10, fileOff=442844723, len=104925]] reservedPointer is chosen incorrect, but corresponds to the valid segment {{idx=10}} (the same as in historicalPointer). A valid comparison of WAL pointers solved this issue. Segment number and segment offset participate in it together (look at the FileWalPointer#comapreTo method). -- This message was sent by Atlassian Jira (v8.3.4#803005)