You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New findByIdForUpdate() in CompetitionRepository with @Lock(PESSIMISTIC_WRITE) + lock timeout.
HierarchyValidator.validateImmutabilityByCompetitionId() and CompetitionServiceImpl.changeStatus() use it instead of findById().
It has been confirmed (via an integration test) that concurrent publish and delete operations for the last round are serialized correctly—the final state is always valid.
Acceptance Criteria
findByIdForUpdate()inCompetitionRepositorywith@Lock(PESSIMISTIC_WRITE)+ lock timeout.HierarchyValidator.validateImmutabilityByCompetitionId()andCompetitionServiceImpl.changeStatus()use it instead offindById().