[issue35624] Shelve sync issues while using Gevent

2019-01-07 Thread STINNER Victor


Change by STINNER Victor :


--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35624] Shelve sync issues while using Gevent

2019-01-04 Thread Raymond Hettinger


Raymond Hettinger  added the comment:

The docs already note a restriction: "the shelve module does not support 
concurrent read/write access to shelved objects".  We should further document 
that sync() is not thread-safe.  When sync() is running, the *writeback* 
attribute is set to False and other threads will stop updating the cache.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35624] Shelve sync issues while using Gevent

2019-01-04 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

3.6 only gets security fixes.  Please verify that there is a problem in 3.8 (or 
at least 3.7)

Also demonstrate that issue is not with the 3rd party gevent module.  Does 
gevent includes compiled non-python code?  (I suspect it does, but don't know.) 
 If so, your script should *not* import that extension.  Or you should close 
this as '3rd party' and submit a report to the gevent authors, who should be 
better able to determine where the problem originates.

--
nosy: +terry.reedy
versions: +Python 3.8 -Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35624] Shelve sync issues while using Gevent

2018-12-31 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

Hi, thanks for opening a bug report. Can you provide a script that reproduce 
the issue?

--
nosy: +remi.lapeyre

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35624] Shelve sync issues while using Gevent

2018-12-31 Thread Oded Engel


Change by Oded Engel :


--
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35624] Shelve sync issues while using Gevent

2018-12-31 Thread Oded Engel


New submission from Oded Engel :

Shelve method, sync, does not work when using gevent threading.
writeback was set to True, flag was set to 'c'.
only way to get the dbb synced is by closing and reopening the db.

--
components: Library (Lib)
messages: 332807
nosy: Oded Engel
priority: normal
severity: normal
status: open
title: Shelve sync issues while using Gevent
versions: Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com