Had an attempt to use the samples provided here https://github.com/hazelcast/hazelcast-code-samples/tree/master/hazelcast-integration/springboot-eureka-partition-groups. Everything goes well, meaning the eureka server registers correctly as many hazelcast clusters as started, the eureka client works fine, but the my-hazelcast-client sample is not able to find any of the service instances registered within Eureka. The last logged line from this client is:
discoverNodes(): Hazelcast lookup to Eureka: start
While debugging, I see that:
- my-eureka-client is autowiring a
org.springframework.cloud.netflix.eureka.EurekaDiscoveryClient
containing as eurekaClient aorg.springframework.cloud.netflix.eureka.CloudEurekaClient
object - my-hazelcast-client (the faulty one) gets a
com.sun.proxy.$Proxy
object with toString() returning "Collecting data...".