134
134
df = object_server.DiskFile(self.devices, device, partition,
135
135
account, container, obj, self.logger,
136
136
keep_data_fp=True)
137
if df.data_file is None:
138
# file is deleted, we found the tombstone
141
obj_size = df.get_data_file_size()
142
except DiskFileError, e:
143
raise AuditException(str(e))
144
except DiskFileNotExist:
146
if self.zero_byte_only_at_fps and obj_size:
150
self.bytes_running_time = ratelimit_sleep(
151
self.bytes_running_time, self.max_bytes_per_second,
153
self.bytes_processed += len(chunk)
154
self.total_bytes_processed += len(chunk)
156
if df.quarantined_dir:
157
self.quarantines += 1
159
_("ERROR Object %(path)s failed audit and will be "
160
"quarantined: ETag and file's md5 do not match"),
138
if df.data_file is None:
139
# file is deleted, we found the tombstone
142
obj_size = df.get_data_file_size()
143
except DiskFileError, e:
144
raise AuditException(str(e))
145
except DiskFileNotExist:
147
if self.zero_byte_only_at_fps and obj_size:
151
self.bytes_running_time = ratelimit_sleep(
152
self.bytes_running_time, self.max_bytes_per_second,
154
self.bytes_processed += len(chunk)
155
self.total_bytes_processed += len(chunk)
157
if df.quarantined_dir:
158
self.quarantines += 1
160
_("ERROR Object %(path)s failed audit and will be "
161
"quarantined: ETag and file's md5 do not match"),
164
df.close(verify_file=False)
162
165
except AuditException, err:
163
166
self.quarantines += 1
164
167
self.logger.error(_('ERROR Object %(obj)s failed audit and will '