Hi Raphaël,

There is no error about non existing source. There is source (which is an 
existing LDAP) and it can find it. But because the source does not have any 
entries ( as I have deleted them ) I would like my destination ( which is a 
Solr instance ) also to be cleaned which is not happening as LSC skips clean 
task when it can't find any source bean as explained below

 In SimpleSynchronize.launch(...) method there is for loop

for (Task task: cache.values()) {...}

Inside this for loop there is an if clause for sync

if (!launchTask(task, Task.Mode.sync))

This "launchTask (..)" method will always return false if it can't find any 
source bean and breaks out of the for loop and hence can't reach if clause for 
the clean shown below

if (isCleanTaskAll || cleanTasks.contains(task.getName()))


So in effect LSC does not perform a clean task if it can't find any entry in 
the source LDAP.

Regards,
Dinesh Babu.
™




-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Raphaël 
Ouazana-Sustowski
Sent: 06 June 2014 09:32
To: [email protected]
Subject: Re: [lsc-users] Clean task not getting fired

Hi,

Le 06/06/2014 10:20, Dinesh Babu a écrit :
> Thanks for the quick response Clément. We kick off the sync as below.
> How to set the "-c" option programmatically?
>
> new SimpleSynchronize().launch(asyncTasks, tasks, tasks);


Clean only check for existing destination. If you have an error about non 
existing source, this is because the second parameter avec launch() is sync 
tasks which check for existing source.

Regards,
Raphaël Ouazana.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

________________________________

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to