mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
hdfs: retry the io.Copy to see if that helps FIXME DO NOT MERGE
This commit is contained in:
@@ -142,7 +142,13 @@ func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, op
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err = io.Copy(out, in)
|
err = o.fs.pacer.Call(func() (bool, error) {
|
||||||
|
_, err = io.Copy(out, in)
|
||||||
|
if err == nil {
|
||||||
|
return false, nil
|
||||||
|
}
|
||||||
|
return errors.Is(err, io.ErrUnexpectedEOF), err
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fs.Errorf(o, "update: io.Copy returned error: %v", err)
|
fs.Errorf(o, "update: io.Copy returned error: %v", err)
|
||||||
cleanup()
|
cleanup()
|
||||||
|
|||||||
Reference in New Issue
Block a user