We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1e847b commit 9ca8d7dCopy full SHA for 9ca8d7d
pkg/kv/kvserver/protectedts/ptcache/cache.go
@@ -188,8 +188,12 @@ func (c *Cache) periodicallyRefreshProtectedtsCache(ctx context.Context) {
188
return
189
}
190
res := future.WaitForResult(ctx)
191
- if res.Err != nil && ctx.Err() != nil {
192
- log.Dev.Errorf(ctx, "failed to refresh protected timestamps: %v", res.Err)
+ if res.Err != nil {
+ // We expect an error if the context was cancelled, we don't want to log
193
+ // in that case.
194
+ if ctx.Err() == nil {
195
+ log.Dev.Errorf(ctx, "failed to refresh protected timestamps: %v", res.Err)
196
+ }
197
198
timer.Reset(protectedts.PollInterval.Get(&c.settings.SV))
199
lastReset = timeutil.Now()
0 commit comments