EventStore.JVM icon indicating copy to clipboard operation
EventStore.JVM copied to clipboard

Connection address

Open bilus opened this issue 8 years ago • 5 comments

Hi,

I'm looking for a way to force the library to resolve DNS name after it changes.

To recreate:

  1. Start ES locally, listening on localhost.
  2. Add 127.0.0.1 eventstore to /etc/hosts
  3. Start ConnectionActor connecting to eventstore domain.
  4. Stop eventstore to start getting Connection failed to eventstore/127.0.0.1:1113 errors.
  5. Change /etc/hosts' entry so eventstore points to 127.0.0.2 (or whatever).

PROBLEM: ConnectionActor uses the resolved IP address, and never tries 127.0.0.2.

What's the easiest way to force it to resolve again? Thanks!

bilus avatar Jun 18 '17 14:06 bilus

@bilus are you using non-cluster setup ?

t3hnar avatar Jun 18 '17 19:06 t3hnar

@t3hnar Yes. Unfortunately, I need it to work either way. I'm sorry for not posting any code, but it's Clojure so... :P

bilus avatar Jun 18 '17 21:06 bilus

This sounds like a turtles all the way down problem as there are varying levels of caching by design in DNS.

On Sun, Jun 18, 2017 at 10:28 PM, Marcin Bilski [email protected] wrote:

@t3hnar https://github.com/t3hnar Yes. Unfortunately, I need it to work either way. I'm sorry for not posting any code, but it's Clojure so... :P

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/EventStore/EventStore.JVM/issues/95#issuecomment-309304127, or mute the thread https://github.com/notifications/unsubscribe-auth/AAXRWi1GCK-zAZPXyrOJZqwt8Y0p0CpVks5sFZaEgaJpZM4N9g0F .

-- Studying for the Turing test

gregoryyoung avatar Jun 18 '17 21:06 gregoryyoung

@bilus so re-loading Settings.address at runtime should fix your issue.

t3hnar avatar Jun 19 '17 06:06 t3hnar

Thanks, @t3hnar!

bilus avatar Jun 23 '17 21:06 bilus