#6606·shenyu

[Task] @Deprecated lock subsystem is still the wired production default

Author: Aias00Created Aug 2, 2026Updated Sep 26, 2026
Labelsadmintype: refactorpriority: medium

Description

The entire shenyu-admin.lock subsystem is @Deprecated ("Please use JdbcLockRegistry#obtain / DefaultLockRepository") but remains the live @Bean.

Location

shenyu-admin.lock.RegisterExecutionLock.java:27
RegisterTransactionUtil.java:29
ForUpdateBackedRegisterExecutionLock.java:33
PlatformTransactionRegisterExecutionRepository.java:31
RegisterExecutionRepository.java:26
RegisterCenterConfiguration.java:79-80 (new PlatformTransactionRegisterExecutionRepository(...) as @Bean)

Impact

Marking it deprecated while shipping it as default misleads both users and tooling — risk of "removing dead code" that is actually live.

Suggested fix

Either migrate the bean to JdbcLockRegistry/DefaultLockRepository and delete the subsystem, or drop the @Deprecated until migration is real.

Related existing issue(s)

None

Identified during the 2026-08-02 audit; full list in docs/issue-candidates-2026-08-02.md.