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

client panic when shutdown the cluster by force #1113

Open
3AceShowHand opened this issue Jan 12, 2024 · 0 comments
Open

client panic when shutdown the cluster by force #1113

3AceShowHand opened this issue Jan 12, 2024 · 0 comments

Comments

@3AceShowHand
Copy link

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x10188dfbc]

goroutine 2978 [running]:
github.com/tikv/pd/client.(*client).ScanRegions(0x14000d0ac60, {0x10671f7f8, 0x14003e4fa90}, {0x14001fab770, 0x24, 0x24}, {0x14001fab7a0, 0x24, 0x24}, 0x400, ...)
        github.com/tikv/pd/[email protected]/client.go:1040 +0x4ac
github.com/tikv/client-go/v2/internal/locate.(*RegionCache).scanRegions(0x14002e66300, 0x1400388be60, {0x14001fab770, 0x24, 0x24}, {0x14001fab7a0, 0x24, 0x24}, 0x400)
        github.com/tikv/client-go/[email protected]/internal/locate/region_cache.go:1864 +0x2bc
github.com/tikv/client-go/v2/internal/locate.(*RegionCache).BatchLoadRegionsWithKeyRange(0x14002e66300, 0x4?, {0x14001fab770, 0x24, 0x24}, {0x14001fab7a0, 0x24, 0x24}, 0x14005181658?)
        github.com/tikv/client-go/[email protected]/internal/locate/region_cache.go:1425 +0x54
github.com/pingcap/tiflow/cdc/kv.(*SharedClient).divideAndScheduleRegions(0x14000fcc280, {0x10671f7f8?, 0x14003e4fa90}, {0x0, {0x14001fab770, 0x24, 0x24}, {0x14001fab7a0, 0x24, 0x24}}, ...)
        github.com/pingcap/tiflow/cdc/kv/shared_client.go:465 +0x468
github.com/pingcap/tiflow/cdc/kv.(*SharedClient).handleRequestRanges.func1()
        github.com/pingcap/tiflow/cdc/kv/shared_client.go:438 +0x4c
golang.org/x/sync/errgroup.(*Group).Go.func1()
        golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x58
created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 832
        golang.org/x/[email protected]/errgroup/errgroup.go:72 +0x98
@3AceShowHand 3AceShowHand changed the title cleint panic when shutdown the cluster by force client panic when shutdown the cluster by force Jan 12, 2024
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

No branches or pull requests

1 participant