bug: add error handling for missing state lock config in S3, HTTP and OSS backends (#1977)

Signed-off-by: g0dfl3sh <alex1trendler@gmail.com>
Signed-off-by: Alexandru Trendler <117138249+g0dfl3sh@users.noreply.github.com>
Co-authored-by: Oleksandr Levchenkov <ollevche@gmail.com>
This commit is contained in:
Alexandru Trendler
2024-09-20 19:29:36 +03:00
committed by GitHub
parent a9d1af85a9
commit 48abc52e46
12 changed files with 274 additions and 0 deletions

View File

@@ -469,6 +469,10 @@ func (c *RemoteClient) getSSECustomerKeyMD5() string {
return base64.StdEncoding.EncodeToString(b[:])
}
func (c *RemoteClient) IsLockingEnabled() bool {
return c.ddbTable != ""
}
const errBadChecksumFmt = `state data in S3 does not have the expected content.
This may be caused by unusually long delays in S3 processing a previous state