You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(state): completed hourly queries wait on unrelated archive work #1270
Completed hourly summaries can still time out when a query includes partial boundary hours. This affects v3.5.2-beta.1 and prevents stable promotion.
loadSeriesBucketsFromHours reads full hours from ts_series_hour, then sends partial hours through walkMergedSeries. That function waits for the global archiveMu even when the selected interval has no Parquet file. RolloffToParquet holds this mutex across staging, compression, verification and pruning of the entire backlog. An unrelated archive job can therefore consume the query deadline.
A focused local test confirms the distinction:
Populate a completed hourly summary spanning multiple days.
Hold archiveMu to represent an in-progress archive operation.
Query a range aligned to whole hours: it succeeds.
Query the same range with partial boundary hours and a short context: it returns context.DeadlineExceeded, even without a Parquet file.
The public series API has a 30-second deadline, so this path can return HTTP 500 for a normal chart request.
Fix the lock scope or coordinate the affected time ranges so unrelated reads can proceed. Preserve the consistent handover between SQLite and verified Parquet; do not remove the lock without preserving that guarantee. Add regression tests for partial boundaries during archiving, concurrent publication/pruning, late corrections, cancellation and continuing live commits. Validate both aligned and unaligned chart requests with a large archive backlog before stable promotion.
Activity