Replicator double quarantine

Bug #747867 reported by gholt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Object Storage (swift)
Fix Released
High
David Goetz

Bug Description

The account-replicator and possible other replicators cannot double quarantine.

Example traceback:

Mar 30 15:35:01 some-server account-replicator Quarantining DB /srv/node/sdx/accounts/384166/113/5dca6795e97a09790ee564fe56109113/5dca6795e97a09790ee564fe5610913.db
Mar 30 15:35:01 some-server account-replicator STDOUT: Traceback (most recent call last):
Mar 30 15:35:01 some-server account-replicator STDOUT: File "/usr/lib/pymodules/python2.6/eventlet/greenpool.py", line 80, in _spawn_n_impl
Mar 30 15:35:01 some-server account-replicator STDOUT: func(*args, **kwargs)
Mar 30 15:35:01 some-server account-replicator STDOUT: File "/usr/lib/pymodules/python2.6/swift/common/db_replicator.py", line 326, in _replicate_object
Mar 30 15:35:01 some-server account-replicator STDOUT: quarantine_db(broker.db_file, broker.db_type)
Mar 30 15:35:01 some-server account-replicator STDOUT: File "/usr/lib/pymodules/python2.6/swift/common/db_replicator.py", line 52, in quarantine_db
Mar 30 15:35:01 some-server account-replicator STDOUT: renamer(object_dir, quarantine_dir)
Mar 30 15:35:01 some-server account-replicator STDOUT: File "/usr/lib/pymodules/python2.6/swift/common/utils.py", line 189, in renamer
Mar 30 15:35:01 some-server account-replicator STDOUT: os.rename(old, new)
Mar 30 15:35:01 some-server account-replicator STDOUT: OSError: [Errno 17] File exists

Related branches

Changed in swift:
assignee: nobody → David Goetz (david-goetz)
Changed in swift:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in swift:
milestone: none → 1.4.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.