swh:1:snp:eb70f1f85391e4b077c211bec36af0061c4bf937
Revision 64a783216c1ec69dcb267449c0bbf5e54f7c4d6d authored by Stefano Zacchiroli on 30 September 2015, 12:51:01 UTC, committed by Stefano Zacchiroli on 30 September 2015, 12:51:01 UTC
Before this change, two workers adding the same object will end up
racing to write <SHA1>.tmp. That should not lead to corruption, because
they are (in principle) going to write the exact same content, but it
made the one of the two that arrives last fail the final rename.

With this fix they will write in different <SHA1>.RANDOM_STUFF.tmp, and
then rename their own file into place.

Note that this change slightly increases the chances of having garbage
in the object store, so we will need to look for this during GC passes.
1 parent e4feb05
History
Tip revision: 728c3eeaae84a7e249a712a5545cc9ba682403c3 authored by David Douard on 08 January 2021, 09:39:42 UTC
Allow to use the JAVA_HOME environment for cassandra tests
Tip revision: 728c3ee
File Mode Size
bin
debian
sql
swh
.gitignore -rw-r--r-- 72 bytes
MANIFEST.in -rw-r--r-- 154 bytes
Makefile -rw-r--r-- 163 bytes
Makefile.local -rw-r--r-- 182 bytes
README.db_testing -rw-r--r-- 673 bytes
README.dev -rw-r--r-- 298 bytes
requirements.txt -rw-r--r-- 137 bytes
setup.py -rw-r--r-- 908 bytes

README.db_testing

back to top