Skip to content

Revert sync-status gating/caching/scheduler (#758, #761, #767)#773

Merged
Sotatek-HenryDo merged 1 commit into
developfrom
revert/sync-status-scheduler
Jul 16, 2026
Merged

Revert sync-status gating/caching/scheduler (#758, #761, #767)#773
Sotatek-HenryDo merged 1 commit into
developfrom
revert/sync-status-scheduler

Conversation

@Sotatek-HenryDo

Copy link
Copy Markdown
Collaborator

Reverts:

These introduced verifySyncStatus() gating on /account/balance, /account/coins, and /search, later backed by a periodic @scheduled background refresh sharing the Hikari connection pool with request traffic. Under load, a transient DB timeout in the scheduled refresh gets swallowed by PostgreSQLIndexCreationMonitor's defensive exception handling and poisons the single shared cached status for up to 10s, causing a step-function error spike across all gated endpoints (e.g. 37.51% error rate on /account/balance at concurrency 24, 87.78% on /account/coins at concurrency 44).

This revert isolates the legacy stability test from that regression to confirm the root cause before deciding on a permanent fix.

Reverts:
- 2cb7b1f fix: block data endpoints when indexer is syncing (#758)
- e95fb74 feat: add 5s cache for sync status verification (#761)
- 990564b feat(sync) status refresh scheduler (#767)

These introduced verifySyncStatus() gating on /account/balance,
/account/coins, and /search, later backed by a periodic @scheduled
background refresh sharing the Hikari connection pool with request
traffic. Under load, a transient DB timeout in the scheduled refresh
gets swallowed by PostgreSQLIndexCreationMonitor's defensive
exception handling and poisons the single shared cached status for
up to 10s, causing a step-function error spike across all gated
endpoints (e.g. 37.51% error rate on /account/balance at concurrency
24, 87.78% on /account/coins at concurrency 44).

This revert isolates the legacy stability test from that regression
to confirm the root cause before deciding on a permanent fix.
@github-actions

Copy link
Copy Markdown
Contributor

✅ Preprod Tests: PASSED

📊 View Detailed Test Report

🔗 Action Run #417

Tests run against preprod network with live blockchain data

@Sotatek-HenryDo
Sotatek-HenryDo marked this pull request as ready for review July 16, 2026 10:03
@Sotatek-HenryDo
Sotatek-HenryDo merged commit 1925c34 into develop Jul 16, 2026
3 checks passed
@Sotatek-HenryDo
Sotatek-HenryDo deleted the revert/sync-status-scheduler branch July 16, 2026 10:10
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.

1 participant