Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 33249 invoked from network); 26 Nov 2007 06:54:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Nov 2007 06:54:13 -0000 Received: (qmail 58462 invoked by uid 500); 26 Nov 2007 06:54:01 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 58431 invoked by uid 500); 26 Nov 2007 06:54:01 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 58422 invoked by uid 99); 26 Nov 2007 06:54:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Nov 2007 22:54:01 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Nov 2007 06:53:40 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IwXqh-0006F0-FH for dev@activemq.apache.org; Sun, 25 Nov 2007 22:53:43 -0800 Message-ID: <13944544.post@talk.nabble.com> Date: Sun, 25 Nov 2007 22:53:43 -0800 (PST) From: Chris Zeng To: dev@activemq.apache.org Subject: bug in MapContainerImpl.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: pladini@21cn.com X-Virus-Checked: Checked by ClamAV on apache.org I found there is an bug in write method in the MapContainerImpl.java=E3=80= =82When I used IndexTypes.DISK_INDEX. If we add some data in MapContainer, then we delete the last we added and add one.The index will be looped.The reason is the inconsistence of index between memory and file. Imagine we add 'A', 'B'= , 'C' the three elements in the MapContainer, the the last element is 'C', when we delete 'C', In memory the next info in the index of 'B' points to 'C', and in file, it points to "-1". Then we add an new element "D". Then D's next is point to itself. --=20 View this message in context: http://www.nabble.com/bug-in-MapContainerImpl= .java-tf4873211s2354.html#a13944544 Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.