Karl Wright created CONNECTORS-1120:
---------------------------------------
Summary: 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)