realTimeErrorCount is never incremented #53

Closed
opened 2026-10-14 15:34:56 +00:00 by KofTwentyTwo · 0 comments
KofTwentyTwo commented 2026-10-14 15:34:56 +00:00 (Migrated from github.com)

Found while triaging the kof22 in-app help pass (KofTwentyTwo/Website-Backend#196).

What: the index status row's realTimeErrorCount (metadata/QuickSearchTableMetaDataHelper.java:102, read by diagnostics/StatusDiagnostics.java:110 and the status API api/QuickSearchStatus.java:75) is only ever written as 0 (processes/AbstractIndexingStep.java:182, processes/config/AddSearchIndexSteps.java:283, config/QuickSearchConfigPrimer.java:259). When real-time indexing fails, listeners/QuickSearchRecordChangeListener.java:274 logs and records quick_search_failed_event rows but never increments the count, so status always shows 0 real-time errors.

Fix: increment the table's count by the number of failed events when they are recorded (never failing the user's write), keep the reset on full reindex or basepull, and say so in the field's help text.

Found while triaging the kof22 in-app help pass (KofTwentyTwo/Website-Backend#196). **What:** the index status row's `realTimeErrorCount` (`metadata/QuickSearchTableMetaDataHelper.java:102`, read by `diagnostics/StatusDiagnostics.java:110` and the status API `api/QuickSearchStatus.java:75`) is only ever written as 0 (`processes/AbstractIndexingStep.java:182`, `processes/config/AddSearchIndexSteps.java:283`, `config/QuickSearchConfigPrimer.java:259`). When real-time indexing fails, `listeners/QuickSearchRecordChangeListener.java:274` logs and records `quick_search_failed_event` rows but never increments the count, so status always shows 0 real-time errors. **Fix:** increment the table's count by the number of failed events when they are recorded (never failing the user's write), keep the reset on full reindex or basepull, and say so in the field's help text.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QRun-IO/qbit-quick-search#53