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

infoschema v2 panic: [tikv:9005]Region is unavailable #54508

Closed
tiancaiamao opened this issue Jul 8, 2024 · 2 comments · Fixed by #54866
Closed

infoschema v2 panic: [tikv:9005]Region is unavailable #54508

tiancaiamao opened this issue Jul 8, 2024 · 2 comments · Fixed by #54866
Assignees
Labels
component/ddl This issue is related to DDL of TiDB. feature/developing the related feature is in development impact/panic severity/major type/bug This issue is a bug.

Comments

@tiancaiamao
Copy link
Contributor

tiancaiamao commented Jul 8, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

When I'm testing 1M tables for infoschema v2
TiKV seems OOM
Then I see this panic log in tidb (gotoutine panic, not the tidb-server process panic). The log is still annoying

2. What did you expect to see? (Required)

no panic log

3. What did you see instead (Required)

2024/07/08 23:58:51 http: panic serving 192.168.0.26:51956: [tikv:9005]Region is unavailable
goroutine 4910570 [running]:
net/http.(*conn).serve.func1()
        /home/genius/project/go/src/net/http/server.go:1868 +0xb9
panic({0x5cda280?, 0xc000b28de0?})
        /home/genius/project/go/src/runtime/panic.go:920 +0x270
github.com/pingcap/tidb/pkg/infoschema.(*infoschemaV2).SchemaTableInfos(0xc313303920, {{0xc2581f20e4?, 0x619e1fd?}, {0xc2581f20e4?, 0xc10f4fdb00?}})
        /home/genius/project/src/github.com/pingcap/tidb/pkg/infoschema/infoschema_v2.go:554 +0x392
github.com/pingcap/tidb/pkg/server/handler/tikvhandler.SchemaHandler.ServeHTTP({0xc0b22bc5a0?}, {0x6c48270, 0xc03a6abc00}, 0xc280ab33b0?)
        /home/genius/project/src/github.com/pingcap/tidb/pkg/server/handler/tikvhandler/tikv_handler.go:990 +0x29e
github.com/gorilla/mux.(*Router).ServeHTTP(0xc08fbf86c0, {0x6c48270, 0xc03a6abc00}, 0xc10adaea00)
        /home/genius/go/pkg/mod/github.com/gorilla/mux@v1.8.0/mux.go:210 +0x1c5
net/http.(*ServeMux).ServeHTTP(0x204d308?, {0x6c48270, 0xc03a6abc00}, 0xc10adaea00)
        /home/genius/project/go/src/net/http/server.go:2514 +0x142
github.com/pingcap/tidb/pkg/server/internal/util.CorsHandler.ServeHTTP({{0x6c2ab40?, 0xc09c6f9500?}, 0xc0016d7200?}, {0x6c48270?, 0xc03a6abc00?}, 0xc324aaf340?)
        /home/genius/project/src/github.com/pingcap/tidb/pkg/server/internal/util/util.go:219 +0x219
net/http.serverHandler.ServeHTTP({0xc280ab2fc0?}, {0x6c48270?, 0xc03a6abc00?}, 0x6?)
        /home/genius/project/go/src/net/http/server.go:2938 +0x8e
net/http.(*conn).serve(0xc1e863c360, {0x6c5e3a8, 0xc097ba40f0})
        /home/genius/project/go/src/net/http/server.go:2009 +0x5f4
created by net/http.(*Server).Serve in goroutine 879
        /home/genius/project/go/src/net/http/server.go:3086 +0x5cb

4. What is your TiDB version? (Required)

@tiancaiamao tiancaiamao added type/bug This issue is a bug. severity/minor feature/developing the related feature is in development labels Jul 8, 2024
@tiancaiamao
Copy link
Contributor Author

Ref #50959

@tiancaiamao
Copy link
Contributor Author

tiancaiamao commented Jul 24, 2024

Closed by #54664

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ddl This issue is related to DDL of TiDB. feature/developing the related feature is in development impact/panic severity/major type/bug This issue is a bug.
2 participants