Open daviszhen opened 1 week ago
frontend/snapshot.go:667","msg":"[019304ee-052a-7d67-814e-bb995f30fd9f_sp06_mock] start to restore db: test01, restore timestamp: 1730954528007055169"
frontend/snapshot.go:1380","msg":"[019304ee-052a-7d67-814e-bb995f30fd9f_sp06_mock] get create database test01
sql: select datname, dat_createsql from mo_catalog.mo_database {snapshot = '019304ee-052a-7d67-814e-bb995f30fd9f_sp06_mock'} where datname = 'test01' and account_id = 10110"
"frontend/snapshot.go:1388","msg":"error: Unknown database test01
根据时间戳show database的时候能得到database test01, 然后根据快照的时间戳去mo_database表里面去查database test01的create sql的时候没有查到,然后报这个错误了。
@triump2020 麻烦看一下
原因是: 同一个事务id , 同一个snapsshot ts 拿到的是不同的 partition state , 但是为啥没有从tbl.partitionState 缓存中拿,是根本原因.
Is there an existing issue for the same bug?
Branch Name
main
Commit ID
latest
Other Environment Information
Actual Behavior
Expected Behavior
no failure
Steps to Reproduce
Additional information
No response