Skip to content

Implement transaction locking mechanism with configurable wait timeout#276

Merged
jerry-enebeli merged 1 commit intomainfrom
enable-wait-lock-as-default
Apr 9, 2026
Merged

Implement transaction locking mechanism with configurable wait timeout#276
jerry-enebeli merged 1 commit intomainfrom
enable-wait-lock-as-default

Conversation

@jerry-enebeli
Copy link
Copy Markdown
Collaborator

  • Added acquireTransactionLocker method to handle locking with wait timeout configuration.
  • Updated acquireLock and acquireBalanceSetLock methods to utilize the new locking mechanism.
  • Introduced tests for transaction locker acquisition scenarios in transaction_test.go.
  • Enhanced error handling for lock contention in the lock package.
  • Updated configuration defaults for transaction locking behavior.

This change improves the robustness of transaction handling by allowing configurable wait times for acquiring locks, ensuring better resource management and reducing contention issues.

- Added `acquireTransactionLocker` method to handle locking with wait timeout configuration.
- Updated `acquireLock` and `acquireBalanceSetLock` methods to utilize the new locking mechanism.
- Introduced tests for transaction locker acquisition scenarios in `transaction_test.go`.
- Enhanced error handling for lock contention in the `lock` package.
- Updated configuration defaults for transaction locking behavior.

This change improves the robustness of transaction handling by allowing configurable wait times for acquiring locks, ensuring better resource management and reducing contention issues.
@jerry-enebeli jerry-enebeli merged commit c8fddaf into main Apr 9, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant