You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Jean-François Melian (JIRA)" <ji...@apache.org> on 2009/04/27 10:33:30 UTC

[jira] Created: (DIRSERVER-1354) System files partition corruption

System files partition corruption 
----------------------------------

                 Key: DIRSERVER-1354
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
             Project: Directory ApacheDS
          Issue Type: Bug
    Affects Versions: 1.5.5
         Environment: Windows XP
            Reporter: Jean-François Melian


We have an embbeded server with few users and groups for tests purpose of a software. 
After an ldif import of the users and groups all the requests are queries or 
connections. 

During the tests of a tester an error occurs but I don't have the context or log. 

Now Apache DS don't start, here the log at service startup . 

java.io.EOFException 
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
at java.io.ObjectInputStream.<init>(Unknown Source) 
at jdbm.btree.BPage.deserialize(BPage.java:965) 
at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
at jdbm.btree.BTree.getRoot(BTree.java:525) 
at jdbm.btree.BTree.find(BTree.java:401) 
at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)

at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)

at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)

at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)

at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)

at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)

at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)

at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)

at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 


If I rename the system directory (system.bad) and copy a system directory from another Apache
DS directory of an another tester then apache DS start. 




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRSERVER-1354) System files partition corruption

Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kiran Ayyagari closed DIRSERVER-1354.
-------------------------------------


> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>            Assignee: Kiran Ayyagari
>             Fix For: 2.0.0-RC1
>
>         Attachments: 2.zip, DIRSERVER-1354.patch
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1354) System files partition corruption

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1354:
-----------------------------------------

    Affects Version/s:     (was: 1.5.5)
                       1.5.4

> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>             Fix For: 1.5.5
>
>         Attachments: 2.zip
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1354) System files partition corruption

Posted by "Jean-François Melian (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-François Melian updated DIRSERVER-1354:
--------------------------------------------

    Attachment: 2.zip

> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.5
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>         Attachments: 2.zip
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1354) System files partition corruption

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1354:
-----------------------------------------

    Fix Version/s: 1.5.5

We have a draft version of an index rebuilder. We should use it to check the attached partition and see if it fixes the problem.

> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.5
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>             Fix For: 1.5.5
>
>         Attachments: 2.zip
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSERVER-1354) System files partition corruption

Posted by "Jean-François Melian (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12713478#action_12713478 ] 

Jean-François Melian commented on DIRSERVER-1354:
-------------------------------------------------

I have a case ! :
It seems that the problem happens when we start two instances of apacheds in two distinct
JVM (2 tomcat) on the same directory partition. 
	
This is not a normal case of operation but it happens often during our tests: it is very easy
to start Tomcat 2 times in eclipse environment. system partition is corrupted after stop of
JVM.

Is there any way of knowing if the partitions are already used by another server?


> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>             Fix For: 1.5.5
>
>         Attachments: 2.zip
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1354) System files partition corruption

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1354:
-----------------------------------------

    Fix Version/s:     (was: 1.5.5)
                   2.0.0-RC1

Postponed to 2.0.0-RC1

> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>             Fix For: 2.0.0-RC1
>
>         Attachments: 2.zip
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (DIRSERVER-1354) System files partition corruption

Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kiran Ayyagari resolved DIRSERVER-1354.
---------------------------------------

      Assignee: Kiran Ayyagari
    Resolution: Fixed

Thanks Seelmann for the hint, I have chosen the NIO way to lock. 
Fixed here,
http://svn.apache.org/viewvc?rev=979420&view=rev

> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>            Assignee: Kiran Ayyagari
>             Fix For: 2.0.0-RC1
>
>         Attachments: 2.zip, DIRSERVER-1354.patch
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DIRSERVER-1354) System files partition corruption

Posted by "Stefan Seelmann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12892294#action_12892294 ] 

Stefan Seelmann commented on DIRSERVER-1354:
--------------------------------------------

Here is how Eclipse handles the lock of an workspace There are two "Locker" implementations, one based on old IO  and one based on NIO:
  http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox/framework/bundles/org.eclipse.osgi/supplement/src/org/eclipse/core/runtime/internal/adaptor/Locker_JavaIo.java?root=RT_Project&view=co
  http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.equinox/framework/bundles/org.eclipse.osgi/supplement/src/org/eclipse/core/runtime/internal/adaptor/Locker_JavaNio.java?root=RT_Project&view=co

I'm not sure which is used...

> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>             Fix For: 2.0.0-RC1
>
>         Attachments: 2.zip, DIRSERVER-1354.patch
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DIRSERVER-1354) System files partition corruption

Posted by "Kiran Ayyagari (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1354?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kiran Ayyagari updated DIRSERVER-1354:
--------------------------------------

    Attachment: DIRSERVER-1354.patch

A simple solution is to create a lock file and place it in the working directory. A patch with the proposed fix has been attached (created against the revision 966207 ). 
But am not committing this patch as this fix can get in your way creating issues if the lock file wasn't cleaned up due to
a bad VM crash (one e.x kill the JVM in the middle of a debugging session)

Will keep this on hold from committing til many people agree to this solution.

> System files partition corruption 
> ----------------------------------
>
>                 Key: DIRSERVER-1354
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1354
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Windows XP
>            Reporter: Jean-François Melian
>             Fix For: 2.0.0-RC1
>
>         Attachments: 2.zip, DIRSERVER-1354.patch
>
>
> We have an embbeded server with few users and groups for tests purpose of a software. 
> After an ldif import of the users and groups all the requests are queries or 
> connections. 
> During the tests of a tester an error occurs but I don't have the context or log. 
> Now Apache DS don't start, here the log at service startup . 
> java.io.EOFException 
> at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source) 
> at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source) 
> at java.io.ObjectInputStream.readStreamHeader(Unknown Source) 
> at java.io.ObjectInputStream.<init>(Unknown Source) 
> at jdbm.btree.BPage.deserialize(BPage.java:965) 
> at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341) 
> at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:263) 
> at jdbm.btree.BTree.getRoot(BTree.java:525) 
> at jdbm.btree.BTree.find(BTree.java:401) 
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmTable.put(JdbmTable.java:593)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex.add(JdbmIndex.java:458)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmStore.add(JdbmStore.java:1037)
> at org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition.add(JdbmPartition.java:475)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.initializeSystemPartition(DefaultPartitionNexus.java:431)
> at org.apache.directory.server.core.partition.DefaultPartitionNexus.init(DefaultPartitionNexus.java:297)
> at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1483)
> at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:904)
> at com.cincom.kmdata.server.core.ldap.EmbeddedADS.start(EmbeddedADS.java:225) 
> at com.cincom.kmdata.server.core.ldap.EmbeddedADSTest.main(EmbeddedADSTest.java:67) 
> If I rename the system directory (system.bad) and copy a system directory from another Apache
> DS directory of an another tester then apache DS start. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.