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

sidejob_eqc failure #10

Open
seancribbs opened this issue Feb 28, 2014 · 1 comment
Open

sidejob_eqc failure #10

seancribbs opened this issue Feb 28, 2014 · 1 comment
Labels

Comments

@seancribbs
Copy link
Contributor

This looks like a legitimate race-condition:

Shrinking.........(9 times)
{[{set,{var,1},{call,sidejob,new_resource,[resource,worker,1,1]}},
  {set,{var,11},{call,sidejob_eqc,work,[call,1]}},
  {set,{var,12},
       {call,eqc_statem,apply,[sidejob_eqc,get_element,[1,{var,11}]]}},
  {set,{var,13},
       {call,eqc_statem,apply,[sidejob_eqc,get_element,[2,{var,11}]]}},
  {set,{var,14},
       {call,eqc_statem,apply,[sidejob_eqc,get_element,[2,{var,13}]]}},
  {set,{var,20},{call,sidejob_eqc,finish_work,[{var,14}]}}],
 [[{set,{var,32},{call,sidejob_eqc,get_status,[{var,12}]}}]]}

Sequential prefix:

   sidejob:new_resource(resource, worker, 1, 1) -> {ok, <0.28217.0>}
   sidejob_eqc:work(call, 1) ->
       {<0.28221.0>, {working, <0.28219.0>}}
   sidejob_eqc:finish_work(<0.28219.0>) -> ok

Parallel:

1. sidejob_eqc:get_status(<0.28221.0>) -> blocked

Reason: no_possible_interleaving
@seancribbs seancribbs added the bug label Feb 28, 2014
@russelldb
Copy link
Member

Probably fixed by https://github.com/nhs-riak/sidejob/pull/1

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

No branches or pull requests

2 participants