Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4BD1518D16 for ; Sat, 14 Nov 2015 12:38:28 +0000 (UTC) Received: (qmail 18328 invoked by uid 500); 14 Nov 2015 12:38:28 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 18274 invoked by uid 500); 14 Nov 2015 12:38:28 -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 18261 invoked by uid 99); 14 Nov 2015 12:38:27 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2015 12:38:27 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 67A611A2637 for ; Sat, 14 Nov 2015 12:38:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.75 X-Spam-Level: *** X-Spam-Status: No, score=3.75 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, KAM_INFOUSMEBIZ=0.75, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gridgain_com.20150623.gappssmtp.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hgeLVeA8bF_I for ; Sat, 14 Nov 2015 12:38:13 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id E56E844489 for ; Sat, 14 Nov 2015 12:38:12 +0000 (UTC) Received: by wmww144 with SMTP id w144so63502977wmw.0 for ; Sat, 14 Nov 2015 04:38:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain_com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=USAv5yZYeMPlrNYvoX/Nci02dsxo6TUWZ6h9UWc1FHM=; b=RHle6b3+OkZRzDneTUsCOnKXq3tRJthoh/Hj3lX/D2JI1BkxXtRVHYy5l3lR262yP4 TE8hJauSDUktwd5mkBkxjnoKOHp73ybJwWYT8dkalI2nSzyFwgiPs2r5klRD6p7cj9xb 3TvFAU0NSPXTYWKmEZeafO2mseI4hllWJwKRMgfLtm/mffjaX065JW1vB/mynJA/aJ6f /tztFJMuc4obx6k+aNXKTQ5fgcS8clOp2MKJIKJfNq9ve/AkQR6fK3i1NrS53oY5lNVy K97/QlDkgdedaHPKLWS1xFd0P2nPveS9Yy4tBddPGKHY+DDP99Cdeof9uS1Mk8nfzOCN AYdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=USAv5yZYeMPlrNYvoX/Nci02dsxo6TUWZ6h9UWc1FHM=; b=a/Y2gv9VA5lK27vA1Nl5qEamuUolnAr+twKSBpcAlIChxRvwnR+dBxV3xRc0w9w5bW nPasWhmyHWtVhEGV8zynqAY/57s7zdzZbcK5OMRTY1GdWbiJA1RrxuJzm+NzYp+DW7Fu wDc35jOGVYKwxpS9DO3YP8pmFDU5/WKi5Dwt2XrgVO+dDJSNX1McXLCKck0tSI244OUl QuotiUAdkvUn8PQV36W7cONr1OY15F5b0lxrhJLtSytbsDaGlBy9wr/GT4lawtqh1GJR aTP0ZDQhh5jEQRl86n3USv9P6PMwCALfEufNSKMvhfRRBK312BjzrXfi3DGZUgNGooAE QcRw== X-Gm-Message-State: ALoCoQlQywhBjIZZuQaJ8PcN+kfhHOIECPWRa8zlZ1PyoGr2W/F++4jn62eSyI7s753WNC+C+tVc MIME-Version: 1.0 X-Received: by 10.194.249.69 with SMTP id ys5mr30716033wjc.97.1447504686532; Sat, 14 Nov 2015 04:38:06 -0800 (PST) Received: by 10.194.141.138 with HTTP; Sat, 14 Nov 2015 04:38:06 -0800 (PST) In-Reply-To: References: <56433932.40503@gridgain.com> Date: Sat, 14 Nov 2015 15:38:06 +0300 Message-ID: Subject: Re: Ignite-1.5 Release From: Denis Magda To: "dev@ignite.apache.org" Content-Type: multipart/alternative; boundary=001a11c28308a6d3aa05247f721f --001a11c28308a6d3aa05247f721f Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Vladislav, Most likely there is a minor issue in your test. I think Yakov would be able to run and check the test as a part of the ongoing review. Thanks, Denis On Friday, November 13, 2015, Vladisav Jelisavcic wrote: > Hi Denis, > > Thanks a lot, it looks like my test setup was wrong, > I added semaphore tests to GridCacheAbstractDataStructuresFailoverSelfTes= t > suite. > Now I have following problem: > when I run tests with TOP_CHANGE_THREAD_CNT =3D 3 > tests fail when they reach stop() with the following exception: > > class org.apache.ignite.internal.IgniteInterruptedCheckedException: Node = is > stopping: 09c5e8b8-8998-468e-960d-223220354fd3 > at > > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeMan= ager.onKernalStop0(GridCachePartitionExchangeManager.java:382) > at > > org.apache.ignite.internal.processors.cache.GridCacheSharedManagerAdapter= .onKernalStop(GridCacheSharedManagerAdapter.java:113) > at > > org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalSt= op(GridCacheProcessor.java:946) > at org.apache.ignite.internal.IgniteKernal.stop0(IgniteKernal.java:1823) > at org.apache.ignite.internal.IgniteKernal.stop(IgniteKernal.java:1769) > at > > org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop0(IgnitionE= x.java:2133) > at > > org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx= .java:2096) > at org.apache.ignite.internal.IgnitionEx.stop(IgnitionEx.java:314) > at org.apache.ignite.Ignition.stop(Ignition.java:223) > at > > org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbst= ractTest.java:802) > at > > org.apache.ignite.testframework.junits.GridAbstractTest.stopGrid(GridAbst= ractTest.java:784) > at > > org.apache.ignite.internal.processors.cache.datastructures.GridCacheAbstr= actDataStructuresFailoverSelfTest.access$500(GridCacheAbstractDataStructure= sFailoverSelfTest.java:54) > at > > org.apache.ignite.internal.processors.cache.datastructures.GridCacheAbstr= actDataStructuresFailoverSelfTest$5.apply(GridCacheAbstractDataStructuresFa= iloverSelfTest.java:459) > > When I run tests with TOP_CHANGE_THEAD_CNT =3D 1 > everything is running ok; > > > @Yakov > I made a new commit to my IGNITE-638 branch, > can you please take a look? > > > > Best regards, > Vladisav > > > > > > On Wed, Nov 11, 2015 at 3:48 PM, Denis Magda > wrote: > > > > > Hi Vladislav, > > > > > > Please see below.. > > > > > > > > > On 11/11/2015 12:33 PM, Vladisav Jelisavcic wrote: > > > > > >> Yakov, > > >> > > >> sorry for running a bit late. > > >> > > >> Vladislav, do you have any updates for > > >>> https://issues.apache.org/jira/browse/IGNITE-638? Or any questions? > > >>> > > >>> --Yakov > > >>> > > >> I have problems with some fail-over scenarios; > > >> It seems that if the two nodes are in the middle of acquiring or > > releasing > > >> the semaphore, > > >> and one of them fails, all nodes get: > > >> > > >> [09:36:38,509][ERROR][ignite-#13%pub-null%][GridCacheSemaphoreImpl] > > >> Failed to compare and set: > > >> > o.a.i.i.processors.datastructures.GridCacheSemaphoreImpl$Sync$1@5528b728 > > >> class > > org.apache.ignite.internal.cluster.ClusterTopologyCheckedException: > > >> Failed to acquire lock for keys (primary node left grid, retry > > transaction > > >> if possible) [keys=3D[UserKeyCacheObjectImpl > [val=3DGridCacheInternalKeyImpl > > >> [name=3Dac83b8cb-3052-49a6-9301-81b20b0ecf3a], hasValBytes=3Dtrue]], > > >> node=3Dc321fcc4-5db5-4b03-9811-6a5587f2c253] > > >> ... > > >> Caused by: class > > >> org.apache.ignite.internal.cluster.ClusterTopologyCheckedException: > > Failed > > >> to acquire lock for keys (primary node left grid, retry transaction = if > > >> possible) [keys=3D[UserKeyCacheObjectImpl [val=3DGridCacheInternalKe= yImpl > > >> [name=3Dac83b8cb-3052-49a6-9301-81b20b0ecf3a], hasValBytes=3Dtrue]], > > >> node=3Dc321fcc4-5db5-4b03-9811-6a5587f2c253] > > >> at > > >> > > >> > > > org.apache.ignite.internal.processors.cache.distributed.dht.colocated.Gri= dDhtColocatedLockFuture.newTopologyException(GridDhtColocatedLockFuture.jav= a:1199) > > >> ... 10 more > > >> > > > You have to process this exception manually at your implementation > layer > > > since your data structure uses a transactional cache. > > > Below is a kind of template I used when it was required to process th= is > > > and some other exeptions. You can use it as-is. > > > > > > int retries =3D GridCacheAdapter.MAX_RETRIES; > > > > > > IgniteCheckedException err =3Dnull; > > > > > > for (int i =3D0; i < retries; i++) { > > > try { > > > //Your transactional code that may fail > > > } > > > catch (IgniteCheckedException e) { > > > if (i =3D=3D retries) > > > throw e; > > > > > > if (X.hasCause(e, ClusterTopologyCheckedException.class)) { > > > ClusterTopologyCheckedException topErr =3D > > > e.getCause(ClusterTopologyCheckedException.class); > > > > > > topErr.retryReadyFuture().get(); > > > } > > > else if (X.hasCause(e, IgniteTxRollbackCheckedException.class= )) > > > U.sleep(1); > > > else throw e; > > > } > > > } > > > > > > > > > > > >> I'm still trying to find out how to exactly reproduce this behavior, > > >> I'll send you more details once I try few more things. > > >> > > > There is the test suite called > > > GridCacheAbstractDataStructuresFailoverSelfTest that checks Ignite > > atomics > > > and data structures with fail-over scenario. > > > The suite will let you reproduce ClusterTopologyCheckedException > easily. > > > Just add your tests there referring to the tests of other data > > structures. > > > > > > Presently I'm improving this test suite under my work on IGNITE-801 a= nd > > > IGNITE-803. If you finish your task earlier then I'll adopt your test= s > > to a > > > new test approach. > > > > > > > > >> I am still using partitioned cache, does it make sense to use > replicated > > >> cache instead? > > >> > > >> Yeah, you should support this as well. Cache mode for the data > > structures > > > is changed using CollectionConfigurations while for atomics using > > > AtomicsConfiguration. > > > > > > -- > > > Denis > > > > > > > > > Other than that, I'm done with everything else. > > >> > > >> Thanks, > > >> Vladisav > > >> > > >> > > >> > > >> On Tue, Nov 10, 2015 at 7:19 PM, Raul Kripalani > > > wrote: > > >> > > >> Sorry I haven't made an appearance in this thread yet. > > >>> > > >>> 6. MQTT streamer > > >>>> https://issues.apache.org/jira/browse/IGNITE-535 > > >>>> > > >>> Yes, it was merged to master before the ignite-1.5 was created. > > >>> > > >>> I'd like to add: > > >>> > > >>> Camel Streamer =3D> https://issues.apache.org/jira/browse/IGNITE-17= 90 > > >>> -- I'll merge this as soon as I finished with the OSGi tickets with > > >>> demand. > > >>> > > >>> OSGi Manifests, Karaf features and possible ClassLoaderCodec SPI (o= r > > >>> whatever agreement we arrive to in mailing lists and Wiki) > > >>> -- https://issues.apache.org/jira/browse/IGNITE-1527 > > >>> -- https://issues.apache.org/jira/browse/IGNITE-1877 > > >>> -- I'm working actively on these two features. > > >>> > > >>> *Ra=C3=BAl Kripalani* > > >>> PMC & Committer @ Apache Ignite, Apache Camel | Integration, Big Da= ta > > and > > >>> Messaging Engineer > > >>> http://about.me/raulkripalani | > > http://www.linkedin.com/in/raulkripalani > > >>> http://blog.raulkr.net | twitter: @raulvk > > >>> > > >>> On Mon, Nov 2, 2015 at 1:35 PM, Yakov Zhdanov > > > >>> wrote: > > >>> > > >>> Guys, > > >>>> > > >>>> I think we can start preparation to Ignite-1.5 release which will > > >>>> include > > >>>> many interesting features: > > >>>> > > >>>> 1. Portable object API > > >>>> https://issues.apache.org/jira/browse/IGNITE-1486 > > >>>> > > >>>> 2. Ignite.NET and Ignite C++ > > >>>> https://issues.apache.org/jira/browse/IGNITE-1282 > > >>>> > > >>>> 3. Optimistic serializable transactions > > >>>> https://issues.apache.org/jira/browse/IGNITE-1607 > > >>>> > > >>>> 4. Distributed SQL joins - we will be able to query non-collocated > > data > > >>>> > > >>> as > > >>> > > >>>> well > > >>>> https://issues.apache.org/jira/browse/IGNITE-1232 > > >>>> > > >>>> 5. Enhanced Oracle and IBM JDK interoperability > > >>>> https://issues.apache.org/jira/browse/IGNITE-1526 > > >>>> > > >>>> 6. MQTT streamer > > >>>> https://issues.apache.org/jira/browse/IGNITE-535 > > >>>> > > >>>> 7. Continuous query failover > > >>>> https://issues.apache.org/jira/browse/IGNITE-426 > > >>>> > > >>>> 8. Significant transactional cache performance optimizations - I > will > > >>>> > > >>> merge > > >>> > > >>>> these changes from 'ignite-1.4-slow-server-debug' today or tomorro= w. > > >>>> > > >>>> 9. Many stability and fault-tolerance fixes. > > >>>> > > >>>> 10. I would also like to include distributed Semaphore. Vladislav, > any > > >>>> chance you can finish with it this week? > > >>>> https://issues.apache.org/jira/browse/IGNITE- > > >>>> 638 > > >>>> > > >>>> Thanks to everyone involved! Guys, esp. assignees of mentioned > issues, > > >>>> please respond to this email and let us know when can we expect yo= ur > > >>>> changes being merged to master and release branch? > > >>>> > > >>>> Can someone create ignite-1.5 release branch? > > >>>> > > >>>> --Yakov > > >>>> > > >>>> > > > > > > --001a11c28308a6d3aa05247f721f--