You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#7031 introduced a new path to skip SyncTimestamp in some cases, which might be triggered unexpectedly. For example, if it's the first time that a timestampOracle is created, both last and lastSavedTime could be zero and cause the sync to return early.
close#7138
Only skip the sync if the following conditions are met:
1. The timestamp in memory has been initialized.
2. The last saved timestamp in etcd is not zero.
3. The last saved timestamp in memory is not zero.
4. The last saved timestamp in etcd is equal to the last saved timestamp in memory.
Signed-off-by: JmPotato <ghzpotato@gmail.com>
Co-authored-by: ti-chi-bot[bot] <108142056+ti-chi-bot[bot]@users.noreply.github.com>
Bug Report
#7031 introduced a new path to skip
SyncTimestamp
in some cases, which might be triggered unexpectedly. For example, if it's the first time that atimestampOracle
is created, bothlast
andlastSavedTime
could be zero and cause the sync to return early.pd/pkg/tso/tso.go
Lines 158 to 175 in 301b917
The text was updated successfully, but these errors were encountered: