Skip to content

Fix race condition in running the race condition test in EventStorage#32

Merged
bors[bot] merged 1 commit intomasterfrom
fix-race-condition-event-storage-spec
Jun 11, 2018
Merged

Fix race condition in running the race condition test in EventStorage#32
bors[bot] merged 1 commit intomasterfrom
fix-race-condition-event-storage-spec

Conversation

@unleashed
Copy link
Copy Markdown
Contributor

There was a race condition in a spec trying to test a race condition. So meta. :)

Closes #31. Hopefully deals the fatal blow to the failing builds, which has been nagging us for too long.

Issues fixed:

  • "wakeup" on a thread needs it to be alive.
  • "sleep" status can also mean I/O blocked, not just stopped.
  • Thread.stop was being called to sync at the end, which is
    useless. It is now used to give a better chance at parallelism
    by sync'ing before starting the real workload of each thread.
  • The Rspec stubbing is unnecessary.

There was a race condition in a spec trying to test another race
condition. :)

Issues fixed:

  - "wakeup" on a thread needs it to be alive.
  - "sleep" status can also mean I/O blocked, not just stopped.
  - Thread.stop was being called to sync at the end, which is
    useless. It is now used to give a better chance at parallelism
    by sync'ing before starting the real workload of each thread.
  - The Rspec stubbing is unnecessary.
@unleashed
Copy link
Copy Markdown
Contributor Author

bors r=@davidor,@eguzki

bors Bot added a commit that referenced this pull request Jun 11, 2018
32: Fix race condition in running the race condition test in EventStorage r=davidor,eguzki a=unleashed

There was a race condition in a spec trying to test a race condition. So meta. :)

Closes #31. Hopefully deals the fatal blow to the failing builds, which has been nagging us for too long.

Issues fixed:

  - "wakeup" on a thread needs it to be alive.
  - "sleep" status can also mean I/O blocked, not just stopped.
  - Thread.stop was being called to sync at the end, which is
    useless. It is now used to give a better chance at parallelism
    by sync'ing before starting the real workload of each thread.
  - The Rspec stubbing is unnecessary.

Co-authored-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
@bors
Copy link
Copy Markdown
Contributor

bors Bot commented Jun 11, 2018

Build succeeded

@bors bors Bot merged commit ecfb138 into master Jun 11, 2018
@bors bors Bot deleted the fix-race-condition-event-storage-spec branch June 11, 2018 14:07
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

Successfully merging this pull request may close these issues.

Rewrite or remove event_storage spec that keeps marking builds as failed

3 participants