I have a similar error to issue 2230 using Spring Cloud Dalston.SR3 and Spring Boot 1.5.7 versions. I have the following hystrix dependency corresponding to this version in my gateway using ZuulProxy:

<dependency>
         <groupId>org.springframework.cloud</groupId>
         <artifactId>spring-cloud-starter-hystrix</artifactId>
</dependency>

The only hystrix properties available in my application.yml are:

hystrix:
   metrics:
     enabled: foo
     polling-interval-ms: foo

I wanted to set the isolation metrics beyond the default of 1000ms, for example: hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 15000

But it does not work, it does not recognize these commands -- neither my jar, nor the STS. When I check the /health, I only get a response without the set properties:

{
     ... ,
    "hystrix": {"status": "UP"} 
}

What to do?

Comment From: spencergibb

The ide won't recognize Hystrix properties at all

Comment From: christianf2029

Do not recognize? Even if so, the set properties have no effect.

Comment From: spencergibb

There is no metadata about them since they come from a 3rd party jar

Comment From: christianf2029

How so? In several places, I have seen these settings defined through properties ...

Comment From: spencergibb

Having them be valid for an application and completable by the ide are two very different things

Comment From: christianf2029

This properties that disable the circuit breaker, for example, not work. It's not that I want the IDE to be completable, I just want them working.

Comment From: spencergibb

Can you explain what "But it does not work, it does not recognize these commands" means?

Comment From: christianf2029

Well, I have some services that are being closed by the circuit breaker because of the timeout, which means they are delaying more than one second (default timeout), which would be normal for them (their functionality) and are closed (which I not want). I have tried some properties I see in some examples, documentation to solve this problem, like the following:

  • Routes in Zuul Proxy Server:
zuul:
  routes:
    AnyService:
      path: /any/**
      sensitive-headers: Set-Cookie, Authorization
   ...
  • Properties that I have tried to disable the timeout checking and did not work:
hystrix:
    command:
        AnyService:
            execution:
                isolation:
                    thread:
                        timeoutInMilliseconds: 15000
            circuitBreaker:
                ...
            metrics:
                ...

I get this error: Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: StilingueUrlFetchService timed-out and no fallback available.

  • Property for disable the circuit breaker that I tried last case (that also did not work): hystrix.command.default.circuitBreaker.enabled: false

So I even tried to set these properties via java code and I also could not make things work, I'm new to Spring Cloud. I need a way forward, I need to deliver this functionality that is being a barrier in our development. Some idea for I debug this problem?

Comment From: christianf2029

It was my mistake, the Hystrix properties are loaded into the system (they just do not appear in /health, which I think it should). The point was that I was putting the properties of Hystrix but there was still an error, but I had not noticed that it was a different error now. The problem I had not solved was TIMEOUT from the Ribbon, and I thought it was Hystrix. I extended the default value of these properties and things worked fine:

ribbon:
  ReadTimeout: 60000
  ConnectTimeout: 60000

Comment From: ft0907

@christianf2029 I want to ask you how you solved it?I had a similar problem, and I added the following configuration to the application. YML configuration, but it didn't work, and I received the same error.

  • management:
  • endpoint:
  • hystrix:
  • config:
  • hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 60000
  • ribbon.ConnectTimeout: 3000
  • ribbon.ReadTimeout: 60000
  • ribbon.OkToRetryOnAllOperations: true
  • ribbon.MaxAutoRetriesNextServer: 2
  • ribbon.MaxAutoRetries: 2

Comment From: ryanjbaxter

@christianf2029 Please learn how to format code on GitHub.

If you have a question please use StackOverflow or Gitter. If you believe there is a bug please open an issue with a sample to reproduce the problem.

Comment From: subrata101-tech

hystrix:
command: fallbackcmd: execution: isolation: thread: timeoutInMilliseconds: 400000

im getting error in hytrix