Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9A6911757B for ; Fri, 8 May 2015 14:59:03 +0000 (UTC) Received: (qmail 72790 invoked by uid 500); 8 May 2015 14:59:03 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 72765 invoked by uid 500); 8 May 2015 14:59:03 -0000 Mailing-List: contact issues-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list issues@ignite.incubator.apache.org Received: (qmail 72755 invoked by uid 99); 8 May 2015 14:59:03 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 14:59: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 EEFC8C209F for ; Fri, 8 May 2015 14:59:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.03 X-Spam-Level: X-Spam-Status: No, score=-4.03 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 7Ua4YcsHwZUE for ; Fri, 8 May 2015 14:59:01 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with SMTP id AB718212CE for ; Fri, 8 May 2015 14:59:00 +0000 (UTC) Received: (qmail 72432 invoked by uid 99); 8 May 2015 14:58:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 May 2015 14:58:59 +0000 Date: Fri, 8 May 2015 14:58:59 +0000 (UTC) From: "Sergey Evdokimov (JIRA)" To: issues@ignite.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (IGNITE-777) ConcurrentModificationException in TcpDiscoverySpi MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Evdokimov closed IGNITE-777. ----------------------------------- > ConcurrentModificationException in TcpDiscoverySpi > -------------------------------------------------- > > Key: IGNITE-777 > URL: https://issues.apache.org/jira/browse/IGNITE-777 > Project: Ignite > Issue Type: Bug > Affects Versions: sprint-3 > Reporter: Sergey Evdokimov > Assignee: Sergey Evdokimov > Fix For: sprint-5 > > Attachments: ignite-777.patch > > > ConcurrentModificationException occurs if topology has one server node and one client. TcpDiscoveryHeartbeatMessage processed in the RingMessageWorker two times. On the first processing RingMessageWorker adds metrics of server node to the message and sends message to ClientMessageWorker. On the second processing RingMessageWorker remove metrics, at same time ClientMessageWorker writes message to socket. > {quote} > [18:07:23,975]ERROR[tcp-disco-client-message-worker-#1113%cache.GridCacheTcpClientDiscoveryMultiThreadedTest0][TcpDiscoverySpi] Runtime error caught during grid runnable execution: IgniteSpiThread [name=tcp-disco-client-message-worker-#1113%cache.GridCacheTcpClientDiscoveryMultiThreadedTest0] > java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922) > at java.util.HashMap$EntryIterator.next(HashMap.java:962) > at java.util.HashMap$EntryIterator.next(HashMap.java:960) > at java.util.HashMap.writeObject(HashMap.java:1127) > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) > at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1495) > at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) > at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547) > at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508) > at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431) > at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177) > at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347) > at org.apache.ignite.marshaller.jdk.JdkMarshaller.marshal(JdkMarshaller.java:73) > at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter.writeToSocket(TcpDiscoverySpiAdapter.java:460) > at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter$MessageWorkerAdapter.writeToSocket(TcpDiscoverySpiAdapter.java:1044) > at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$ClientMessageWorker.processMessage(TcpDiscoverySpi.java:5221) > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)