Limit SSCT WAL Check on Perf Standbys to Raft Backends Only (#15879)
* ensure that ssct wal check only occurs for non-raft storage on perf standbys * changelog
This commit is contained in:
parent
d7c62dc2e7
commit
934989809b
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
core: Limit SSCT WAL checks on perf standbys to raft backends only
|
||||
```
|
|
@ -1945,6 +1945,12 @@ func (c *Core) checkSSCTokenInternal(ctx context.Context, token string, isPerfSt
|
|||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
// Disregard SSCT on perf-standbys for non-raft storage
|
||||
if c.perfStandby && c.getRaftBackend() == nil {
|
||||
return plainToken.Random, nil
|
||||
}
|
||||
|
||||
ep := int(plainToken.IndexEpoch)
|
||||
if ep < c.tokenStore.GetSSCTokensGenerationCounter() {
|
||||
return plainToken.Random, nil
|
||||
|
|
Loading…
Reference in New Issue