From issues-return-80136-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Tue Oct 30 14:30:04 2018 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 0BEE4180652 for ; Tue, 30 Oct 2018 14:30:03 +0100 (CET) Received: (qmail 37128 invoked by uid 500); 30 Oct 2018 13:30:03 -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 37119 invoked by uid 99); 30 Oct 2018 13:30:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Oct 2018 13:30:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BC056C27CC for ; Tue, 30 Oct 2018 13:30:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mdZ94_95hQww for ; Tue, 30 Oct 2018 13:30:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id ED5725F36F for ; Tue, 30 Oct 2018 13:30:01 +0000 (UTC) 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 44AB6E25D5 for ; Tue, 30 Oct 2018 13:30: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 84AB827768 for ; Tue, 30 Oct 2018 13:30:00 +0000 (UTC) Date: Tue, 30 Oct 2018 13:30:00 +0000 (UTC) From: "Ignite TC Bot (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-10048) Bounded iteration in standalone WAL iterator with compaction enabled may skip records 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-10048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16668693#comment-16668693 ] Ignite TC Bot commented on IGNITE-10048: ---------------------------------------- {panel:title=Possible Blockers|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1} {color:#d04437}PDS (Direct IO) 2{color} [[tests 2|https://ci.ignite.apache.org/viewLog.html?buildId=2200459]] * IgnitePdsNativeIoTestSuite2: IgniteWalIteratorExceptionDuringReadTest.test - 0,0% fails in last 100 master runs. {color:#d04437}ZooKeeper (Discovery) 2{color} [[tests 5|https://ci.ignite.apache.org/viewLog.html?buildId=2200461]] * ZookeeperDiscoverySpiTestSuite2: GridEventConsumeSelfTest.testEventsByFilter - 1,0% fails in last 100 master runs. {color:#d04437}PDS 2{color} [[tests 2|https://ci.ignite.apache.org/viewLog.html?buildId=2200463]] * IgnitePdsTestSuite2: IgniteWalIteratorExceptionDuringReadTest.test - 0,0% fails in last 100 master runs. {panel} [TeamCity Run All Results|http://ci.ignite.apache.org/viewLog.html?buildId=2193103&buildTypeId=IgniteTests24Java8_RunAll] > Bounded iteration in standalone WAL iterator with compaction enabled may skip records > ------------------------------------------------------------------------------------- > > Key: IGNITE-10048 > URL: https://issues.apache.org/jira/browse/IGNITE-10048 > Project: Ignite > Issue Type: Improvement > Reporter: Ivan Rakov > Assignee: Ivan Rakov > Priority: Major > Fix For: 2.8 > > > Bounded iteration with non-zero start/end offsets may skip some records in intermediate segments. Reproducer (wal compaction should be enabled): > {noformat} > /** > * > */ > public void testBoundedIterationOverSeveralSegments() throws Exception { > walCompactionEnabled = true; > IgniteEx ig = (IgniteEx)startGrid(); > String archiveWalDir = getArchiveWalDirPath(ig); > ig.cluster().active(true); > IgniteCache cache = ig.getOrCreateCache( > new CacheConfiguration<>().setName("c-n").setAffinity(new RendezvousAffinityFunction(false, 32))); > IgniteCacheDatabaseSharedManager sharedMgr = ig.context().cache().context().database(); > IgniteWriteAheadLogManager walMgr = ig.context().cache().context().wal(); > WALPointer fromPtr = null; > int recordsCnt = WAL_SEGMENT_SIZE / 8 /* record size */ * 5; > for (int i = 0; i < recordsCnt; i++) { > WALPointer ptr = walMgr.log(new PartitionDestroyRecord(i, i)); > if (i == 100) > fromPtr = ptr; > } > assertNotNull(fromPtr); > cache.put(1, 1); > forceCheckpoint(); > // Generate WAL segments for filling WAL archive folder. > for (int i = 0; i < 2 * ig.configuration().getDataStorageConfiguration().getWalSegments(); i++) { > sharedMgr.checkpointReadLock(); > try { > walMgr.log(new SnapshotRecord(i, false), RolloverType.NEXT_SEGMENT); > } > finally { > sharedMgr.checkpointReadUnlock(); > } > } > cache.put(2, 2); > forceCheckpoint(); > U.sleep(5000); > stopGrid(); > WALIterator it = new IgniteWalIteratorFactory(log) > .iterator(new IteratorParametersBuilder().from((FileWALPointer)fromPtr).filesOrDirs(archiveWalDir)); > TreeSet foundCounters = new TreeSet<>(); > it.forEach(x -> { > WALRecord rec = x.get2(); > if (rec instanceof PartitionDestroyRecord) > foundCounters.add(((WalRecordCacheGroupAware)rec).groupId()); > }); > assertEquals(new Integer(100), foundCounters.first()); > assertEquals(new Integer(recordsCnt - 1), foundCounters.last()); > assertEquals(recordsCnt - 100, foundCounters.size()); > } > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)