Exception: Familia::RebuildLockLostError

Inherits:
RebuildInProgressError show all
Defined in:
lib/familia/errors.rb

Overview

Raised when a rebuild discovers it no longer owns its advisory lock -- it stalled past the lock TTL and another rebuild took over. The stalled rebuild aborts (dropping its temp key) rather than swapping its now-stale snapshot over the successor's newer index. A subclass of RebuildInProgressError because the cause is the same condition seen from the other side: someone else is rebuilding this key.

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Familia::RebuildInProgressError

Instance Method Details

#messageObject



49
50
51
# File 'lib/familia/errors.rb', line 49

def message
  "Rebuild lock lost for #{key}: another rebuild took over"
end