Skip to content

fix(crawler): log a failed text extraction as one line - #4033

Merged
marevol merged 1 commit into
mainfrom
fix/extraction-failure-warn-one-line
Dec 4, 2026
Merged

marevol merged 1 commit into
mainfrom
fix/extraction-failure-warn-one-line

Conversation

@marevol

@marevol marevol commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Problem

When the text of a crawled document cannot be extracted (a broken or encrypted file), the crawler indexes the document without content and logs a WARN with the whole stack trace. Such files are common on file shares, and the traces drown the rest of the crawler log.

Change

  • The WARN is one line: url, extractor and reason= (the exception message and, if there are causes, the root cause). Line breaks are removed and user information in urls is stripped.
  • The stack trace is logged at DEBUG.

What is indexed and what becomes a failure url does not change.

Tests

  • New tests in AbstractFessFileTransformerTest; the transformer tests pass.
  • Checked with a crawl of broken files on a running Fess.

A broken or encrypted document is expected among crawled files, and each
one wrote a warning with a full stack trace into the crawler log. The
warning now names the reason, down to the root cause, on one line; the
stack trace is written at debug level.
@marevol marevol added this to the 15.10.0 milestone Dec 4, 2026
@marevol marevol self-assigned this Dec 4, 2026
@marevol
marevol merged commit ce4ee8c into main Dec 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant