Skip to content

Hold the collector off around the presence reader's timed windows - #549

Merged
JE-Chen merged 1 commit into
devfrom
fix/presence-reader-gc-window
Nov 2, 2026
Merged

JE-Chen merged 1 commit into
devfrom
fix/presence-reader-gc-window

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Nov 2, 2026

Copy link
Copy Markdown
Member

The quality run on the 1.2.0 release PR (#548) failed on Ubuntu 3.14 twice, in the first attempt and its rerun, on the same test and in the same place: the first ready() of test_reader_loss_does_not_block_worker_owned_release_only_ack_cleanup raised physical presence reader deadline exhausted. All other 17,546 tests, and all eight other squares, passed.

  • ready() must answer within 0.25 s. The same commit passed Dev CI's Ubuntu 3.14 square. The quality job adds only coverage run, and on Linux both jobs run under gdb.
  • Allocation counts trigger the collector, so a fixed test order puts a collection in the same place on every run. After 17,000 tests under coverage and gdb, one collection of the heap overruns the window. This is inferred, not observed; U-20261103-01 lists the evidence.
  • Fix (test only): the harness fixture collects once, disables the collector for the test and always re-enables it. The product deadline is unchanged: a collection pause in production still fails closed.

The quality run on #548 checks the fix. If the cause is something else, it fails again in the same place.

The quality run on the 1.2.0 release PR failed twice in a row on Ubuntu 3.14, at the first ready() of test_reader_loss_does_not_block_worker_owned_release_only_ack_cleanup. The reader must answer within 0.25 s. Under coverage and gdb, late in the suite, a whole-heap collection takes longer than that, and the fixed test order puts it in the same place on every run. The fixture now collects first and disables the collector for each test, and always re-enables it. The product deadline is unchanged.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 4 complexity · 0 duplication

Metric Results
Complexity 4
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

@JE-Chen
JE-Chen merged commit d871939 into dev Nov 2, 2026
11 of 12 checks passed
@JE-Chen JE-Chen mentioned this pull request Nov 2, 2026
@JE-Chen
JE-Chen deleted the fix/presence-reader-gc-window branch November 2, 2026 20: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