You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2010/12/14 13:40:01 UTC

[jira] Closed: (DIRSERVER-1555) LDIF import very slow

     [ https://issues.apache.org/jira/browse/DIRSERVER-1555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-1555.
----------------------------------------


> LDIF import very slow 
> ----------------------
>
>                 Key: DIRSERVER-1555
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1555
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 1.5.7
>            Reporter: Jean-François Melian
>         Attachments: import_groups.zip, import_users.zip, test_import.ldif, test_import.ldif.log, test_import.ldif.pamarcelot.log, test_import_157_xp.ldif.log, test_import_pamarcelot_win7.ldif.log
>
>
> I work with an embedded ApacheDS but for this test I used a standard standalone ApacheDS whith the system Partition :
>     <systemPartition>
>       <!-- use the following partitionConfiguration to override defaults for -->
>       <!-- the system partition                                              -->
>       <jdbmPartition id="system" cacheSize="100" suffix="ou=system" optimizerEnabled="true" syncOnWrite="true">
>         <indexedAttributes>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
>           <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
>           <jdbmIndex attributeId="ou" cacheSize="100"/>
>           <jdbmIndex attributeId="uid" cacheSize="100"/>
>           <jdbmIndex attributeId="objectClass" cacheSize="100"/>
>         </indexedAttributes>
>       </jdbmPartition>
>     </systemPartition>
> I have generated a ldif file :  400 users and 20 groups with 100 user per group
>  - The 400 users have been imported rapidly :< 15 secondes for the 400 users   => 0.03 second per user
>  - The 20 groups have been imported very more slowly : : > 5 minutes                    => 15.5 seconds per group

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


Re: GenericIndexTest testSetGetWrkDirPath failing on Windows XP

Posted by fe...@gdls.com.
Sorry for the slow response.  I see that this change has been posted to 
trunk.

I have confirmed this morning that this fixes the issue.

mail@stefan-seelmann.de wrote on 12/14/2010 02:38:07 PM:

> Oh, seems that was due to my recent changes. Thanks for reporting.
> 
> Could you please test if the following replacement for line 116 works:
>         assertEquals( zzzDir, new File( index.getWkDirPath() ) );
> 
> Kind Regards,
> Stefan


.


This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information.  No one else may read, print, store, copy, forward or act in reliance on it or its attachments.  If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated.


Re: GenericIndexTest testSetGetWrkDirPath failing on Windows XP

Posted by Stefan Seelmann <se...@apache.org>.
Oh, seems that was due to my recent changes. Thanks for reporting.

Could you please test if the following replacement for line 116 works:
        assertEquals( zzzDir, new File( index.getWkDirPath() ) );

Kind Regards,
Stefan


On Tue, Dec 14, 2010 at 8:14 PM,  <fe...@gdls.com> wrote:
>
> In "org.apache.directory.server.xdbm.GenericIndexTest"  the test
> "testSetGetWrkDirPath" is failing on the AssertEquals at line 116
>
> zzzDir.getPath() = "C:\DOCUME~1\feezelr\LOCALS~1\Temp\zzz"
> index.getWkDirPath().getPath() = "/C:/DOCUME~1/feezelr/LOCALS~1/Temp/zzz"
>
> Clearly these are the same, yet they don't match. This is an e-mail from
> General Dynamics Land Systems. It is for the intended recipient only and may
> contain confidential and privileged information. No one else may read,
> print, store, copy, forward or act in reliance on it or its attachments. If
> you are not the intended recipient, please return this message to the sender
> and delete the message and any attachments from your computer. Your
> cooperation is appreciated.

Re: GenericIndexTest testSetGetWrkDirPath failing on Windows XP

Posted by Kiran Ayyagari <ka...@apache.org>.
On Tue, Dec 14, 2010 at 9:14 PM,  <fe...@gdls.com> wrote:
>
> In "org.apache.directory.server.xdbm.GenericIndexTest"  the test
> "testSetGetWrkDirPath" is failing on the AssertEquals at line 116
>
> zzzDir.getPath() = "C:\DOCUME~1\feezelr\LOCALS~1\Temp\zzz"
> index.getWkDirPath().getPath() = "/C:/DOCUME~1/feezelr/LOCALS~1/Temp/zzz"
>
> Clearly these are the same, yet they don't match.

can you test by replacing the assertion with the below one
assertEquals( URI.create( zzzDir.getPath() ).toString(),
index.getWkDirPath().getPath() );

the index.getWkDirPath().getPath() is returning a URI now using the
File.getPath() on windows has
issues cause it has this <drive>:\XXX syntax

This is an e-mail from
> General Dynamics Land Systems. It is for the intended recipient only and may
> contain confidential and privileged information. No one else may read,
> print, store, copy, forward or act in reliance on it or its attachments. If
> you are not the intended recipient, please return this message to the sender
> and delete the message and any attachments from your computer. Your
> cooperation is appreciated.



-- 
Kiran Ayyagari

GenericIndexTest testSetGetWrkDirPath failing on Windows XP

Posted by fe...@gdls.com.
In "org.apache.directory.server.xdbm.GenericIndexTest"  the test 
"testSetGetWrkDirPath" is failing on the AssertEquals at line 116

zzzDir.getPath() = "C:\DOCUME~1\feezelr\LOCALS~1\Temp\zzz"
index.getWkDirPath().getPath() = "/C:/DOCUME~1/feezelr/LOCALS~1/Temp/zzz"

Clearly these are the same, yet they don't match.


This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information.  No one else may read, print, store, copy, forward or act in reliance on it or its attachments.  If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated.