Hi all,
Below error is thrown while trying to retrieve a newly added key from the datastore using pub.storage:get. Note that old key values are fetched without issues. Not sure whether the key got added properly.
pub.storage:put – Critical Exception: Cannot aquire the lock.
IS_DATASTORE table needs to be checked for any locks?
Please provide your suggestions to fix this.
The “Cannot acquire the lock” error usually means the entry you are trying to lock has already been locked. You can use the pub.storage:listLocks service to view all locks.
Try an explicit unlock (pub.storage:unlock) if that helps. I guess you are the only user using the data store.
If using storage, it is a best practice to do an explizit unlock at least after put, update and get as most of these services might omit an implizit unlock.
Regards,
Holger