From issues-return-94851-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Apr 5 14:42:02 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 C555518067E for ; Fri, 5 Apr 2019 16:42:01 +0200 (CEST) Received: (qmail 40832 invoked by uid 500); 5 Apr 2019 14:42:01 -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 40818 invoked by uid 99); 5 Apr 2019 14:42:00 -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 14:42:00 +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 65225E083C for ; Fri, 5 Apr 2019 14:42:00 +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 0F09924599 for ; Fri, 5 Apr 2019 14:42:00 +0000 (UTC) Date: Fri, 5 Apr 2019 14:42:00 +0000 (UTC) From: "Ivan Bessonov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-11683) DistributedMetaStoragePersistentTest#testClientReconnect hangs sometimes. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-11683?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan Bessonov updated IGNITE-11683: ----------------------------------- Fix Version/s: 2.8 > DistributedMetaStoragePersistentTest#testClientReconnect hangs sometimes. > ------------------------------------------------------------------------- > > Key: IGNITE-11683 > URL: https://issues.apache.org/jira/browse/IGNITE-11683 > Project: Ignite > Issue Type: Test > Reporter: Ivan Bessonov > Assignee: Ivan Bessonov > Priority: Major > Labels: MakeTeamcityGreenAgain > Fix For: 2.8 > > Time Spent: 10m > Remaining Estimate: 0h > > The problem occurs right after this line: > {code:java} > assertTrue(GridTestUtils.waitForCondition(() -> metastorage(1).getUpdates= Count() =3D=3D expUpdatesCnt, 15_000)); > {code} > Client node might not be fully reconnected yet. Adding following line res= olves the problem in the particular test: > {code:java} > grid(1).cluster().clientReconnectFuture().get(); > {code} > I don't consider this a proper fix. Stopping the client that hasn't finis= hed its reconnect shouldn't result in deadlock. Client node should be stopp= ed successfully. > Stack traces of hanging client node: > {code:java} > Thread [name=3D"test-runner-#673%metastorage.DistributedMetaStoragePersis= tentTest%", id=3D823, state=3DWAITING, blockCnt=3D60, waitCnt=3D200] > Lock [object=3Djava.lang.Object@2a2d45ba, ownerName=3Dnull, ownerId=3D-1] > at java.lang.Object.wait(Native Method) > at java.lang.Object.wait(Object.java:502) > at o.a.i.i.util.worker.GridWorker.join(GridWorker.java:243) > at o.a.i.i.util.IgniteUtils.join(IgniteUtils.java:4831) > at o.a.i.i.processors.cache.GridCachePartitionExchangeManager.onKernalSto= p0(GridCachePartitionExchangeManager.java:815) > at o.a.i.i.processors.cache.GridCacheSharedManagerAdapter.onKernalStop(Gr= idCacheSharedManagerAdapter.java:120) > at o.a.i.i.processors.cache.GridCacheProcessor.onKernalStop(GridCacheProc= essor.java:1183) > at o.a.i.i.IgniteKernal.stop0(IgniteKernal.java:2321) > at o.a.i.i.IgniteKernal.stop(IgniteKernal.java:2269) > at o.a.i.i.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2574) > - locked o.a.i.i.IgnitionEx$IgniteNamedInstance@69d9c55 > at o.a.i.i.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2537) > at o.a.i.i.IgnitionEx.stop(IgnitionEx.java:330) > at o.a.i.Ignition.stop(Ignition.java:223) > at o.a.i.testframework.junits.GridAbstractTest.stopGrid(GridAbstractTest.= java:1153) > at o.a.i.testframework.junits.GridAbstractTest.stopAllGrids(GridAbstractT= est.java:1193) > at o.a.i.testframework.junits.GridAbstractTest.stopAllGrids(GridAbstractT= est.java:1174) > at o.a.i.i.processors.metastorage.DistributedMetaStorageTest.after(Distri= butedMetaStorageTest.java:85) > at o.a.i.i.processors.metastorage.DistributedMetaStoragePersistentTest.af= ter(DistributedMetaStoragePersistentTest.java:67) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j= ava:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess= orImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkM= ethod.java:47) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCall= able.java:12) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMet= hod.java:44) > at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.jav= a:33) > at o.a.i.testframework.junits.GridAbstractTest$6.run(GridAbstractTest.jav= a:2044) > at java.lang.Thread.run(Thread.java:748) > {code} > {code:java} > Thread [name=3D"exchange-worker-#893%metastorage.DistributedMetaStoragePe= rsistentTest1%", id=3D1088, state=3DBLOCKED, blockCnt=3D2, waitCnt=3D2] Loc= k [object=3Do.a.i.i.IgnitionEx$IgniteNamedInstance@69d9c55, ownerName=3Dtes= t-runner-#673%metastorage.DistributedMetaStoragePersistentTest%, ownerId=3D= 823] at o.a.i.i.IgnitionEx$IgniteNamedInstance.stop0(IgnitionEx.java:2545) = at o.a.i.i.IgnitionEx$IgniteNamedInstance.stop(IgnitionEx.java:2537) at o.a= .i.i.IgnitionEx.stop(IgnitionEx.java:330) at o.a.i.Ignition.stop(Ignition.j= ava:223) at o.a.i.i.IgniteKernal.close(IgniteKernal.java:3626) at o.a.i.i.I= gniteKernal$5.apply(IgniteKernal.java:4086) at o.a.i.i.IgniteKernal$5.apply= (IgniteKernal.java:4066) at o.a.i.i.util.future.GridFutureAdapter.notifyLis= tener(GridFutureAdapter.java:399) at o.a.i.i.util.future.GridFutureAdapter.= unblock(GridFutureAdapter.java:347) at o.a.i.i.util.future.GridFutureAdapte= r.unblockAll(GridFutureAdapter.java:335) at o.a.i.i.util.future.GridFutureA= dapter.onDone(GridFutureAdapter.java:511) at o.a.i.i.util.future.GridFuture= Adapter.onDone(GridFutureAdapter.java:490) at o.a.i.i.util.future.GridFutur= eAdapter.onDone(GridFutureAdapter.java:478) at o.a.i.i.util.future.GridComp= oundFuture.apply(GridCompoundFuture.java:125) at o.a.i.i.util.future.GridCo= mpoundFuture.apply(GridCompoundFuture.java:45) at o.a.i.i.util.future.GridF= utureAdapter.notifyListener(GridFutureAdapter.java:399) at o.a.i.i.util.fut= ure.GridFutureAdapter.unblock(GridFutureAdapter.java:347) at o.a.i.i.util.f= uture.GridFutureAdapter.unblockAll(GridFutureAdapter.java:335) at o.a.i.i.u= til.future.GridFutureAdapter.onDone(GridFutureAdapter.java:511) at o.a.i.i.= util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:490) at o.a.i.i= .util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:478) at o.a.i.= i.processors.cache.GridCachePartitionExchangeManager$7.apply(GridCacheParti= tionExchangeManager.java:723) at o.a.i.i.processors.cache.GridCachePartitio= nExchangeManager$7.apply(GridCachePartitionExchangeManager.java:709) at o.a= .i.i.util.future.GridFutureAdapter.notifyListener(GridFutureAdapter.java:39= 9) at o.a.i.i.util.future.GridFutureAdapter.unblock(GridFutureAdapter.java:= 347) at o.a.i.i.util.future.GridFutureAdapter.unblockAll(GridFutureAdapter.= java:335) at o.a.i.i.util.future.GridFutureAdapter.onDone(GridFutureAdapter= .java:511) at o.a.i.i.util.future.GridFutureAdapter.onDone(GridFutureAdapte= r.java:490) at o.a.i.i.processors.cache.distributed.dht.preloader.GridDhtPa= rtitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:2263) at= o.a.i.i.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchan= geFuture.onDone(GridDhtPartitionsExchangeFuture.java:145) at o.a.i.i.util.f= uture.GridFutureAdapter.onDone(GridFutureAdapter.java:478) at o.a.i.i.proce= ssors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(= GridDhtPartitionsExchangeFuture.java:903) at o.a.i.i.processors.cache.GridC= achePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchang= eManager.java:2958) at o.a.i.i.processors.cache.GridCachePartitionExchangeM= anager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:2807) at = o.a.i.i.util.worker.GridWorker.run(GridWorker.java:120) at java.lang.Thread= .run(Thread.java:748) > {code} > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)