Hi,

Le 06/06/2014 18:21, Dinesh Babu a écrit :
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.


That's not accurate. In your case you don't need to have a sync task. So if you don't provide any sync task, the clean task will be launched.

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

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

Reply via email to