Skip to content

fix: fix unstable prefetch reader case#336

Open
lucasfang wants to merge 2 commits into
alibaba:mainfrom
lucasfang:fix
Open

fix: fix unstable prefetch reader case#336
lucasfang wants to merge 2 commits into
alibaba:mainfrom
lucasfang:fix

Conversation

@lucasfang
Copy link
Copy Markdown
Collaborator

fix: stabilize prefetch SetReadRanges failure test

Purpose

Linked issue: N/A

Stabilize PrefetchFileBatchReaderImplTest.SetReadRangesReturnErrorWhenPushDownFailed by making the injected SetReadRanges failure independent of concurrent reader build order.

Previously the test used one OK status and one IOError status for mock readers. Since readers are built concurrently, the failure injection depended on thread scheduling and could become flaky. This change injects IOError into both mock readers so the test deterministically verifies that PrefetchFileBatchReaderImpl::SetReadRanges propagates pushdown failures.

Tests

  • ./build/debug/paimon-common-test --gtest_filter=PrefetchFileBatchReaderImplTest.SetReadRangesReturnErrorWhenPushDownFailed
  • Repeated stability check: PASSED 100/100
  • Lint check for src/paimon/common/reader/prefetch_file_batch_reader_impl_test.cpp: no lint errors found

API and Format

No API, storage format, or protocol changes.

Documentation

No user-facing feature or documentation changes.

Generative AI tooling

Generated-by: Aone Copilot ide-idealab/gpt-5.5

Copilot AI review requested due to automatic review settings June 3, 2026 09:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Collaborator

@lxy-9602 lxy-9602 left a comment

Choose a reason for hiding this comment

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

+1

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.

3 participants