Skip to content

Test that a cycle stops before an operation that overflows the flush - #312

Open
reeceyang wants to merge 1 commit into
batch-oversized-opfrom
batch-flush-overflow
Open

reeceyang wants to merge 1 commit into
batch-oversized-opfrom
batch-flush-overflow

Conversation

@reeceyang

Copy link
Copy Markdown
Contributor

Adds a regression test for a cycle whose last operation leaves more pending node writes than the 2 MiB reserve, so the end-of-cycle flush runs out of room. Before #311 ran the flush inside its limits, this stalled the queue for good: every retry failed the same way, which also showed on a local backend. Now the cycle stops before that operation and the queue drains.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

@pkg-pr-new

pkg-pr-new Bot commented Dec 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@convex-dev/aggregate@312

commit: 8697dd1

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