Skip to content

[Bug]: disk cache finalization UT flakes under CI scheduling load #28784

Closed

Description

@XuPeng-SH

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

cde57d1 (PR #28782 run)

Other Environment Information

Actual Behavior

TestS3FSWriteDiskCacheFinalizeMode/async failed at pkg/fileservice/s3_fs_test.go:1111 with disk-cache finalization did not start. The test waited five seconds for the goroutine to reach the blocked file-sync barrier. The sibling sync subtest passed. This failure is unrelated to the Arrow LOAD test files changed by PR #28782.

Expected Behavior

The test should preserve its async-versus-sync ordering assertions while remaining reliable when a race-enabled CI worker is heavily loaded. A scheduling delay should not be reported as a broken disk-cache transition unless the transition itself is stuck.

Steps to Reproduce

  1. Run the race-enabled UT suite on a busy Linux runner.
  2. Execute TestS3FSWriteDiskCacheFinalizeMode/async.
  3. Observe whether the goroutine reaches the injected file-sync barrier before the current five-second deadline.

Additional information

This is one observed failure, so it does not yet prove a product-code defect or repeatable flake. The failure window was 13:17:53–13:17:59 UTC; the test hit its scheduling timeout before exercising the async/sync completion assertions. Please investigate the barrier/deadline behavior without removing those assertions.

Activity

  1. self-assigned this
    on Sep 12, 2026
  2. added
    kind/bug
    on Sep 12, 2026
  3. XuPeng-SH commented on Sep 22, 2026

    @XuPeng-SH
    ContributorAuthor

    The reported test synchronization defect is resolved by merged PR #29116. That change makes async disk-cache finalization wait on a deterministic blocked-sync hook instead of depending on a five-second scheduling window; it does not change production finalization timeouts. The merge commit is present on current main. Closing this specific UT flake as fixed; this does not claim that every cache finalization failure class is eliminated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions