-
Prevent concurrent
MarkFileactivation whenorg.agrona.MarkFile.mapNewOrExistingMarkFileis used.If the mark file already exists and is not active, then the activity timestamp (
timestampFieldOffset) is atomically
set to a special sentinel value (org.agrona.MarkFile.ACTIVATION_IN_PROGRESS_TIMESTAMP) to prevent other processes from
concurrent activation.NB: If the current activation fails it will leave the activity timestamp at a sentinel value which will prevent a
restart of the process. Therefore, it is recommended to reset the activity timestamp upon failure.