You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Karl Wright (JIRA)" <ji...@apache.org> on 2013/04/30 17:06:16 UTC

[jira] [Commented] (CONNECTORS-685) we need possibility to mark all documents in job to reingestion

    [ https://issues.apache.org/jira/browse/CONNECTORS-685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13645650#comment-13645650 ] 

Karl Wright commented on CONNECTORS-685:
----------------------------------------

You are correct that this is not a well-handled case right now.  I think it is also not the responsibility of the connector to deal with this; rather, it is the responsibility of the framework.  The right flow is (in my opinion) to augment what is seeded with all EXISTING documents, if the job specification has been changed, but only when the model is MODEL_ADD_CHANGE_DELETE.  This is easily detected because the start time for the job is set back to 0 in that case.

I will think through the proper place this should occur and get back to you.  I believe it should happen during job start.  There is already a JobManager and JobQueue method which would be a perfect place to put this fix, I think.

                
> we need possibility to mark all documents in job to reingestion
> ---------------------------------------------------------------
>
>                 Key: CONNECTORS-685
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-685
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Framework core
>            Reporter: Maciej Lizewski
>
> consider case: You have connector with model MODEL_ADD_CHANGE_DELETE (we have notificantion about every action with ingested documents). This job is somehow configured to fetch objects for two categories (category A and B). During its work - documents from both categories are ingested.
> Now - administrator changes configuration of this job removing 'category B', which means only documents from category A should be ingested. But since the model is MODEL_ADD_CHANGE_DELETE - existing documents from category B will never be reingested to check if they are valid. Seeding will not return documents from deleted category because there is no configuration entry for such category any more and there is no possibility to check what was the configuration BEFORE change...
> possible solutions:
> 1. for connectors with MODEL_ADD_CHANGE_DELETE after every configuration change all existing documents should be marked to reingest (it is up to getDocumentVersions function to properly check if documents should be ingested and mark them with NULL version)
> 2. ISeedingActivity should be extended to handle 'reingestAllIngestedDocuments' - then seeding function will detect configuration changes (startTime will be 0) and decide whether to reingest all documents or not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira