Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tidb日志一直刷相同报错 error=“[server:8052]invalid sequence 105 != 1”
【TiDB Usage Environment】Production Environment
【TiDB Version】V5.4.0
【Reproduction Path】Operations performed that led to the issue
【Encountered Issue: Issue Phenomenon and Impact】
No impact observed for now
tidb.log continuously reports errors
[ERROR] [terror.go:307] [“encountered error”] [error=“[server:8052]invalid sequence 105 != 1”] [stack=“github.com/pingcap/tidb/parser/terror.Log\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/parser/terror/terror.go:307\ngithub.com/pingcap/tidb/server.(*Server).onConn\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/server/server.go:516”]
【Resource Configuration】
【Attachments: Screenshots/Logs/Monitoring】
What operation did you perform before encountering this error?
It looks like there’s an issue with the sequence.
invalid sequence 105 != 1
If you don’t use sequences, you don’t need to pay much attention…
If you do use them, then quickly check the range.
It should not be related to the sequence, it should be an internal program error, an error on the MySQL protocol.
I didn’t see any sequence creation in the SQL.
Any suggestions for troubleshooting directions?
In the past month, there were only a few occasionally, but since yesterday until now, 230,000 entries have been processed…
Generally, the encountered error will appear after analyze, and the given information is too little to make a judgment 
How about collecting the operation process before the problem occurred and the approximate changes in the logs before and after…
Thanks, I roughly understand why. There’s a test program. I’ll look into the specific reason further.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.