From issues-return-66835-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Jun 8 16:36: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 2448A180608 for ; Fri, 8 Jun 2018 16:36:03 +0200 (CEST) Received: (qmail 79604 invoked by uid 500); 8 Jun 2018 14:36: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 79592 invoked by uid 99); 8 Jun 2018 14:36:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jun 2018 14:36:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id B1197C018C for ; Fri, 8 Jun 2018 14:36:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, 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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YllfDRuzUQJO for ; Fri, 8 Jun 2018 14:36:01 +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 6091B5F3CE for ; Fri, 8 Jun 2018 14:36: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 B735BE0C50 for ; Fri, 8 Jun 2018 14:36: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 402112109B for ; Fri, 8 Jun 2018 14:36:00 +0000 (UTC) Date: Fri, 8 Jun 2018 14:36:00 +0000 (UTC) From: "Andrey Gura (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-8751) Possible race on node segmentation. 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-8751?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D165= 06083#comment-16506083 ]=20 Andrey Gura commented on IGNITE-8751: ------------------------------------- It isn't race. {{tcp-disco-srvr}} is interrupted earlier than segmentation = policy handles segmentation. See {{org.apache.ignite.internal.managers.disc= overy.GridDiscoveryManager.DiscoveryWorker#onSegmentation}} where we first = disconnect SPI and then handle segmentation. It seems could be fixed by adding check on SPI state in exception handler o= f {{tcp-disco-srvr}}. > Possible race on node segmentation. > ----------------------------------- > > Key: IGNITE-8751 > URL: https://issues.apache.org/jira/browse/IGNITE-8751 > Project: Ignite > Issue Type: Bug > Affects Versions: 2.5 > Reporter: Andrew Mashenkov > Assignee: Andrey Gura > Priority: Major > Fix For: 2.6 > > > Segmentation policy may be ignored, probably, due to a race. > See=C2=A0[1]=C2=A0for details. > [1] [http://apache-ignite-users.70518.x6.nabble.com/Node-pause-for-no-ob= vious-reason-td21923.html] > Logs from segmented node. > [08:42:42,290][INFO][tcp-disco-sock-reader-#15][TcpDiscoverySpi] Finished= =C2=A0 > serving remote node connection [rmtAddr=3D/10.29.42.45:38712, rmtPort=3D3= 8712=C2=A0 > [08:42:42,290][WARNING][disco-event-worker-#161][GridDiscoveryManager] Lo= cal=C2=A0 > node SEGMENTED: TcpDiscoveryNode [id=3D8333aa56-8bf4-4558-a387-809b1d2e2e= 5b,=C2=A0 > addrs=3D[10.29.42.44, 127.0.0.1], sockAddrs=3D[sap-datanode1/10.29.42.44:= 49500,=C2=A0 > /127.0.0.1:49500], discPort=3D49500, order=3D1, intOrder=3D1,=C2=A0 > lastExchangeTime=3D1528447362286, loc=3Dtrue, ver=3D2.5.0#20180523-sha1:8= 6e110c7,=C2=A0 > isClient=3Dfalse]=C2=A0 > [08:42:42,294][SEVERE][tcp-disco-srvr-#2][] Critical system error detecte= d.=C2=A0 > Will be handled accordingly to configured handler [hnd=3Dclass=C2=A0 > o.a.i.failure.StopNodeOrHaltFailureHandler, failureCtx=3DFailureContext= =C2=A0 > [type=3DSYSTEM_WORKER_TERMINATION, err=3Djava.lang.IllegalStateException:= Thread=C2=A0 > tcp-disco-srvr-#2 is terminated unexpectedly.]]=C2=A0 > java.lang.IllegalStateException: Thread tcp-disco-srvr-#2 is terminated= =C2=A0 > unexpectedly.=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at=C2=A0 > org.apache.ignite.spi.discovery.tcp.ServerImpl$TcpServer.body(ServerImpl.= java:5686)=C2=A0 > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at=C2=A0 > org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)=C2=A0 > [08:42:42,294][SEVERE][tcp-disco-srvr-#2][] JVM will be halted immediatel= y=C2=A0 > due to the failure: [failureCtx=3DFailureContext=C2=A0 > [type=3DSYSTEM_WORKER_TERMINATION, err=3Djava.lang.IllegalStateException:= Thread=C2=A0 > tcp-disco-srvr-#2 is terminated unexpectedly.]]=C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)