Skip to content

fix(zcode): abort unknown boundary flush after request arrival - #2094

Merged
hidb4ai merged 1 commit into
oceanbase:masterfrom
luochen211:fix/zcode-pending-boundary-abort
Oct 20, 2026
Merged

hidb4ai merged 1 commit into
oceanbase:masterfrom
luochen211:fix/zcode-pending-boundary-abort

Conversation

@luochen211

@luochen211 luochen211 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Which issue or RFC does this PR close?

Fixes #2080.

Rationale for this change

The unknown case in pending preserves concurrent receipts and pauses unknown writes relied on an 800 ms AbortSignal.timeout racing a 1200 ms fixture delay. The timeout also covered filesystem work before HTTP dispatch, so on a slow runner the signal could fire before the request was sent, and failed was then the correct result.

What changes are included in this PR?

  • The unknown case now holds the fixture response and aborts the flush from the server's request-arrival hook, so cancellation always happens after dispatch.
  • The test still asserts unknown for uncertain delivery; failed for unsent requests is unchanged.
  • Test-only change.

Are there any user-facing changes?

No.

How was this change tested?

  • node --test integrations/zcode/plugins/powercontext/tests/*.test.mjs: 22 passed (with TMPDIR=/private/tmp on macOS; the unrelated scope test otherwise fails on the /var -> /private/var symlink, same as on master).
  • node --test integrations/zcode/plugins/powercontext/tests/boundary.test.mjs 5 times in a row: all passed.

AI usage statement

Claude Code was used to investigate the flaky test, draft the test change, and run the local test suite. I reviewed the change and the test results.

@CLAassistant

CLAassistant commented Oct 20, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@luochen211
luochen211 marked this pull request as ready for review October 20, 2026 02:49

@hidb4ai hidb4ai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@hidb4ai
hidb4ai merged commit e401949 into oceanbase:master Oct 20, 2026
37 of 67 checks passed
@hidb4ai hidb4ai added the 1.4.1 v1.4.1 release tracking label Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.4.1 v1.4.1 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: flaky ZCode pending boundary timeout assertion

3 participants