manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karl Wright (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONNECTORS-1120) ElasticSearch connector document deletion fails when document already deleted
Date Fri, 12 Dec 2014 15:05:14 GMT

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

Karl Wright commented on CONNECTORS-1120:
-----------------------------------------

r1644922 (release-2.0-branch)


> ElasticSearch connector document deletion fails when document already deleted
> -----------------------------------------------------------------------------
>
>                 Key: CONNECTORS-1120
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1120
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: Elastic Search connector
>    Affects Versions: ManifoldCF 1.7.2
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 1.8, ManifoldCF 2.0
>
>
> This is the exception that is thrown:
> {code}
> ERROR 2014-12-12 14:45:24,915 (Document cleanup thread '2') - Exception tossed: Server/page
not found
> org.apache.manifoldcf.core.interfaces.ManifoldCFException: Server/page not found
>         at org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchConnection.handleResultCode(ElasticSearchConnection.java:234)
>         at org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchConnection.call(ElasticSearchConnection.java:203)
>         at org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchDelete.execute(ElasticSearchDelete.java:45)
>         at org.apache.manifoldcf.agents.output.elasticsearch.ElasticSearchConnector.removeDocument(ElasticSearchConnector.java:578)
>         at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.removeDocument(IncrementalIngester.java:2350)
>         at org.apache.manifoldcf.agents.incrementalingest.IncrementalIngester.documentDeleteMultiple(IncrementalIngester.java:1059)
>         at org.apache.manifoldcf.crawler.system.DocumentCleanupThread.run(DocumentCleanupThread.java:189)
> {code}
> The problem is that a 404 error is returned, and it is treated as fatal by the ES connector,
but that's wrong according to the REST API spec:
> http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/delete-doc.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message