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
153369: backup: use ioctx.ReadAll when reading index metadata r=msbutler a=kev-cao
We currently use `io.Reader`'s `Read` to read the index metadata file. However, `Read` behavior w.r.t to returning an EOF after reading the entire file is not consistent --- S3's implementation returns EOF even if bytes are read, whereas GCS's implementation returns EOF only if a read is attempted after reading the file. The correct solution is to use `ioctx.ReadAll` whenever performing reads.
Fixes: #153215Fixes: #153214Fixes: #153213Fixes: #153212
Release note: None
Co-authored-by: Kevin Cao <[email protected]>
0 commit comments