Files
swift/test/unit/obj/test_diskfile.py
Tim Burke 5e07963548 diskfile: Treat EUCLEAN like ENODATA
Found a new way filesystems can break in prod:

   object-auditor: ERROR Trying to audit .../7a7c4af06d2616f23eda274e2ad9c948:
   Traceback (most recent call last):
     File ".../swift/obj/diskfile.py", line 2630, in open
       files = os.listdir(self._datadir)
   OSError: [Errno 117] Structure needs cleaning: .../7a7c4af06d2616f23eda274e2ad9c948

   During handling of the above exception, another exception occurred:

   Traceback (most recent call last):
     File ".../swift/obj/auditor.py", line 238, in failsafe_object_audit
       self.object_audit(location)
     File ".../swift/obj/auditor.py", line 261, in object_audit
       with df.open(modernize=True):
     File ".../swift/obj/diskfile.py", line 2657, in open
       "Error listing directory %s: %s" % (self._datadir, err))
   swift.common.exceptions.DiskFileError:
   Error listing directory .../7a7c4af06d2616f23eda274e2ad9c948:
   [Errno 117] Structure needs cleaning: '.../7a7c4af06d2616f23eda274e2ad9c948'

Change-Id: If6731a6b6b16fbc4eebb61254ed10b53e1767a0f
2024-08-28 15:58:03 -07:00

427 KiB