I have a problem with my Hystrix commands. If the hystrix wrapped method is called from a class, the hystrix-wrapped method does not start in the Hystrix environment
In this case, I see the logs as
05-02-2018 22:51:25.809 [http-nio-auto-1-exec-3] INFO c.i.q.v.e.ConnectorImpl.populateFIDSchema -
populating FID Schema
But if I call the same method from outside the class, I see that it runs it in the Hystrix environment
05-02-2018 22:54:53.735 [hystrix-ConnectorImpl-1] INFO c.i.q.v.e.ConnectorImpl.populateFIDSchema -
populating FID Schema
I wrap my method using HystrixCommand as follows
@HystrixCommand(commandKey = "getSchemaCommand", fallbackMethod = "getSchemaCommandFallback")
Any ideas?
source
share