Skip to content

[Bug]: TestSubscriptionWaitsForOrderedBootstrapEvent flaky — bootstrap event count mismatch #27047

Closed

Description

@matrix-meow

Problem

TestSubscriptionWaitsForOrderedBootstrapEvent in pkg/vm/engine/tae/logtail/service/unhappy_path_test.go:1222 fails intermittently (0.01s):

expected: 1 (bootstrap event count)

The test verifies that a logtail subscription waits for the ordered bootstrap event before proceeding. Under CI load, the bootstrap event count doesn't match expectations, likely due to timing races in the subscription setup/teardown.

Cleanup errors also observed:

stop subscription handler: context canceled
stop session sender: context canceled
stop logtail pull worker: context canceled

Recent Occurrences

Date PR/Run Job
2026-08-12 PR #27007 UT Test on Ubuntu/x86

Suggested Fix

  1. Increase bootstrap event wait timeout for CI environments
  2. Or add retry logic for transient event count mismatches
  3. Or use deterministic synchronization in tests instead of timing-based waits

Activity

  1. self-assigned this
    on Aug 12, 2026
  2. added a commit that references this issue on Aug 12, 2026
    1c292cf
  3. added 3 commits that reference this issue on Sep 17, 2026
    00632cc
    bf5cc90
    9710f19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions