Skip to content

2.3.2

Latest

Choose a tag to compare

@vyazelenko vyazelenko released this 08 Nov 09:40
· 29 commits to master since this release
fd43567
  • Prevent concurrent MarkFile activation when org.agrona.MarkFile.mapNewOrExistingMarkFile is 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.