These are chat archives for spring-cloud/spring-cloud

8th
May 2017
Sushant Borse
@sushant91265_twitter
May 08 2017 09:25
hi , I need to update my spring-cloud-netflix-core from 1.0.7 to 1.2 + , but I'm not sure which spring cloud release has this netflix core version ? Currently my spring-cloud version is: Angel.SR6
Dave Syer
@dsyer
May 08 2017 09:33
1.3.0 is available
Avinash
@techoavinash
May 08 2017 09:35
Repost ...

Facing a issue when we use Hystrix in our app for circuit breaker. The issue I get is 2017-04-25 18:32:43.558 ERROR 8828 --- [ask-scheduler-3] o.s.c.n.h.stream.HystrixStreamTask : Error adding metrics to queue
java.lang.IllegalStateException: Queue full
at java.util.AbstractQueue.add(AbstractQueue.java:98) ~[na:1.8.0_121]
at org.springframework.cloud.netflix.hystrix.stream.HystrixStreamTask.gatherMetrics(HystrixStreamTask.java:309) ~[spring-cloud-netflix-hystrix-stream-1.2.6.RELEASE.jar:1.2.6.RELEASE]
The way we have implemented are -
class definition :
public class GameObservableCommand extends HystrixObservableCommand<List<GameView>>
method :
@Override
protected Observable<List<GameView>> construct() {
return Observable.create(new Observable.OnSubscribe<List<GameView>>() {

    @Override
    public void call(Subscriber<? super List<GameView>> observer) {
        observer.onNext(callURL());
    }
});

}
fallback method :
@Override
protected Observable<List<GameView>> resumeWithFallback()
we call it via this :
return new GameObservableCommand(id, secureRestTemplate).observe();
There is no attachment option to attach pom , since that's too big to paste here.
Do let me know if pom is required.
There is similar que on stackoverflow
http://stackoverflow.com/questions/35354476/error-adding-metrix-to-queue
Any lead would be appreciated.

Dave Syer
@dsyer
May 08 2017 09:38
Please take the time to learn how to format code samples
Is your app connected to rabbit?
It is telling you that it can't ship the metric data out to rabbit fast enough
So maybe you are not connected, or maybe it's a bad connection
Sushant Borse
@sushant91265_twitter
May 08 2017 09:48
Dave Syer
@dsyer
May 08 2017 09:49
Brixton is Spring Boot 1.3. I thought you said you wanted to target a Spring Cloud Netflix version.
"some issues"?
Sushant Borse
@sushant91265_twitter
May 08 2017 09:49
2016/11/23 - Netflix version 1.1.7.RELEASE (issues)
Avinash
@techoavinash
May 08 2017 09:50
@dsyer thanks a lot for providing clue. sorry for bad formatting .
Dave Syer
@dsyer
May 08 2017 09:51
@sushant91265_twitter I don't understand your point/question