Skip to content

Conversation

zUniQueX
Copy link
Contributor

@zUniQueX zUniQueX commented Aug 5, 2025

This PR changes the visibility of the pathFor method to protected.

Intention:
While developing and debugging an application, it can be very helpful to know which locks are currently locked. The UUIDs cannot be reversed to the original lock keys and therefore it can get hard to check which locks are currently obtained.

When overriding the pathFor method for this, one can write the lock key directly to the db and view human-readable strings in the db table.

@artembilan
Copy link
Member

The point is that LOCK_KEY is a part of primary key in the table.
Therefore, an arbitrary string is not OK for a proper indexing.

I'm not sure how this pathFor() helps you to mitigate human comprehension, but your fix does not hurt.
Therefore, merging.

Thank you for contribution!

@artembilan artembilan merged commit 9d17e37 into spring-projects:main Aug 5, 2025
3 checks passed
@zUniQueX zUniQueX deleted the protected-pathFor branch August 5, 2025 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants