Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A579F200BA5 for ; Wed, 19 Oct 2016 20:39:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A4483160AEA; Wed, 19 Oct 2016 18:39:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EA14A160ADC for ; Wed, 19 Oct 2016 20:39:00 +0200 (CEST) Received: (qmail 52886 invoked by uid 500); 19 Oct 2016 18:38:59 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 52758 invoked by uid 99); 19 Oct 2016 18:38:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 18:38:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B2B592C4C74 for ; Wed, 19 Oct 2016 18:38:59 +0000 (UTC) Date: Wed, 19 Oct 2016 18:38:59 +0000 (UTC) From: "Louis-Gabriel Thibault (JIRA)" To: dev@directory.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DIRSERVER-2169) Crash when starting apacheds with replConsumer enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Oct 2016 18:39:01 -0000 [ https://issues.apache.org/jira/browse/DIRSERVER-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15589486#comment-15589486 ] Louis-Gabriel Thibault commented on DIRSERVER-2169: --------------------------------------------------- Also repro-able if you start apacheds and quickly load a ldif file (while apacheds/wrapper "repairs"). Tested under ubuntu-12.04.5. > Crash when starting apacheds with replConsumer enabled > ------------------------------------------------------ > > Key: DIRSERVER-2169 > URL: https://issues.apache.org/jira/browse/DIRSERVER-2169 > Project: Directory ApacheDS > Issue Type: Bug > Components: core-integ > Affects Versions: 2.0.0-M22 > Reporter: Louis-Gabriel Thibault > > Tested against 2.0.0-M23 > This is due to a racing condition between the replConsumer thread and a repair attempt made by default when starting the service using /opt/apacheds.../apacheds command. > INFO | jvm 1 | 2016/10/14 10:38:09 | Repairing partition dir /var/lib/apacheds-2.0.0-M23/default/partitions > INFO | jvm 1 | 2016/10/14 10:38:11 | java.lang.IllegalStateException: ERR_538 RecordManager has been closed > INFO | jvm 1 | 2016/10/14 10:38:11 | at jdbm.recman.CacheRecordManager.checkIfClosed(CacheRecordManager.java:399) > Indeed RecordManager.close() method gets called starting from repair() method in org/apache/directory/server/wrapper/ApacheDsTanukiWrapper.java > As a workaround, I remove set.APACHEDS_COMMAND=\"repair\" from /opt/apacheds-2.0.0-M23/bin/apacheds line 401. -- This message was sent by Atlassian JIRA (v6.3.4#6332)