Skip to content

[Bug]: TestNewIOPipeline data race — negative WaitGroup counter in job.go #27048

Closed

Description

@matrix-meow

Problem

TestNewIOPipeline in pkg/vm/engine/tae/logstore fails with a data race causing a WaitGroup panic (0.12s):

panic: sync: negative WaitGroup counter
  sync.(*WaitGroup).Add(0xc005920018, 0xffffffffffffffff)
  sync.(*WaitGroup).Done()
  github.com/matrixorigin/matrixone/pkg/vm/engine/tae/tasks.(*Job).Run
    job.go:122
testing.go:1712: race detected during execution of test

A data race in Job.Run causes WaitGroup.Done() to be called when the counter is already 0, triggering a negative WaitGroup counter panic.

Recent Occurrences

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

Suggested Fix

  1. Add mutex protection around WaitGroup operations in job.go:122
  2. Or use atomic operations for the WaitGroup counter
  3. Or ensure Done() is only called once per Add() via sync.Once

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