Class RedbLockNotAcquiredException
The strict row lock (LockForUpdateRequiredAsync) found fewer rows than it was asked to
lock: the missing ids have no row in _objects - deleted, or never created. A CAS pattern
(lock -> re-read -> save) must not proceed on an unlocked row: with the default
MissingObjectStrategy.AutoSwitchToInsert the save would silently resurrect the deleted
object (BR-9, 2026-09-02). Catch this to abort the CAS, or to recreate the object deliberately.
The lenient LockForUpdateAsync reports a count instead of throwing.
public class RedbLockNotAcquiredException : Exception, ISerializable
Inheritance
Implements
Properties
MissingIds
The ids that have no row in _objects, ascending.
public IReadOnlyList<long> MissingIds { get; }
RequestedIds
The distinct ids the caller asked to lock.
public IReadOnlyList<long> RequestedIds { get; }