Skip to content

[indexer] Improve pending status flush#927

Merged
Wizdave97 merged 2 commits into
mainfrom
debug-pending-status-flush
May 28, 2026
Merged

[indexer] Improve pending status flush#927
Wizdave97 merged 2 commits into
mainfrom
debug-pending-status-flush

Conversation

@Wizdave97
Copy link
Copy Markdown
Member

No description provided.

Wizdave97 added 2 commits May 28, 2026 18:25
Add entry/exit logs in handlePendingStatusFlush, per-entityType fetch
counts and parent-missing logs in PendingStatusService.flushBatch, and
a modulo: 10 filter on the BlockHandler so it fires every 10
Hyperbridge blocks (~1 min) for easier log inspection.
If the entityType index is stale or stores values that drift from our
constants the per-entityType fetch returns zero rows even when the DB
has matching pending entries. Switch to PendingStatusMetadata.getByFields([], { limit })
which runs a single un-filtered query and dispatch on each row's
entityType field after read. Unknown entityType values are warn-logged
and skipped.
@Wizdave97 Wizdave97 merged commit ca6ec75 into main May 28, 2026
1 check passed
@Wizdave97 Wizdave97 deleted the debug-pending-status-flush branch May 28, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants