Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 33754 invoked from network); 17 Jun 2008 22:20:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jun 2008 22:20:02 -0000 Received: (qmail 77928 invoked by uid 500); 17 Jun 2008 22:19:57 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 77867 invoked by uid 500); 17 Jun 2008 22:19:57 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 77856 invoked by uid 500); 17 Jun 2008 22:19:57 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 77853 invoked by uid 99); 17 Jun 2008 22:19:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 15:19:57 -0700 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jun 2008 22:19:16 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id A5239234C145; Tue, 17 Jun 2008 15:19:34 -0700 (PDT) From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 45222] concurrent startup of ReplicatedMap leads to inconsistent state. X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Tomcat 6 X-Bugzilla-Component: Cluster X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: robert.newson@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tomcat-dev@jakarta.apache.org X-Bugzilla-Target-Milestone: default X-Bugzilla-Changed-Fields: In-Reply-To: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20080617221934.A5239234C145@brutus.apache.org> Date: Tue, 17 Jun 2008 15:19:34 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=45222 --- Comment #1 from Robert Newson 2008-06-17 15:19:34 PST --- Here's the simplest code to reproduce it. Just start this on four machines at the same time (I used clusterssh). Most of the time each box will print a different value from 1-4. As a meta-question, is ReplicatedMap a supported Tribes feature or a demo? I've been stung on this kind of thing with JGroups before (their .blocks are almost all demo code, apparently). public static void main(String[] args) throws Exception { final GroupChannel channel = new GroupChannel(); final ReplicatedMap map = new ReplicatedMap(null, channel, 0, "map", null); channel.start(Channel.DEFAULT); map.put(InetAddress.getLocalHost(), "1"); while (true) { System.out.printf("member_count: %,d, map_size: %,d\n", channel .getMembers().length, map.size()); SECONDS.sleep(5); } } -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org