Commit 15c6e9e
fix: Throw exception on bucket creation failure in S3VolumeManager
Fixes #210
Changed ensureBucketExists() to throw RuntimeException when bucket creation
or verification fails, instead of silently swallowing the exception. This
prevents S3VolumeManager from entering an initialized state when the bucket
doesn't actually exist.
Changes:
- Throw RuntimeException when createBucket() fails
- Throw RuntimeException when headBucket() fails (outer catch)
- Add success log message after bucket creation
- Include clear error messages about credentials and permissions
- Wrap original exception as cause for debugging
Before this fix, start() would set initialized=true even when bucket
creation failed, leaving the manager in a broken state where all subsequent
operations would fail with confusing errors.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 124bd79 commit 15c6e9e
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
308 | 308 | | |
309 | 309 | | |
310 | 310 | | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
| 314 | + | |
| 315 | + | |
313 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
| |||
0 commit comments