2016-09-21 81 views
0

我正在使用Hystrix 1.5.5版本。當我加載像1000線程/秒這樣較大負載的測試時,所有請求都將通過回退方法。同時,我也遇到了異常。爲什麼我會得到這個例外。測試命令是我的自定義蝟HystrixRuntimeException:TestCommand後備執行被拒絕

Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: TestCommand fallback execution rejected. 
     at com.netflix.hystrix.AbstractCommand.handleFallbackRejectionByEmittingError(AbstractCommand.java:1026) 
     at com.netflix.hystrix.AbstractCommand.getFallbackOrThrowException(AbstractCommand.java:858) 
     at com.netflix.hystrix.AbstractCommand.handleThreadPoolRejectionViaFallback(AbstractCommand.java:976) 
     at com.netflix.hystrix.AbstractCommand.access$400(AbstractCommand.java:59) 
     at com.netflix.hystrix.AbstractCommand$12.call(AbstractCommand.java:593) 
     at com.netflix.hystrix.AbstractCommand$12.call(AbstractCommand.java:587) 
     at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140) 
     at rx.internal.operators.OperatorDoOnEach$1.onError(OperatorDoOnEach.java:72) 
     at rx.internal.operators.OperatorDoOnEach$1.onError(OperatorDoOnEach.java:72) 
     at com.netflix.hystrix.AbstractCommand$HystrixObservableTimeoutOperator$3.onError(AbstractCommand.java:1173) 
     at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:54) 
     at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) 
     at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) 
     at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) 
     at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) 
     at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) 
     at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) 

回答