Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 33385 invoked from network); 6 Apr 2011 15:05:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2011 15:05:44 -0000 Received: (qmail 22441 invoked by uid 500); 6 Apr 2011 15:05:44 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 22349 invoked by uid 500); 6 Apr 2011 15:05:44 -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 22175 invoked by uid 99); 6 Apr 2011 15:05:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 15:05:43 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 15:05:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0EF8A952A5 for ; Wed, 6 Apr 2011 15:05:06 +0000 (UTC) Date: Wed, 6 Apr 2011 15:05:06 +0000 (UTC) From: "Dariusz Szablinski (JIRA)" To: dev@activemq.apache.org Message-ID: <1271767347.38028.1302102306058.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1883128825.38021.1302102185777.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AMQ-3273) Slave broker acquires lock file when Master is still alive (shared file system master/slave setup) 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/AMQ-3273?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dariusz Szablinski updated AMQ-3273: ------------------------------------ Attachment: LockFile.java.patch > Slave broker acquires lock file when Master is still alive (shared file system master/slave setup) > -------------------------------------------------------------------------------------------------- > > Key: AMQ-3273 > URL: https://issues.apache.org/jira/browse/AMQ-3273 > Project: ActiveMQ > Issue Type: Bug > Components: Message Store > Affects Versions: 5.5.0 > Environment: Windows 7, Windows Server 2008 > Reporter: Dariusz Szablinski > Priority: Critical > Fix For: 5.5.0, 5.6.0 > > Attachments: LockFile.java.patch > > > The change introduced in AMQ-3237 has triggered issue with LockFile.lock() on Win7 and Win2k8. See comments to the JRE issue http://bugs.sun.com/view_bug.do?bug_id=6628575 (bottom of the page). > Suggested solution is to use this construction instead: > fc.lock( 0, Math.max( 1, fc.size() ), false ); -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira