clicon / clixon-controller

Clixon network controller
Apache License 2.0
14 stars 5 forks source link

Commit/connect transaction may lock datastore with no info or method to break it #84

Closed olofhagsand closed 9 months ago

olofhagsand commented 9 months ago

Transactions that connect or commit may leave the transaction without releasing a datastore lock. This lock is not bound to a client, but to a transaction that is already finished. 1) Find (all) ways in which transactions may end without releasing lock 2) Design a way of knowing which transaction locks datastore 3) Make a command that breaks the lock (previously https://github.com/clicon/clixon-controller/issues/81)

olofhagsand commented 9 months ago

1) Refactored code to identify all places where a transaction terminates to eliminate the issue 2) Added CLI command transaction unlock to break the lock 3) Added FAQ item to describe howto

krihal commented 9 months ago

Verified.