Todo: Chaincode Mutual Lock
Add a chaincode organizational mutual. Prevent organizational members from operating simultaneously while allow other organizations manage their own chaincode.
/assign
Hi @dodo920306, I’d like to try working on this issue if it is still available.
From my understanding, the goal is to add an organization-level mutual lock for chaincode operations, so that members within the same organization cannot operate on chaincode simultaneously, while members from different organizations can still manage their own chaincode independently.
Before I start, may I clarify a few points?
- Which chaincode operations should be protected by this lock? For example: install, approve, commit, invoke, query, or only lifecycle operations?
- Should the lock be implemented at the API/backend level, or closer to the chaincode operation service layer?
- Is there an existing locking mechanism in Cello that I should reuse, or should I introduce a new organization-scoped lock?
- What should happen when another member from the same organization tries to operate while the lock is active — should the request wait, fail immediately, or return a specific error message?
My initial plan is to first trace the current chaincode operation flow, identify the right place to add the lock, then open a small PR with tests or documentation explaining the behavior.
Please let me know if this approach is reasonable.
Hi, I’d like to work on this issue. Please assign it to me.
@yeasy I would like to contribute to this issue, if its still open. Could you please assign it to me