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

TiDB-server panicked during start without etcdClient #45392

Closed
Defined2014 opened this issue Jul 17, 2023 · 0 comments · Fixed by #45393
Closed

TiDB-server panicked during start without etcdClient #45392

Defined2014 opened this issue Jul 17, 2023 · 0 comments · Fixed by #45393
Assignees
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@Defined2014
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

[2023/07/17 16:24:08.952 +08:00] [INFO] [domain.go:282] ["full load InfoSchema success"] [currentSchemaVersion=0] [neededSchemaVersion=46] ["start time"=4.665757ms]
[2023/07/17 16:24:08.952 +08:00] [INFO] [domain.go:597] ["full load and reset schema validator"]
[2023/07/17 16:24:08.952 +08:00] [INFO] [ddl.go:762] ["start DDL"] [category=ddl] [ID=d115f76a-a13e-4fbb-87ae-1162c3362f1d] [runWorker=true]
[2023/07/17 16:24:08.952 +08:00] [INFO] [ddl.go:725] ["start delRangeManager OK"] [category=ddl] ["is a emulator"=true]
[2023/07/17 16:24:08.952 +08:00] [WARN] [env.go:52] ["initialize environment failed"] [category=ddl-ingest] ["storage limitation"="only support TiKV storage"] ["current storage"=unistore] ["lightning is initialized"=false]
[2023/07/17 16:24:08.952 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=loadSchemaInLoop]
[2023/07/17 16:24:08.952 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=mdlCheckLoop]
[2023/07/17 16:24:08.952 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=topNSlowQueryLoop]
[2023/07/17 16:24:08.952 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=infoSyncerKeeper]
[2023/07/17 16:24:08.952 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=globalConfigSyncerKeeper]
[2023/07/17 16:24:08.952 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=runawayRecordFlushLoop]
[2023/07/17 16:24:08.952 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=topologySyncerKeeper]
[2023/07/17 16:24:08.952 +08:00] [INFO] [wait_group_wrapper.go:130] ["background process started"] [source=domain] [process=closestReplicaReadCheckLoop]
[2023/07/17 16:24:08.952 +08:00] [WARN] [domain.go:1504] ["pd / etcd client not provided, won't begin Advancer."]
[2023/07/17 16:24:08.952 +08:00] [INFO] [delete_range.go:160] ["start delRange emulator"] [category=ddl]
[2023/07/17 16:24:08.952 +08:00] [INFO] [job_table.go:330] ["get global state and global state change"] [category=ddl] [oldState=false] [currState=false]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x3c8e552]

goroutine 1 [running]:
github.com/pingcap/tidb/owner.GetOwnerOpValue({0x5fd2b18?, 0xc010302480?}, 0x5f8ec18?, {0x570e840?, 0x0?}, {0x570dfca?, 0x0?})
        /home/jasonmo/tidb/owner/manager.go:418 +0xd2
github.com/pingcap/tidb/session.syncUpgradeState({0x6053be0?, 0xc000f9b180})
        /home/jasonmo/tidb/session/bootstrap.go:1239 +0x45f
github.com/pingcap/tidb/session.upgrade({0x6053be0?, 0xc000f9b180?})
        /home/jasonmo/tidb/session/bootstrap.go:1182 +0x4bb
github.com/pingcap/tidb/session.runInBootstrapSession({0x6002dd8, 0xc00089c300}, 0x58beb20)
        /home/jasonmo/tidb/session/session.go:3564 +0x20d
github.com/pingcap/tidb/session.bootstrapSessionImpl({0x6002dd8, 0xc00089c300}, 0x58be710)
        /home/jasonmo/tidb/session/session.go:3342 +0x291
github.com/pingcap/tidb/session.BootstrapSession(...)
        /home/jasonmo/tidb/session/session.go:3306
main.createStoreAndDomain({0x0?, 0x579814c?})
        /home/jasonmo/tidb/tidb-server/main.go:342 +0x214
main.main()
        /home/jasonmo/tidb/tidb-server/main.go:240 +0x649

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

no panic

3. What did you see instead (Required)

panicked

4. What is your TiDB version? (Required)

master

@Defined2014 Defined2014 added the type/bug The issue is confirmed as a bug. label Jul 17, 2023
@zimulala zimulala self-assigned this Jul 17, 2023
@zimulala zimulala changed the title TiDB-server panicked during start TiDB-server panicked during start without etcdClient Jul 17, 2023
@zimulala zimulala added the sig/sql-infra SIG: SQL Infra label Jul 17, 2023
ti-chi-bot bot pushed a commit that referenced this issue Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants