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

v6.5.12 br & lightning: cannot set read timestamp to a future time #59758

Closed
apollodafoni opened this issue Feb 25, 2025 · 3 comments
Closed
Labels

Comments

@apollodafoni
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

lightning: do some lightning import about list partition table
br: restore table about list partition table

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

restore success and lightning import success

3. What did you see instead (Required)

br log:

[ERROR] [restore.go:59] ["failed to restore"] [error="cannot set read timestamp to a future time, readTS: 456173065754378256, currentTS: 456173065754378249"] [errorVerbose="cannot set read timestamp to a future time, readTS: 456173065754378256, currentTS: 456173065754378249\ngithub.jparrowsec.cn/pingcap/errors.AddStack\n\t/root/go/pkg/mod/github.com/pingcap/[email protected]/errors.go:174\ngithub.jparrowsec.cn/pingcap/errors.Trace\n\t/root/go/pkg/mod/github.com/pingcap/[email protected]/juju_adaptor.go:15\ngithub.jparrowsec.cn/pingcap/tidb/store/driver/error.ToTiDBErr\n\t/workspace/source/tidb/store/driver/error/error.go:169\ngithub.jparrowsec.cn/pingcap/tidb/store/copr.(*copIteratorWorker).handleTaskOnce\n\t/workspace/source/tidb/store/copr/coprocessor.go:1032\ngithub.jparrowsec.cn/pingcap/tidb/store/copr.(*copIteratorWorker).handleTask\n\t/workspace/source/tidb/store/copr/coprocessor.go:929\ngithub.jparrowsec.cn/pingcap/tidb/store/copr.(*copIteratorWorker).run\n\t/workspace/source/tidb/store/copr/coprocessor.go:630\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"] [stack="main.runRestoreCommand\n\t/workspace/source/tidb/br/cmd/br/restore.go:59\nmain.newDBRestoreCommand.func1\n\t/workspace/source/tidb/br/cmd/br/restore.go:157\ngithub.jparrowsec.cn/spf13/cobra.(*Command).execute\n\t/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:916\ngithub.jparrowsec.cn/spf13/cobra.(*Command).ExecuteC\n\t/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044\ngithub.jparrowsec.cn/spf13/cobra.(*Command).Execute\n\t/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:968\nmain.main\n\t/workspace/source/tidb/br/cmd/br/main.go:36\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"]

lightning log:

[2025/02/25 09:09:04.448 +00:00] [ERROR] [main.go:103] ["tidb lightning encountered error stack info"] [error="cannot set read timestamp to a future time, readTS: 456254660294737932, currentTS: 456254660281630733"] [errorVerbose="cannot set read timestamp to a future time, readTS: 456254660294737932, currentTS: 456254660281630733\ngithub.jparrowsec.cn/pingcap/errors.AddStack\n\t/root/go/pkg/mod/github.com/pingcap/[email protected]/errors.go:174\ngithub.jparrowsec.cn/pingcap/errors.Trace\n\t/root/go/pkg/mod/github.com/pingcap/[email protected]/juju_adaptor.go:15\ngithub.jparrowsec.cn/pingcap/tidb/store/driver/error.ToTiDBErr\n\t/workspace/source/tidb/store/driver/error/error.go:169\ngithub.jparrowsec.cn/pingcap/tidb/store/copr.(*copIteratorWorker).handleTaskOnce\n\t/workspace/source/tidb/store/copr/coprocessor.go:1032\ngithub.jparrowsec.cn/pingcap/tidb/store/copr.(*copIteratorWorker).handleTask\n\t/workspace/source/tidb/store/copr/coprocessor.go:929\ngithub.jparrowsec.cn/pingcap/tidb/store/copr.(*copIteratorWorker).run\n\t/workspace/source/tidb/store/copr/coprocessor.go:630\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"]

4. What is your TiDB version? (Required)

Release Version: v6.5.12
Edition: Community
Git Commit Hash: 438a8b6
Git Branch: HEAD
UTC Build Time: 2025-02-24 11:46:51
GoVersion: go1.19.13
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv

@apollodafoni apollodafoni added the type/bug The issue is confirmed as a bug. label Feb 25, 2025
@apollodafoni
Copy link
Author

/severity major
/component br
/component lightning
/affects label-6.5

@OliverS929
Copy link
Contributor

#59741 should have fixed this issue for Lightening by updating the client-go version of tidb repo.

@apollodafoni
Copy link
Author

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants