How to expand timeout in Hystrix

2,662 views
Skip to first unread message

Pedro Claver

unread,
Sep 22, 2015, 6:42:56 AM9/22/15
to HystrixOSS
HI Guys,

I have a method which takes long time to open a document (5 minutes) thus when I call that method I get this:

2015-09-22 11:03:27.273 ERROR 6132 --- [nio-9200-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.netflix.hystrix.exception.HystrixRuntimeException: openDocumentInServer timed-out and fallback failed.] with root cause

java.util.concurrent.TimeoutException: null
at com.netflix.hystrix.AbstractCommand$9.call(AbstractCommand.java:589)
at com.netflix.hystrix.AbstractCommand$9.call(AbstractCommand.java:570)
at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$1.onError(OperatorOnErrorResumeNextViaFunction.java:76)
at rx.internal.operators.OperatorDoOnEach$1.onError(OperatorDoOnEach.java:70)
at rx.internal.operators.OperatorDoOnEach$1.onError(OperatorDoOnEach.java:70)
at com.netflix.hystrix.AbstractCommand$HystrixObservableTimeoutOperator$1.run(AbstractCommand.java:923)

How I can expand that time?

Regards,


Pedro Claver

unread,
Sep 22, 2015, 7:25:25 AM9/22/15
to HystrixOSS
Ok I found this:
@HystrixCommand(commandProperties = {
        @HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "30000")...

Works for me
      

Regards,
Reply all
Reply to author
Forward
0 new messages