Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4F840200CC8 for ; Fri, 14 Jul 2017 15:32:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4E00F16DB55; Fri, 14 Jul 2017 13:32:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6CA1416DB52 for ; Fri, 14 Jul 2017 15:32:04 +0200 (CEST) Received: (qmail 41974 invoked by uid 500); 14 Jul 2017 13:32: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 41954 invoked by uid 99); 14 Jul 2017 13:32: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; Fri, 14 Jul 2017 13:32: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 081EEC0CD4 for ; Fri, 14 Jul 2017 13:32:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, 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 GTpHt9qYU13e for ; Fri, 14 Jul 2017 13:32: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 9B9D75FD6F for ; Fri, 14 Jul 2017 13:32: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 094B3E0D85 for ; Fri, 14 Jul 2017 13:32: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 5D6D624756 for ; Fri, 14 Jul 2017 13:32:00 +0000 (UTC) Date: Fri, 14 Jul 2017 13:32:00 +0000 (UTC) From: "Alexey Goncharuk (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-5757) RENT partition state is set before exchange is completed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 14 Jul 2017 13:32:05 -0000 [ https://issues.apache.org/jira/browse/IGNITE-5757?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Goncharuk updated IGNITE-5757: ------------------------------------- Priority: Critical (was: Major) > RENT partition state is set before exchange is completed > -------------------------------------------------------- > > Key: IGNITE-5757 > URL: https://issues.apache.org/jira/browse/IGNITE-5757 > Project: Ignite > Issue Type: Bug > Components: cache > Affects Versions: 2.1 > Reporter: Alexey Goncharuk > Assignee: Alexey Goncharuk > Priority: Critical > Fix For: 2.2 > > > I observe the following error on TC during GridCachePartitionedGetAndTran= sformStoreSelfTest run: > {code} > [2017-07-14 16:26:49,857][ERROR][sys-stripe-3-#4%near.GridCachePartitione= dGetAndTransformStoreSelfTest%][IgniteTxHandler] Failed to prepare DHT tran= saction: GridDhtTxLocal [nearNodeId=3D8a4cdb3f-85be-4286-a63d-728a6c800001,= nearFutId=3Da8ef7414d51-e91dff67-b46c-4762-b7b9-9bcf382a82a0, nearMiniId= =3D1, nearFinFutId=3Dnull, nearFinMiniId=3D0, nearXidVer=3DGridCacheVersion= [topVer=3D111518810, order=3D1500038810278, nodeOrder=3D3], super=3DGridDh= tTxLocalAdapter [nearOnOriginatingNode=3Dtrue, nearNodes=3D[], dhtNodes=3D[= ], explicitLock=3Dfalse, super=3DIgniteTxLocalAdapter [completedBase=3Dnull= , sndTransformedVals=3Dfalse, depEnabled=3Dfalse, txState=3DIgniteTxImplici= tSingleStateImpl [init=3Dtrue, recovery=3Dfalse], super=3DIgniteTxAdapter [= xidVer=3DGridCacheVersion [topVer=3D111518810, order=3D1500038810305, nodeO= rder=3D1], writeVer=3Dnull, implicit=3Dtrue, loc=3Dtrue, threadId=3D239, st= artTime=3D1500038809744, nodeId=3D322e96c3-eb1c-4aea-b9fd-3a3dae368d31, sta= rtVer=3DGridCacheVersion [topVer=3D111518810, order=3D1500038810305, nodeOr= der=3D1], endVer=3Dnull, isolation=3DREAD_COMMITTED, concurrency=3DOPTIMIST= IC, timeout=3D0, sysInvalidate=3Dfalse, sys=3Dfalse, plc=3D2, commitVer=3DG= ridCacheVersion [topVer=3D111518810, order=3D1500038810305, nodeOrder=3D1],= finalizing=3DNONE, invalidParts=3Dnull, state=3DROLLED_BACK, timedOut=3Dfa= lse, topVer=3DAffinityTopologyVersion [topVer=3D4, minorTopVer=3D0], durati= on=3D107ms, onePhaseCommit=3Dfalse], size=3D0]]] > class org.apache.ignite.internal.transactions.IgniteTxRollbackCheckedExce= ption: Failed to prepare transaction: GridDhtTxLocal [nearNodeId=3D8a4cdb3f= -85be-4286-a63d-728a6c800001, nearFutId=3Da8ef7414d51-e91dff67-b46c-4762-b7= b9-9bcf382a82a0, nearMiniId=3D1, nearFinFutId=3Dnull, nearFinMiniId=3D0, ne= arXidVer=3DGridCacheVersion [topVer=3D111518810, order=3D1500038810278, nod= eOrder=3D3], super=3DGridDhtTxLocalAdapter [nearOnOriginatingNode=3Dtrue, n= earNodes=3D[], dhtNodes=3D[], explicitLock=3Dfalse, super=3DIgniteTxLocalAd= apter [completedBase=3Dnull, sndTransformedVals=3Dfalse, depEnabled=3Dfalse= , txState=3DIgniteTxImplicitSingleStateImpl [init=3Dtrue, recovery=3Dfalse]= , super=3DIgniteTxAdapter [xidVer=3DGridCacheVersion [topVer=3D111518810, o= rder=3D1500038810305, nodeOrder=3D1], writeVer=3Dnull, implicit=3Dtrue, loc= =3Dtrue, threadId=3D239, startTime=3D1500038809744, nodeId=3D322e96c3-eb1c-= 4aea-b9fd-3a3dae368d31, startVer=3DGridCacheVersion [topVer=3D111518810, or= der=3D1500038810305, nodeOrder=3D1], endVer=3Dnull, isolation=3DREAD_COMMIT= TED, concurrency=3DOPTIMISTIC, timeout=3D0, sysInvalidate=3Dfalse, sys=3Dfa= lse, plc=3D2, commitVer=3Dnull, finalizing=3DNONE, invalidParts=3Dnull, sta= te=3DMARKED_ROLLBACK, timedOut=3Dfalse, topVer=3DAffinityTopologyVersion [t= opVer=3D4, minorTopVer=3D0], duration=3D97ms, onePhaseCommit=3Dfalse], size= =3D0]]] > =09at org.apache.ignite.internal.processors.cache.distributed.dht.GridDht= TxLocal.prepareAsync(GridDhtTxLocal.java:418) > =09at org.apache.ignite.internal.processors.cache.transactions.IgniteTxHa= ndler.prepareNearTx(IgniteTxHandler.java:459) > =09at org.apache.ignite.internal.processors.cache.transactions.IgniteTxHa= ndler.processNearTxPrepareRequest(IgniteTxHandler.java:121) > =09at org.apache.ignite.internal.processors.cache.transactions.IgniteTxHa= ndler.access$000(IgniteTxHandler.java:95) > =09at org.apache.ignite.internal.processors.cache.transactions.IgniteTxHa= ndler$1.apply(IgniteTxHandler.java:141) > =09at org.apache.ignite.internal.processors.cache.transactions.IgniteTxHa= ndler$1.apply(IgniteTxHandler.java:139) > =09at org.apache.ignite.internal.processors.cache.GridCacheIoManager.proc= essMessage(GridCacheIoManager.java:1042) > =09at org.apache.ignite.internal.processors.cache.GridCacheIoManager.onMe= ssage0(GridCacheIoManager.java:561) > =09at org.apache.ignite.internal.processors.cache.GridCacheIoManager.hand= leMessage(GridCacheIoManager.java:378) > =09at org.apache.ignite.internal.processors.cache.GridCacheIoManager.hand= leMessage(GridCacheIoManager.java:304) > =09at org.apache.ignite.internal.processors.cache.GridCacheIoManager.acce= ss$100(GridCacheIoManager.java:99) > =09at org.apache.ignite.internal.processors.cache.GridCacheIoManager$1.on= Message(GridCacheIoManager.java:293) > =09at org.apache.ignite.internal.managers.communication.GridIoManager.inv= okeListener(GridIoManager.java:1556) > =09at org.apache.ignite.internal.managers.communication.GridIoManager.pro= cessRegularMessage0(GridIoManager.java:1184) > =09at org.apache.ignite.internal.managers.communication.GridIoManager.acc= ess$4200(GridIoManager.java:126) > =09at org.apache.ignite.internal.managers.communication.GridIoManager$9.r= un(GridIoManager.java:1097) > =09at org.apache.ignite.internal.util.StripedExecutor$Stripe.run(StripedE= xecutor.java:483) > =09at java.lang.Thread.run(Thread.java:745) > Caused by: class org.apache.ignite.IgniteCheckedException: Adding entry t= o partition that is concurrently evicted [part=3D58, shouldBeMoving=3Dfalse= ] > =09at org.apache.ignite.internal.processors.cache.distributed.dht.GridDht= TxLocalAdapter.addEntry(GridDhtTxLocalAdapter.java:523) > =09at org.apache.ignite.internal.processors.cache.distributed.dht.GridDht= TxLocal.prepareAsync(GridDhtTxLocal.java:399) > =09... 17 more > {code} > The issue happens because GridDhtLocalTransaction is being prepared on to= pology version (4, 0), and the next topology version (4, 1) changes the pri= mary node assignment. The topology is locked on the originating node, which= is a server node, at the same time topology is not locked on primary node = that is about to rent it's partitions. > When exchange runs on primary node, it does not see the GridDhtTxLocal tr= ansaction yet, completes the partition release future and rents all partiti= ons. > After this, the GridDhtTxLocat starts prepare phase and gets the exceptio= n above. -- This message was sent by Atlassian JIRA (v6.4.14#64029)