Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 54239 invoked from network); 1 Jun 2007 17:39:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 17:39:38 -0000 Received: (qmail 22850 invoked by uid 500); 1 Jun 2007 17:39:42 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 22802 invoked by uid 500); 1 Jun 2007 17:39:42 -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 22783 invoked by uid 99); 1 Jun 2007 17:39:41 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 10:39:41 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 10:39:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF38B714199 for ; Fri, 1 Jun 2007 10:39:16 -0700 (PDT) Message-ID: <13432767.1180719556779.JavaMail.jira@brutus> Date: Fri, 1 Jun 2007 10:39:16 -0700 (PDT) From: "Ole Ersoy (JIRA)" To: dev@directory.apache.org Subject: [jira] Commented: (DIRSERVER-950) Server Left in Unstable State In-Reply-To: <20526361.1180587195789.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500776 ] Ole Ersoy commented on DIRSERVER-950: ------------------------------------- This is most likely a separate improvement. I commented out the lines that delete the MetaTopSDOObjectClass. This left it and the attributes it needs on the server. Currently when the test runs it puts both the MetaTopSDOObjectClass and the SDO DataObject Type instance (Another ObjectClass that uses the MetaTopSDOObjectClass to define itself) under the same context. So what I did was select the container containing these two ObjectClass entries. Then I tried to delete it. The result was that I got an exception and both ObjectClasses were left on the server, but only the objectClass attributes were left (At least as it appears in LS). The apparent reason for this is that the delete sequencing is missing from JNDI and the server. In this case I'm guessing the server tried to delete ObjectClass A, then noticed that ObjectClass B depends on ObjectClass A, so it can't delete it, so it ended up leaving ObjectClass A in a partially deleted state, along with ObjectClass B. I did verify that if I delete them in the proper sequence, everything is ok. > Server Left in Unstable State > ----------------------------- > > Key: DIRSERVER-950 > URL: https://issues.apache.org/jira/browse/DIRSERVER-950 > Project: Directory ApacheDS > Issue Type: Bug > Affects Versions: 1.5.0 > Environment: FC6 > Reporter: Ole Ersoy > Priority: Minor > > I can only give observational data > for this, since it appears to be a one time thing. > It's a little like the sequence of what happened depends > on threads, and thread A completes first 9999/10000 times, > but in this case thread B completed first... > I ran the test: > EObjectClassCreator > It creates an ObjectClass and the > AttributeTypes needed by the ObjectClass. > I've ran it several times successfully already, > but on the last run it left the server in > a state that does not let me delete > an entry shown in LS. > I have a single entry (That should have been cleaned by the test) > ou=objectClasses, cn=ecore, ou=schema > This has no children. > If I refresh in LS it is still there. > I check to make sure the apacheds daemon is still running. > If I try to delete I get this: > Error while deleting entry > [LDAP: error code 80 - failed on search operation: OID for name 'metatopsdo' was not found within the OID registry] > [LDAP: error code 80 - failed on search operation: OID for name 'metatopsdo' was not found within the OID registry] > metatopsdo is an objectClass that was created in order to create > the ObjectClass entry that the test creates. > Once the test has run the ObjectClass entry > created is deleted, > then the metatopsdo ObjectClass. > This is strange because the entry > ou=objectClasses, cn=ecore, ou=schema > is empty, at least as shown is LS. > So the question is under what circumstances does > is LS not able to delete an empty entry like this. > I'm now going to disconnect and reconnect > with LS to see if it has an effect. > OK - I did that and > when drill down past the entry > ou=objectClasses, cn=ecore, ou=schema > I get this: > Error while reading entry > [LDAP: error code 80 - failed on search operation: OID for name 'metatopsdo' was not found within the OID registry] > [LDAP: error code 80 - failed on search operation: OID for name 'metatopsdo' was not found within the OID registry] > So the ObjectClass entry the test created > must be there, but LS can't see it because > the metatopsdo ObjectClass is deleted, > at least it seems. > But ApacheDS should disallow deletion > of metatopsdo when it is being used by another > ObjectClass entry right? > I think the only thing I can do now is to > reinstall the server...since the entry > is "Stuck"... > But first let me try restarting it > just in case... > yum still stuck. > Just in case the teardown for this test looks like this: > EObjectClassDestroyer. > destroy( > ecoreAttributeTypesContext, > ecoreObjectClassesContext, > eClass, > oidPrefix ); > MetaTopSDOObjectClassDestroyer. > destroy( > ecoreAttributeTypesContext, > ecoreObjectClassesContext, > oidPrefix ); > > EcoreTypeSystemDestroyer. > destroy( > ecoreSyntaxesContext, > oidPrefix); > > super.tearDown(); > So it's really strange that it got stuck like this... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.