You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Paul Edwards <Pa...@hyro.com> on 2009/05/06 07:38:25 UTC
Clearning the embedded server, or partition
Guys,
Another probably trivial question, which I can't seem to find an easy answer to.
I now have the embedded server starting up etc. I can add loads of data via the ldifreader. However when I rerun the test, all the data is still present, so it fails. How does one easily clear the partition?
I tried doing:
directoryService.removePartition(partition);
partition.destroy();
log.debug("Deleted partition: " + partition.getSuffix());
at the end of the run, but that doesn't clean. Tried to delete the partition and then recreate, also doesn't do it. Not quite sure what I'm doing wrong.
I suppose I could just write some java to remove the server-work directory, but that doesn't seem a very clean solution to me.
Thanks
--
Paul Edwards
Solutions Engineer
Identity Solutions Practice
---------------------------------------------------------
hyro
W www.hyro.com
E paul.edwards@hyro.com
Re: Clearning the embedded server, or partition
Posted by ayyagarikiran <ay...@gmail.com>.
hi Paul,
Paul Edwards wrote:
> Guys,
>
> Another probably trivial question, which I can't seem to find an easy answer to.
>
> I now have the embedded server starting up etc. I can add loads of data via the ldifreader. However when I rerun the test, all the data is still present, so it fails. How does one easily clear the partition?
>
> I tried doing:
> directoryService.removePartition(partition);
> partition.destroy();
> log.debug("Deleted partition: " + partition.getSuffix());
>
> at the end of the run, but that doesn't clean. Tried to delete the partition and then recreate, also doesn't do it. Not quite sure what I'm doing wrong.
>
Destroying a partition using 'directoryService' will not delete the data.
> I suppose I could just write some java to remove the server-work directory, but that doesn't seem a very clean solution to me.
AFAIK this is the *only* way to clean/remove the partition data
Kiran Ayyagari