lucidsoftware / apt-boto-s3

The fast and simple S3 transport for apt.
Apache License 2.0
56 stars 13 forks source link

Random threading issues #7

Closed yannh closed 8 years ago

yannh commented 8 years ago

I randomly get this error:

Exception in thread Thread-3:
Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(_self.args, *_self.__kwargs) File "/usr/lib/apt/methods/s3", line 87, in handle_message self._send_error(ex) File "/usr/lib/apt/methods/s3", line 57, in _send_error self.send(Message(MessageHeaders.GENERAL_FAILURE, (('Message', message),))) File "/usr/lib/apt/methods/s3", line 54, in send self.pipes.output.flush() IOError: [Errno 32] Broken pipe

The more other APT repositories configured, the less likely it is to fail. If the s3 repo is the only repository configured, then it works nearly every time. If i reenable the rest of the sources.list, if fails nearly every time (but still works sometimes).

pauldraper commented 8 years ago

I noticed some issues too.

Apt set up the API so that it looks like multiplexing is fine. But it appears that they really do require pipelining (responses in the same order as the requests).

I'll try fixing that first, and we'll see if those go away.

pauldraper commented 8 years ago

I released 1.1. See if it works any better.

yannh commented 8 years ago

Seems to work reliably now! :+1: