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

2nd
May 2017
Charles Moulliard
@cmoulliard
May 02 2017 13:43
Hi. I'm faced to a strange problem as this class ""https://github.com/cmoulliard/spring-cloud-kubernetes/blob/master/spring-cloud-kubernetes-config/src/main/java/org/springframework/cloud/kubernetes/config/reload/ConfigReloadAutoConfiguration.java" is not loaded (I think so) when the example (= SpringBoot application with Reload option for Kubernetes ConfigMap is deployed). The class is well defined within the spring.factories file. How can I debug if EnableAutoConfiguration is calling it or not ?
Dave Syer
@dsyer
May 02 2017 13:47
start the app with --debug
or look at the /autoconfig endpoint
Charles Moulliard
@cmoulliard
May 02 2017 13:47
autoconfig endpoint is added with actuator - correct ?
Dave Syer
@dsyer
May 02 2017 13:47
Yes
Charles Moulliard
@cmoulliard
May 02 2017 13:48
ok. Will add it and have a look
Charles Moulliard
@cmoulliard
May 02 2017 14:05
The class is well loaded from I can see with the endpoint /autoconfig --> https://gist.github.com/cmoulliard/61f2c7b9c8bfa26f333c940e86892719#file-gistfile1-txt-L815-L842
So my problem is perhaps related to this line "@ConditionalOnMissingBean (types: org.springframework.cloud.kubernetes.config.reload.ConfigurationUpdateStrategy; SearchStrategy: all) did not find any beans" ?
Avinash
@techoavinash
May 02 2017 14:25

Hello,
I am new here. I am here for 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.

Daco
@dacofr
May 02 2017 20:34
Hi all, how can i configure the ClientHttpRequestFactory bean for a specific (and only one) FeignClient ? I want to do this to override the javax.net.ssl.HostnameVerifier. Thanks for your help