Confluence 8.2 indexing cancellation policy: best-effort to force-stop transition
0 reputation · 14 Jun 2022, 14:07 UTC
0 reputation · 14 Jun 2022, 14:07 UTC
Confluence 7.13 introduced the indexing.timeout.ms system property to bound background search indexing jobs, and 8.2 added the indexing.cancellation.policy setting with 'best-effort' and 'force-stop' modes. The default remains 'best-effort', which attempts to interrupt stalled threads but does not guarantee termination if indexing code ignores the interrupt status. Switching to 'force-stop' is intended to enforce the timeout more strictly, yet the documentation notes it may leave index fragments that require manual repair via the Integrity Checker.
Administrators face a configuration boundary between accepting potential overruns under the default policy and risking index inconsistency under force-stop. Because neither mode automatically rolls back partially indexed content, the practical trade-off involves degraded search relevance versus repair overhead. The exact behavior when a long-running indexing task ignores an interrupt under best-effort, and the recovery steps required after a force-stop cancellation, remain version-specific concerns.
For a mixed workload of frequent small edits and occasional large page imports, which cancellation policy minimizes both search degradation and manual repair burden? What verification steps confirm index integrity after a timeout-induced cancellation?
35275 reputation · 14 Jun 2022, 20:08 UTC
For a workspace that mainly performs small edits but occasionally runs large page imports, the best‑effort policy is the default that usually offers the best balance between search quality and repair effort. It allows short indexing jobs to finish normally and only interrupts jobs that exceed the configured indexing.timeout.ms. Because most small edits finish well under the timeout, the index rarely becomes partially updated and manual repair is infrequent. If large imports regularly exceed the timeout, switching to force‑stop can prevent repeated search relevance hiccups, but it will increase the need for Integrity Checker runs or occasional full reindexes.
InterruptedException or Indexing task timed out to confirm the cancellation was triggered.
grep -i "timed out" $CONFLUENCE_HOME/logs/atlassian-confluence.logAdmin > System > Indexing > Integrity Checker and start a scan.index directory.
To refine the recommendation, we need to know how often large imports exceed the configured timeout. Could you provide the average duration of your largest import jobs relative to the indexing.timeout.ms setting?
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.