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 03FB7200D34 for ; Fri, 3 Nov 2017 18:15:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 025E2160BFB; Fri, 3 Nov 2017 17:15:54 +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 21859160BDE for ; Fri, 3 Nov 2017 18:15:52 +0100 (CET) Received: (qmail 97327 invoked by uid 500); 3 Nov 2017 17:15:52 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 97308 invoked by uid 99); 3 Nov 2017 17:15:52 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Nov 2017 17:15:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A6A1F18070D for ; Fri, 3 Nov 2017 17:15:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 05pu_vF5n_IL for ; Fri, 3 Nov 2017 17:15:47 +0000 (UTC) Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id EBBEF60F07 for ; Fri, 3 Nov 2017 17:15:46 +0000 (UTC) Received: by mail-vk0-f46.google.com with SMTP id g11so2170619vkd.13 for ; Fri, 03 Nov 2017 10:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=R/58ucPe9nUNQcCoi8+Pv7aRdJ5xcLzivr2XDmPFVrQ=; b=FZA71NkxyF8radO6A4bdnvb1Nm+2QFC+o5BhCTD8qZwKsNEa1qA/XEF+ZAKgedqX+J zK9bPp8Iy9H1f0WPQH5nDmGiGFkwGSnBt2zANtHpk5XZf8Y6OEwM9DSc3DppnU2BLQvA /5997Jt3AKWi7A5Yym+0EYFYfLYUtdMbJ+T5TaC3uC1aqN8/csyMLXfbkWVSaIqIJoxR YwzSwn2O37nDRjEErLhSFtrRJet4RWz/lA4TSbZI1BeDqKNTOhhvO/EOm+7f3gLoEG/0 jYBQ1cCDoTJmURjXR5lrrboA4FdfW3PcCpeprqS1nAADM9muoP9C/DDItcjWj1M4e5sf lhfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=R/58ucPe9nUNQcCoi8+Pv7aRdJ5xcLzivr2XDmPFVrQ=; b=RTFOM51BYGRv8X2VT9GZwkAXqn+SsI0YAv1qGr/duJSn1YTCiia3goejH6sepPTNTh BWu5+EmCg71kGi2xsdJCUKqswcYeY9rxfhQcK5M+FQNxCEgTvFZBxEkrO+vQLBiyQaYe IQJU9V78oSCJhbjOXgn5NR6zrkz0rYPsMEmzCjHuH0AuaEx90gSK4iW+3sQXIcVz6tHk KZiCltdoi/xZ99r4PRct0poxG+FEDgv+NRPIIqWFmCGiYx02QlAhGitMx+Mxm7ZNv7em mIsJp1PSfpRs1ScOFCz4X0t8askwM/13oub4Dr9X84qwl4EWNCmW+LO9cLpdQc9J7v/D zLtQ== X-Gm-Message-State: AMCzsaVFggpu3L2nf2+zH+c6rYg3urbGZ73sZX/5z/JIg/3yHd8vMDOU iVsALiSu/a1pz/3vodiNE9PEYAlpDHKMH78Phto= X-Google-Smtp-Source: ABhQp+T2oBeJ+SGEjSneKaCq3Icrvhz4+/qr/XgIWlu6PFWUpFqLriE8pj6FbLOeESAB/AdoTaOS2Da1l25UuKzFkcE= X-Received: by 10.31.2.67 with SMTP id 64mr6168259vkc.120.1509729345646; Fri, 03 Nov 2017 10:15:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.53.81 with HTTP; Fri, 3 Nov 2017 10:15:45 -0700 (PDT) In-Reply-To: <1509239391918-0.post@n6.nabble.com> References: <1509239391918-0.post@n6.nabble.com> From: Andrey Mashenkov Date: Fri, 3 Nov 2017 20:15:45 +0300 Message-ID: Subject: Re: Threads waiting To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="001a113dc5f45ab500055d17417f" archived-at: Fri, 03 Nov 2017 17:15:54 -0000 --001a113dc5f45ab500055d17417f Content-Type: text/plain; charset="UTF-8" Hi, Your thread is waiting for partition exchange that possibly hangs due to some reason. Is it possible, to share logs and thread dumps at a time when you observed hanging? On Sun, Oct 29, 2017 at 4:09 AM, naresh.goty wrote: > Hi, > > We are seeing threads blocked when reading (only reads not writes) for data > from cache using Ignite.affinitiyCall(). > > Scenario: > 1) Two nodes are started in a cluster. Perform cache reads using > Ignite.affinityCall() and it works. > 2) One node is stopped, and perform cache read again using > Ignite.affinityCall() and it is blocked. > > java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > at java.util.concurrent.locks.LockSupport.park(LockSupport. > java:304) > at > org.apache.ignite.internal.util.future.GridFutureAdapter. > get0(GridFutureAdapter.java:176) > at > org.apache.ignite.internal.util.future.GridFutureAdapter. > get(GridFutureAdapter.java:139) > at > org.apache.ignite.internal.processors.affinity. > GridAffinityAssignmentCache.awaitTopologyVersion( > GridAffinityAssignmentCache.java:557) > at > org.apache.ignite.internal.processors.affinity. > GridAffinityAssignmentCache.cachedAffinity(GridAffinityAssignmentCache. > java:468) > at > org.apache.ignite.internal.processors.cache.GridCacheAffinityManager. > assignment(GridCacheAffinityManager.java:238) > at > org.apache.ignite.internal.processors.affinity.GridAffinityProcessor. > affinityCache(GridAffinityProcessor.java:375) > at > org.apache.ignite.internal.processors.affinity.GridAffinityProcessor. > affinityKey(GridAffinityProcessor.java:306) > at > org.apache.ignite.internal.IgniteComputeImpl.affinityCallAsync0( > IgniteComputeImpl.java:333) > at > org.apache.ignite.internal.IgniteComputeImpl.affinityCall( > IgniteComputeImpl.java:301) > > > Thanks, > Naresh > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > -- Best regards, Andrey V. Mashenkov --001a113dc5f45ab500055d17417f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

Your thread is waiting for partitio= n exchange that possibly hangs due to some reason.

Is it possible, to share logs and thread dumps at a time when you observed= hanging?

On Sun, Oct 29, 2017 at 4:09 AM, naresh.goty <gnr.springs@gmail.co= m> wrote:
Hi,

We are seeing threads blocked when reading (only reads not writes) for data=
from cache using Ignite.affinitiyCall().

Scenario:
1) Two nodes are started in a cluster. Perform cache reads using
Ignite.affinityCall() and it works.
2) One node is stopped, and perform cache read again using
Ignite.affinityCall() and it is blocked.

=C2=A0java.lang.Thread.State: WAITING (parking)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.misc.Unsafe.park(Native Method)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.locks.LockSupport.= park(LockSupport.java:304)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.util.future.GridFutureAdapter.get0(Gri= dFutureAdapter.java:176)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.util.future.GridFutureAdapter.get(Grid= FutureAdapter.java:139)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.affinity.GridAffinityAssign= mentCache.awaitTopologyVersion(GridAffinityAssignmentCache.j= ava:557)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.affinity.GridAffinityAssign= mentCache.cachedAffinity(GridAffinityAssignmentCache.java:46= 8)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.cache.GridCacheAffinityMana= ger.assignment(GridCacheAffinityManager.java:238)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.affinity.GridAffinityProces= sor.affinityCache(GridAffinityProcessor.java:375)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.processors.affinity.GridAffinityProces= sor.affinityKey(GridAffinityProcessor.java:306)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.IgniteComputeImpl.affinityCallAsync0(<= wbr>IgniteComputeImpl.java:333)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at
org.apache.ignite.internal.IgniteComputeImpl.affinityCall(Ig= niteComputeImpl.java:301)


Thanks,
Naresh



--
Sent from: http://apache-ignite-users.70518.x6.= nabble.com/



--
Best regards,
Andrey V. Mashenkov
--001a113dc5f45ab500055d17417f--