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 Mon, 18 Oct 2010 14:53: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=24183371#comment-24183371

Comment added by Farzad:
---------------------------------------------------------------------

You were right.  My dataManager was not initialized, so it was throwing NullPointer exceptions.
 After that I had a primary key violation, and I liked how the UI reported that back.  Finally,
I was using a counter for the primary key and needed to make it static because of the multiple
instances of the connector, so that it incremented correctly.

One interesting thing I learnt was that MCF doesn't reprocess the same item twice. I had a
failed job that processed two item before stopping.  Those two items were not sent again to
newer jobs for the same file system path.  Only after I deleted the jobs, and created a new
one that they were sent again.

In reply to a comment 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.



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

Mime
View raw message