fix(api): @Autowired on PeopleClusteringResetService primary ctor — restore API boot (ISSUE-089) #997
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/api-boot-ctor"
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?
Summary
PR #996 broke API startup:
PeopleClusteringResetServicegained a second public constructor (legacy 4-arg delegating + new 5-arg with TenantClusteringLockService) with NO@Autowiredon either → Spring cannot pick a constructor at context startup (No default constructor found) → memories-api crash-looped in production (10+ restarts, caught by the Deploy API smoke).Unit/PG tests construct the service manually, so only the real context boot hits it.
Fix:
@Autowiredon the 5-arg primary constructor (same pattern asClassInstanceDiscoveryService). ISSUE-089 recorded; follow-up will add an ApplicationContext boot smoke test so constructor ambiguity fails in PRs, not deploys.Verification
rtk ./gradlew :apps:api:compileJavagreenUrgent: production API is down — merge as soon as CI is green.