Details
-
Bug
-
Resolution: Fixed
-
Major
-
5.5.0, 6.0.1, 6.0.2, 6.5.0
-
None
-
Untriaged
-
Unknown
Description
The stateLock should be held when running operations in the vbucket to ensure that the vbucket don't change state while we're in the middle of executing code in there.
The issue was found as part of code inspection for the following methods:
KVBucket::evictKey
KVBucket::getRandomKey
KVBucket::getLocked
KVBucket::unlockKey
KVBucket::getKeyStats
KVBucket::deleteItem
Attachments
Issue Links
- backports to
-
MB-34949 [BP 6.0.5] StateLock is not held in all cases
- Closed