Hi,
we have been using cbes in autonomous mode for some time. We’re happy with it but we have got a problem. Whenever we use prebuilt images, we got this error on startup:
Cannot construct instance of com.orbitz.consul.model.health.ImmutableService
, problem: Cannot build Service, some of required attributes are not set [port]
We deep dived into couchbase-elasticsearch-connector and find this code in SessionTask.java file:
ctx.consul().agentClient().register(0, sessionTtlSeconds, ctx.serviceName(), ctx.serviceId(), tags, meta);
We thought this is the cause and changed this line with this:
ctx.consul().agentClient().register(Consul.DEFAULT_HTTP_PORT, sessionTtlSeconds, ctx.serviceName(), ctx.serviceId(), tags, meta);
When we build our custom image with this modification, the connector runs without any errors or problems. Everything works as expected.
We started to get this problem after upgrading our consul to 1.10.0 version. Are you aware of this problem? What may be the cause of this and what do you think of our custom fix?
Thanks.