incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Connectors Framework > How to Write an Output Connector
Date Fri, 15 Oct 2010 23:34:00 GMT
Space: Apache Connectors Framework (https://cwiki.apache.org/confluence/display/CONNECTORS)
Page: How to Write an Output Connector (https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector)
Comment: https://cwiki.apache.org/confluence/display/CONNECTORS/How+to+Write+an+Output+Connector?focusedCommentId=24183168#comment-24183168

Comment added by Karl Wright:
---------------------------------------------------------------------

addOrReplaceDocument is only called when a document is indexed.  But if your code throws an
exception, the framework code will repeat the process.  I suggest you check the output log
to see the exception.



In reply to a comment by Farzad:
I got an error trying to unregister, I posted that under "How to build and deploy ManifoldCF"
where it talks about issuing commands.

I got around the problem by dropping the table and doing a clean build.  Now the table is
created, however it is empty, no rows.  dataManager.insertData is getting called inside addOrReplaceDocument.

The job status says Documents=9, Active=6, and Processed=9 and the job doesn't end. I am returning
DOCUMENTSTATUS_ACCEPTED.  I start the job manually.

I traced the calls and I see where deinstall and install are called initially.  When I start
the job, for some reason addOrReplaceDocument is called 45 times, and getOutputDescription
is called 48 times.  I only have 9 docs, why so many times?

Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action

Mime
View raw message