Skip to content

fix(yuque): discard canceled sync results - #5493

Open
OUAO-FRANK wants to merge 1 commit into
Tencent:mainfrom
OUAO-FRANK:codex/issue-5491-yuque-cancel-final
Open

OUAO-FRANK wants to merge 1 commit into
Tencent:mainfrom
OUAO-FRANK:codex/issue-5491-yuque-cancel-final

Conversation

@OUAO-FRANK

Copy link
Copy Markdown
Contributor

Description

Cancellation during the last detail request can be handled as a per-document fetch error. With no more requests to make, the connector then returns a batch and a new cursor as if the sync succeeded.

Check the context at the return boundary and discard the batch and cursor when canceled. Ordinary per-document failures retain the existing retry behavior.

Type of Change

  • Bug fix
  • Test

Related Issue

Fixes #5491

Testing

The local HTTP regression failed three times on main and passed three times with the patch. Linux Yuque package tests, go vet, diff-scoped golangci-lint, server build and git diff --check passed.

Checklist

  • Changed files and diff checked
  • Regression coverage and targeted checks passed

AI assistance: Codex diagnosed the issue, implemented the patch and ran local checks.

This branch has not been deployed

No deployments
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.

[Bug]: Yuque sync returns a batch and cursor after the last detail request is canceled

1 participant