Skip to content

Let a read finish between long queries in the shared connection test - #281

Merged
abrignoni merged 2 commits into
mainfrom
fix/shared-reads-starved-readers
Oct 10, 2026
Merged

abrignoni merged 2 commits into
mainfrom
fix/shared-reads-starved-readers

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

The shared connection test ran out its 300 s twice on the 3.10 job on 2026-10-10. It was the test, not a deadlock.

  • The long query in tests/sharedreads.py ran back to back and kept the readers off the connection on the Linux runners. It now waits for a read to finish first.
  • With the statement cache turned back on, the changed test still fails every run on 3.12 and 3.14.
  • 202 suite passes on 3.10 after the change: none timed out, the case took 2 to 9 s.
  • Timeout unchanged. Nothing under gleapp/ changes.
  • Measurements are in the rules note.

Co-Authored-By: Claude Opus 5.5 [email protected]

abrignoni and others added 2 commits October 10, 2026 17:26
The long query in tests/sharedreads.py ran back to back. On the Linux runners
it took the connection again before a waiting reader got it, so a reader sat
through up to 9 long queries for one read and the run had no upper bound:
test_every_thread_gets_the_row_it_asked_for[db] ran out its 300 s twice on
Python 3.10 on 2026-10-10 with every reader still advancing. The long query
now waits for a read to finish before it runs again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni enabled auto-merge October 10, 2026 21:32
@abrignoni
abrignoni merged commit f300d1d into main Oct 10, 2026
8 checks passed
@abrignoni
abrignoni deleted the fix/shared-reads-starved-readers branch October 10, 2026 21:40
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