objstorage: Factorize object check and add ObjCorruptedError exception
Implement object check in base ObjStorage class instead of duplicating that code in every object storage backend. Add an ObjCorruptedError exception raised when an object corruption is detected. Improve exception messages. Normalize imports of exception classes. Related to swh/devel/swh-scrubber#4694.
parent
4f274cf5
Branches objstorage-check-update
No related tags found
Showing
- swh/objstorage/api/client.py 8 additions, 3 deletionsswh/objstorage/api/client.py
- swh/objstorage/api/server.py 3 additions, 3 deletionsswh/objstorage/api/server.py
- swh/objstorage/backends/azure.py 7 additions, 20 deletionsswh/objstorage/backends/azure.py
- swh/objstorage/backends/http.py 17 additions, 18 deletionsswh/objstorage/backends/http.py
- swh/objstorage/backends/in_memory.py 4 additions, 12 deletionsswh/objstorage/backends/in_memory.py
- swh/objstorage/backends/libcloud.py 6 additions, 17 deletionsswh/objstorage/backends/libcloud.py
- swh/objstorage/backends/pathslicing.py 11 additions, 24 deletionsswh/objstorage/backends/pathslicing.py
- swh/objstorage/backends/seaweedfs/objstorage.py 6 additions, 16 deletionsswh/objstorage/backends/seaweedfs/objstorage.py
- swh/objstorage/backends/winery/objstorage.py 5 additions, 10 deletionsswh/objstorage/backends/winery/objstorage.py
- swh/objstorage/exc.py 20 additions, 7 deletionsswh/objstorage/exc.py
- swh/objstorage/interface.py 1 addition, 1 deletionswh/objstorage/interface.py
- swh/objstorage/multiplexer/multiplexer_objstorage.py 14 additions, 9 deletionsswh/objstorage/multiplexer/multiplexer_objstorage.py
- swh/objstorage/objstorage.py 66 additions, 17 deletionsswh/objstorage/objstorage.py
- swh/objstorage/tests/objstorage_testing.py 15 additions, 13 deletionsswh/objstorage/tests/objstorage_testing.py
- swh/objstorage/tests/test_objstorage_azure.py 6 additions, 8 deletionsswh/objstorage/tests/test_objstorage_azure.py
- swh/objstorage/tests/test_objstorage_cloud.py 6 additions, 8 deletionsswh/objstorage/tests/test_objstorage_cloud.py
- swh/objstorage/tests/test_objstorage_http.py 15 additions, 10 deletionsswh/objstorage/tests/test_objstorage_http.py
- swh/objstorage/tests/test_objstorage_pathslicing.py 5 additions, 12 deletionsswh/objstorage/tests/test_objstorage_pathslicing.py
- swh/objstorage/tests/test_objstorage_seaweedfs.py 6 additions, 8 deletionsswh/objstorage/tests/test_objstorage_seaweedfs.py
- swh/objstorage/tests/test_objstorage_winery.py 5 additions, 5 deletionsswh/objstorage/tests/test_objstorage_winery.py
Loading
Please register or sign in to comment