Chronicle-Queue icon indicating copy to clipboard operation
Chronicle-Queue copied to clipboard

POC consistency check (DO NOT MERGE)

Open nicktindall opened this issue 1 year ago • 1 comments

This implements a prototype approach for detecting and correcting partial updates that can occur as a result of an abrupt termination

Summary

If we acquire a write lock and writeInProgress is true it means the last lock holder did not complete the write, we then do a scan of the roll cycle to ensure the writePositionAndSequence table store header and index is consistent with the roll cycle state.

If we knew when the write lock was force-acquired we could probably do away with the writeInProgress flag, as a lingering write lock is a good indication that a consistency check is required.

nicktindall avatar Feb 07 '24 00:02 nicktindall

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
88.9% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Feb 07 '24 01:02 sonarqubecloud[bot]

Superseded by https://github.com/OpenHFT/Chronicle-Queue/pull/1537

nicktindall avatar Mar 05 '24 01:03 nicktindall