google-code-export / camlistore

Automatically exported from code.google.com/p/camlistore
Apache License 2.0
0 stars 0 forks source link

camput: occasional kv deadlock on close, fixed upstream #491

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Occasionally, camput fails to exit after uploading a file. On the low-power NAS 
device I am uploading lots of small files from (find -exec camput file), this 
happens about once every 30 minutes.

I've traced this to a deadlock in cznik/kv, which was fixed upstream back in 
May:
https://github.com/cznic/kv/commit/d820b54c02f388eb973582702255b7caa42d2963

The deadlock happened when closing the kv database while an internal timeout 
call was executed by time.AfterFunc at the same time.

A camput build with updated kv package has worked perfectly for days now.

Original issue reported on code.google.com by tilman.d...@gmail.com on 13 Aug 2014 at 8:14

GoogleCodeExporter commented 9 years ago
Mathieu, can you look into updating our kv from upstream?

Original comment by bradfitz on 14 Aug 2014 at 4:56

GoogleCodeExporter commented 9 years ago
ACK.

Original comment by mathieu....@gmail.com on 14 Aug 2014 at 5:43

GoogleCodeExporter commented 9 years ago
http://camlistore.org/r/3517

Original comment by mathieu....@gmail.com on 18 Aug 2014 at 9:09

GoogleCodeExporter commented 9 years ago
00832f8ecbc8c274b16657dd3f6df5bee197b032

Original comment by mathieu....@gmail.com on 18 Aug 2014 at 9:39

GoogleCodeExporter commented 9 years ago
This issue has moved to https://camlistore.org/issue/491

Original comment by bradfitz on 14 Dec 2014 at 11:37