ovh / svfs

The Swift Virtual File System
Other
374 stars 54 forks source link

Hanging copy when request times out #131

Open geNAZt opened 7 years ago

geNAZt commented 7 years ago

Context

Steps to reproduce this issue :

  1. Get a Digital Ocean Droplet located in Frankfurt
  2. Mount via: mount -t svfs -o container=test test /mnt/svfs/test
  3. Copy ~240 MB worth of data from (unzipped https://www.feed-the-beast.com/projects/ftb-beyond/files/2420140/download) local SSD via: cp ~/server/* /mnt/svfs/test/ -R
  4. Wait till errors may show up and the cp hangs

Results you expected :

Either no request timeout, retry or at least a FS level error which will cause CP not to hang

Results you observed

I got those logs:

2017/05/24 10:26:32 Unsolicited response received on idle HTTP channel starting with "HTTP/1.0 408 Request Time-out\r\nCache-Control: no-cache\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n<html><body><h1>408 Request Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n"; err=<nil>
root@Fuse-Prototype:/mnt/svfs/test# 2017/05/24 10:27:30 Unsolicited response received on idle HTTP channel starting with "HTTP/1.0 408 Request Time-out\r\nCache-Control: no-cache\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n<html><body><h1>408 Request Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n"; err=<nil>

and in result of that all requests died. iftop showed no traffic and cp hangs and i had to SIGKILL it.

voondo commented 7 years ago

Same problem here. I periodically need to SIGKILL svfs.

fredo-m commented 7 years ago

I try to copy backups of a few giga created with BackupPC, and the copy fails regularly, more than two thirds fails.

Piopio commented 7 years ago

same problem ! (Object Storage container)

tested with cp, rsync (with FAQ recomandations) and swift client