FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Alternative fix to dead lock challenge by bbakerman · Pull Request #1255 · graphql-java/graphql-java · GitHub

Alternative fix to dead lock challenge - #1255

Merged
bbakerman merged 18 commits into
graphql-java:masterfrom
bbakerman:hanging_dataloader_callstack
Oct 3, 2018
Merged

Alternative fix to dead lock challenge#1255
bbakerman merged 18 commits into
graphql-java:masterfrom
bbakerman:hanging_dataloader_callstack

Conversation

Copy link
Copy Markdown
Member

See #1234

This is similar but more deliberate. That is we work out IF we have to dispatch inside the lock and then do the dispatch outside it.

I think this is a smidge cleaner than the other PR. (but the same effect)

bbakerman requested a review from andimarek October 2, 2018 07:15

Copy link
Copy Markdown
Member Author

I was able to replicate 100% of the time without the change as per @tinnou original test

public void dispatchIfNotDispatchedBefore(int level, Runnable dispatch) {
public boolean dispatchIfNotDispatchedBefore(int level) {
if (dispatchedLevels.contains(level)) {
Assert.assertShouldNeverHappen("level " + level + " already dispatched");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

you could actually return the Assert

andimarek added this to the 11.0 milestone Oct 3, 2018
bbakerman merged commit 80342b2 into graphql-java:master Oct 3, 2018
bbakerman added the needs to be backported a bugfix that still needs to be backported label Oct 3, 2018
bbakerman added a commit to bbakerman/graphql-java that referenced this pull request Oct 3, 2018
* Added @OverRide as part of errorprone code health check

* Revert "Added @OverRide as part of errorprone code health check"

This reverts commit 38dfab1

* Brads attempt at graphql-java#1234

* Missed the test
bbakerman mentioned this pull request Oct 3, 2018
bbakerman added a commit that referenced this pull request Oct 3, 2018
* Added @OverRide as part of errorprone code health check

* Revert "Added @OverRide as part of errorprone code health check"

This reverts commit 38dfab1

* Brads attempt at #1234

* Missed the test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs to be backported a bugfix that still needs to be backported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL