Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processor stuck when write events to storage sink #10041

Closed
CharlesCheung96 opened this issue Nov 8, 2023 · 0 comments · Fixed by #10027
Closed

processor stuck when write events to storage sink #10041

CharlesCheung96 opened this issue Nov 8, 2023 · 0 comments · Fixed by #10027
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. area/ticdc Issues or PRs related to TiCDC. severity/major type/bug The issue is confirmed as a bug.

Comments

@CharlesCheung96
Copy link
Contributor

goroutine 681 [sync.Mutex.Lock, 45 minutes]:
sync.runtime_SemacquireMutex(0x2d843a0?, 0x8?, 0x407758?)
        runtime/sema.go:77 +0x25
sync.(*Mutex).lockSlow(0xc016a6faa8)
        sync/mutex.go:171 +0x15d
sync.(*Mutex).Lock(...)
        sync/mutex.go:90
github.com/pingcap/tiflow/cdc/processor/sinkmanager.(*tableSinkWrapper).getCheckpointTs(0xc016a6fa40)
        github.com/pingcap/tiflow/cdc/processor/sinkmanager/table_sink_wrapper.go:221 +0xb1
github.com/pingcap/tiflow/cdc/processor/sinkmanager.(*SinkManager).GetTableStats(0xc004c7e300, 0x10bf)
        github.com/pingcap/tiflow/cdc/processor/sinkmanager/manager.go:972 +0x2f5
github.com/pingcap/tiflow/cdc/processor.(*processor).GetTableStatus(0xc00251c680, 0x10bf, 0x0)
        github.com/pingcap/tiflow/cdc/processor/processor.go:428 +0x93
github.com/pingcap/tiflow/cdc/scheduler/internal/v3/agent.(*table).getAndUpdateTableState(0xc00a694690)
        github.com/pingcap/tiflow/cdc/scheduler/internal/v3/agent/table.go:56 +0x43
github.com/pingcap/tiflow/cdc/scheduler/internal/v3/agent.(*tableManager).poll(0xc0069e00c0, {0x7f66cb858f00, 0xc120011110})
        github.com/pingcap/tiflow/cdc/scheduler/internal/v3/agent/table.go:318 +0xfd
github.com/pingcap/tiflow/cdc/scheduler/internal/v3/agent.(*agent).Tick(0xc002234f20, {0x7f66cb858f00, 0xc120011110})
        github.com/pingcap/tiflow/cdc/scheduler/internal/v3/agent/agent.go:188 +0x7d
github.com/pingcap/tiflow/cdc/processor.(*processor).tick(0xc00251c680, {0x42a9e30?, 0xc120011110})
        github.com/pingcap/tiflow/cdc/processor/processor.go:698 +0xef
github.com/pingcap/tiflow/cdc/processor.(*processor).Tick(0xc00251c680, {0x42a9e30, 0xc120011110})
        github.com/pingcap/tiflow/cdc/processor/processor.go:592 +0x3a5
github.com/pingcap/tiflow/cdc/processor.(*managerImpl).Tick(0xc0024a0480, {0x7f66cbf00ce0?, 0xc00220e400}, {0x42805c0?, 0xc000c50380})
        github.com/pingcap/tiflow/cdc/processor/manager.go:133 +0x40c
github.com/pingcap/tiflow/pkg/orchestrator.(*EtcdWorker).Run(0xc001ed0420, {0x7f66cbf00ce0, 0xc00220e400}, 0xc001ea27e0, 0x2faf080, {0x39a288       9, 0x9})
        github.com/pingcap/tiflow/pkg/orchestrator/etcd_worker.go:290 +0xf5d
github.com/pingcap/tiflow/cdc/capture.(*captureImpl).runEtcdWorker(0xc001c7c5a0, {0x42a9d90?, 0xc00220e400}, {0x7f66cc040030, 0xc0024a0480},        {0x42805c0, 0xc000c50380}, 0x72a8880?, {0x39a2889, 0x9})
@CharlesCheung96 CharlesCheung96 added type/bug The issue is confirmed as a bug. area/ticdc Issues or PRs related to TiCDC. labels Nov 8, 2023
@CharlesCheung96 CharlesCheung96 added affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. severity/minor severity/major and removed severity/minor labels Nov 9, 2023
ti-chi-bot bot pushed a commit that referenced this issue Nov 9, 2023
ti-chi-bot bot pushed a commit that referenced this issue Nov 10, 2023
CharlesCheung96 added a commit to ti-chi-bot/tiflow that referenced this issue Nov 15, 2023
CharlesCheung96 added a commit to ti-chi-bot/tiflow that referenced this issue Nov 15, 2023
ti-chi-bot bot pushed a commit that referenced this issue Nov 15, 2023
ti-chi-bot bot pushed a commit that referenced this issue Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. area/ticdc Issues or PRs related to TiCDC. severity/major type/bug The issue is confirmed as a bug.
Projects
Development

Successfully merging a pull request may close this issue.

1 participant