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

Fix NoSuchElementException in Hystrix.endCurrentThreadExecutingCommand #133

Merged
merged 1 commit into from
Mar 31, 2013
Merged

Fix NoSuchElementException in Hystrix.endCurrentThreadExecutingCommand #133

merged 1 commit into from
Mar 31, 2013

Conversation

benjchristensen
Copy link
Contributor

If a semaphore isolated HystrixCommand gets a response from a request cache this exception will be thrown:

Caused by: java.util.NoSuchElementException
at java.util.LinkedList.removeFirst(LinkedList.java:268)
at java.util.LinkedList.pop(LinkedList.java:799)
at com.netflix.hystrix.Hystrix.endCurrentThreadExecutingCommand(Hystrix.java:88)
at com.netflix.hystrix.HystrixCommand.queueInSemaphore(HystrixCommand.java:647)
at com.netflix.hystrix.HystrixCommand.queue(HystrixCommand.java:551)
at com.netflix.platform.dependencycommand.NFDependencyCommand.queue(NFDependencyCommand.java:346)

benjchristensen added a commit that referenced this pull request Mar 31, 2013
…rrentThreadExecutingCommand

Fix NoSuchElementException in Hystrix.endCurrentThreadExecutingCommand
@benjchristensen benjchristensen merged commit 366f11a into Netflix:master Mar 31, 2013
@cloudbees-pull-request-builder

Hystrix-pull-requests #6 SUCCESS
This pull request looks good

If a semaphore isolated HystrixCommand gets a response from a request cache this exception will be thrown:

Caused by: java.util.NoSuchElementException
        at java.util.LinkedList.removeFirst(LinkedList.java:268)
        at java.util.LinkedList.pop(LinkedList.java:799)
        at com.netflix.hystrix.Hystrix.endCurrentThreadExecutingCommand(Hystrix.java:88)
        at com.netflix.hystrix.HystrixCommand.queueInSemaphore(HystrixCommand.java:647)
        at com.netflix.hystrix.HystrixCommand.queue(HystrixCommand.java:551)
        at com.netflix.platform.dependencycommand.NFDependencyCommand.queue(NFDependencyCommand.java:346)
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.

2 participants