Skip to content

sfqd-core: fix refundable queue scaling and release 1.2.0 - #25

Merged
pzhin merged 1 commit into
mainfrom
codex/refund-queue-scaling
Sep 29, 2026
Merged

pzhin merged 1 commit into
mainfrom
codex/refund-queue-scaling

Conversation

@pzhin

@pzhin pzhin commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Long queues under REFUND_CANCELLED_COST make ordinary enqueue and cancellation scan queued work while holding the scheduler lock. Maintain exact live-cost sum/gcd aggregates in an AVL multiset and materialize tags at head promotion, reducing ordinary queue updates to O(log K) while preserving the existing admission domain, dispatch order, numeric budgets, public API, and charge-reserved default.

Add long-queue differential, aggregate, and cancellation-before-rebase regressions; expose queue length in JMH cancellation cycles; update complexity documentation and release metadata to 1.2.0. Local JMH reproduces the old queue-length scaling defect; application-specific throughput and deadline guarantees remain out of scope.

Validation passed locally: clean verify (130 core tests and 5 example tests); jcstress (182 configurations); benchmark profile and discovery; JavaDoc negative gate; two-build reproducibility for five artifacts; publication topology with an independent consumer. Maven Central publication and external consumer verification remain pending signing access and green CI.

Keep long cancellation-heavy queues from monopolizing the scheduler lock.
Preserve exact refund admission and dispatch behavior while bounding ordinary
queue updates logarithmically.
@pzhin
pzhin merged commit c925b4a into main Sep 29, 2026
12 checks passed
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