]> git-server-git.apps.pok.os.sepia.ceph.com Git - radosgw-agent.git/commitdiff
worker: ignore 404 when removing op_state
authorJosh Durgin <jdurgin@redhat.com>
Thu, 18 Dec 2014 00:16:14 +0000 (16:16 -0800)
committerJosh Durgin <jdurgin@redhat.com>
Fri, 19 Dec 2014 11:22:09 +0000 (03:22 -0800)
It's fine if the gateway deleted it first.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
radosgw_agent/worker.py

index 40435eaf2a2fca63a49c88bbaf5adfcdd1673954..c259ffb69a26270b57bd5246742191d1bf6a53b4 100644 (file)
@@ -211,6 +211,8 @@ class DataWorker(Worker):
             if found:
                 client.remove_op_state(self.dest_conn, self.daemon_id,
                                        local_op_id, bucket, obj)
+        except client.NotFound:
+            log.debug('op state already gone')
         except Exception:
             log.exception('could not remove op state for daemon "%s" op_id %s',
                           self.daemon_id, local_op_id)