Commit e30593c
committed
fix(seaweedfs): do not swallow NoSuchBucket 404 during quota disable
The quota-disable 404 tolerance treated every 404/405 as an absent quota
extension. SeaweedFS also returns 404 with a NoSuchBucket error body when
the bucket does not exist, so a missing remote bucket with quota 0 was
reported as success and the database quota was updated, leaving CloudStack
and S3 inconsistent. Exclude NoSuchBucket responses from the tolerance so
only the extension-not-available case is swallowed.1 parent b424170 commit e30593c
1 file changed
Lines changed: 8 additions & 1 deletion
File tree
- plugins/storage/object/seaweedfs/src/main/java/org/apache/cloudstack/storage/datastore/util
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
299 | 305 | | |
300 | | - | |
| 306 | + | |
| 307 | + | |
301 | 308 | | |
302 | 309 | | |
303 | 310 | | |
| |||
0 commit comments