Issue Details (XML | Word | Printable)

Key: JCR-299
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jukka Zitting
Reporter: Brian Moseley
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Jackrabbit Content Repository

errors in text filters can cause indexing to fail without warning the client

Created: 12/Jan/06 06:12 AM   Updated: 13/Oct/06 04:03 PM
Return to search
Component/s: indexing
Affects Version/s: 0.9, 1.0, 1.0.1
Fix Version/s: 1.1

Time Tracking:
Not Specified

Resolution Date: 19/Jul/06 06:04 PM


 Description  « Hide
i've opened this issue to track the discussion at <http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/5086>. briefly, exceptions thrown by text filters are logged and swallowed by jackrabbit; there's no way for a text filter to signal to the jcr client that indexing failed.

some solutions have been proposed, including throwing an unchecked exception, which doesn't allow jackrabbit to maintain transactional integrity, and giving filters veto power over the observed repository operation. depending on the difficulty of the solution that is eventually determined to be correct, it may be sufficient for 1.0 to document the issue and perhaps improve the warning/error logging.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Jukka Zitting made changes - 16/Feb/06 06:52 AM
Field Original Value New Value
Affects Version/s 1.0 [ 12310154 ]
Affects Version/s 0.9 [ 12310719 ]
Fix Version/s 1.0 [ 12310154 ]
Jukka Zitting made changes - 07/Mar/06 03:33 PM
Fix Version/s 1.0 [ 12310154 ]
Fix Version/s 1.1 [ 12310346 ]
Jukka Zitting made changes - 21/Mar/06 06:23 AM
Affects Version/s 1.0 [ 12310154 ]
Roy T. Fielding made changes - 03/Apr/06 03:29 AM
Component/s query [ 11656 ]
Component/s indexing [ 12310870 ]
Jukka Zitting made changes - 19/Jul/06 05:49 PM
Affects Version/s 1.0.1 [ 12310345 ]
Priority Major [ 3 ] Minor [ 4 ]
Repository Revision Date User Message
ASF #423547 Wed Jul 19 18:00:23 UTC 2006 jukka JCR-299: Catch and log all exceptions (even unchecked ones) thrown by the index filters.
Files Changed
MODIFY /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java

Jukka Zitting added a comment - 19/Jul/06 06:04 PM
Fixed in revision 423547 by catching and logging all index filter exceptions (even unchecked ones). After considering this issue I don't think it makes sense to give the index filters veto powers over saving content. They are not validators, so if a binary property cannot be parsed for text content because of a file format error or some similar problem, the indexer should return an empty reader instead of trying to revert the save or somehow signal the client application.

The requested functionality would be better implemented by extending the value constraint support in Jackrabbit. Please file a separate feature request if you still need this functionality.

Jukka Zitting made changes - 19/Jul/06 06:04 PM
Assignee Jukka Zitting [ jukkaz ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Jukka Zitting made changes - 13/Oct/06 04:03 PM
Status Resolved [ 5 ] Closed [ 6 ]
Jukka Zitting made changes - 07/Jul/09 01:04 PM
Workflow jira [ 12345627 ] no-reopen-closed, patch-avail [ 12469523 ]