fix(api): autowire StorageAvailabilityService 2-arg constructor (hotfix) #1113
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/storage-availability-constructor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hotfix
The spec-054 deploy (
9005dcef) crash-looped the live API:NoSuchMethodException: StorageAvailabilityService.<init>()— the fix-forward round added a public 3-arg test-seam constructor, which disables Spring Boot's implicit single-constructor autowiring. Spring then looked up the no-arg constructor and failed, so the API never became healthy and the CI deploy run 4097 failed at Deploy API.Unit tests stayed green because they construct the service with
newand never boot the full application context.Fix:
@Autowiredon the 2-arg production constructor (one file).Validation:
:apps:api:compileJava+ storage/setup/operator test packages green.Follow-up tracked separately: a context-load smoke test (
@SpringBootTest) would catch this class of wiring failure before deploy.