Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The rw-register checker succeeds on the history: wx1, rx2. #8

Open
stevana opened this issue Oct 15, 2020 · 0 comments
Open

The rw-register checker succeeds on the history: wx1, rx2. #8

stevana opened this issue Oct 15, 2020 · 0 comments

Comments

@stevana
Copy link
Contributor

stevana commented Oct 15, 2020

The following history succeds with the rw-register checker (with :strict-serializable model and linearisable-keys? true):

{:type :invoke, :f :txn :value [[:w :x 1]],   :process 0, :index 1}
{:type :ok,     :f :txn :value [[:w :x 1]],   :process 0, :index 2}
{:type :invoke, :f :txn :value [[:r :x nil]], :process 0, :index 3}
{:type :ok,     :f :txn :value [[:r :x 2]],   :process 0, :index 4}

Adding an other read to the history makes it fail, e.g.:

{:type :invoke, :f :txn :value [[:r :x nil]], :process 0, :index 5}
{:type :ok,     :f :txn :value [[:r :x 1]],   :process 0, :index 6}

This doesn't seem right to me, but perhaps I'm missing something?

I've captured the above in two test cases in the following PR #7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant