Hi all,

I just notice an inconsistency when there is a parsing failure :

1. The Fetcher return an empty ParseImpl instance (it contains no metadata,
especially SEGMENT_NAME_KEY and SIGNATURE_KEY)
2. Then, the Indexer tries to add the fields segment and digest from the
metadata keys (SEGMENT_NAME_KEY and SIGNATURE_KEY) to the document.
Unforunately these values are null, a NPE is thrown and the process failed.

My question is : what behaviour is expected in such case?
1. Fetcher must add the SEGMENT_NAME and SIGNATURE metadata in empty
ParseImpl?
2. The Indexer must ignore documents without SEGMENT_NAME and SIGNATURE?
3. Both?

My feeling is 3, but I prefer that we discuss this point before
committing...

Jérôme

--
http://motrech.free.fr/
http://www.frutch.org/

Reply via email to