Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: tidb service 组件一直重启
|
username: TiDBer_vZIeuSNY
[TiDB Usage Environment] Production Environment
[TiDB Version] v6.5.1
[Reproduction Path]
[Encountered Problem: Problem Phenomenon and Impact]
[Resource Configuration] Enter TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachment: Screenshot/Log/Monitoring]
The tidb service component keeps restarting, and the following is the error log of the restart. Why is this happening?
[2024/07/05 11:06:38.058 +08:00] [FATAL] [prewrite.go:345] [“one pc happened multiple times”] [startTS=450926686506057747] [stack=“github.com/tikv/client-go/v2/txnkv/transaction.actionPrewrite.handleSingleBatch\n\t/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.4-0.20230131081004-cd83d1507d70/txnkv/transaction/prewrite.go:345\ngithub.com/tikv/client-go/v2/txnkv/transaction.(*twoPhaseCommitter).doActionOnBatches\n\t/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.4-0.20230131081004-cd83d1507d70/txnkv/transaction/2pc.go:1035\ngithub.com/tikv/client-go/v2/txnkv/transaction.(*twoPhaseCommitter).doActionOnGroupMutations\n\t/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.4-0.20230131081004-cd83d1507d70/txnkv/transaction/2pc.go:1016\ngithub.com/tikv/client-go/v2/txnkv/transaction.(*twoPhaseCommitter).doActionOnMutations\n\t/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.4-0.20230131081004-cd83d1507d70/txnkv/transaction/2pc.go:787\ngithub.com/tikv/client-go/v2/txnkv/transaction.(*twoPhaseCommitter).prewriteMutations\n\t/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.4-0.20230131081004-cd83d1507d70/txnkv/transaction/prewrite.go:438\ngithub.com/tikv/client-go/v2/txnkv/transaction.(*twoPhaseCommitter).execute\n\t/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.4-0.20230131081004-cd83d1507d70/txnkv/transaction/2pc.go:1480\ngithub.com/tikv/client-go/v2/txnkv/transaction.(*KVTxn).Commit\n\t/go/pkg/mod/github.com/tikv/client-go/v2@v2.0.4-0.20230131081004-cd83d1507d70/txnkv/transaction/txn.go:502\ngithub.com/pingcap/tidb/store/driver/txn.(*tikvTxn).Commit\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/store/driver/txn/txn_driver.go:86\ngithub.com/pingcap/tidb/session.(*LazyTxn).Commit\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/txn.go:408\ngithub.com/pingcap/tidb/session.(*session).commitTxnWithTemporaryData\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:840\ngithub.com/pingcap/tidb/session.(*session).doCommit\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:726\ngithub.com/pingcap/tidb/session.(*session).doCommitWithRetry\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:972\ngithub.com/pingcap/tidb/session.(*session).CommitTxn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:1102\ngithub.com/pingcap/tidb/session.autoCommitAfterStmt\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/tidb.go:282\ngithub.com/pingcap/tidb/session.finishStmt\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/tidb.go:248\ngithub.com/pingcap/tidb/session.(*execStmtResult).Close\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/session/session.go:2412\ngithub.com/pingcap/tidb/parser/terror.Call\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:306\ngithub.com/pingcap/tidb/statistics/handle.(*Handle).initTopNCountSum\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/statistics/handle/bootstrap.go:354\ngithub.com/pingcap/tidb/statistics/handle.(*Handle).initStatsHistograms4Chunk\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/statistics/handle/bootstrap.go:144\ngithub.com/pingcap/tidb/statistics/handle.(*Handle).initStatsHistograms\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/statistics/handle/bootstrap.go:185\ngithub.com/pingcap/tidb/statistics/handle.(*Handle).InitStats\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/statistics/handle/bootstrap.go:415\ngithub.com/pingcap/tidb/domain.(*Domain).loadStatsWorker\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/domain/domain.go:1882\ngithub.com/pingcap/tidb/util.(*WaitGroupWrapper).Run.func1\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/util/wait_group_wrapper.go:33”]