vektra / vega

A distributed mailbox system
BSD 3-Clause "New" or "Revised" License
315 stars 13 forks source link

Mailboxes not showing up in Consul until after a restart of vegad #6

Closed betawaffle closed 9 years ago

betawaffle commented 9 years ago

New mailboxes don't appear to be created in Consul's KV store until after a restart of vegad. They also don't seem to ever be deleted from Consul, which may be somewhat related to #5.

evanphx commented 9 years ago

Can you tell me more about seeing this? I see routing show up as soon as a mailbox is declared.

betawaffle commented 9 years ago

I'm not at my computer right now, so I can't give you any logs, but I can tell you I'm running consul 0.4.0, just a single node on my local machine. On Fri, Dec 12, 2014 at 11:10 AM Evan Phoenix notifications@github.com wrote:

Can you tell me more about seeing this? I see routing show up as soon as a mailbox is declared.

— Reply to this email directly or view it on GitHub https://github.com/vektra/vega/issues/6#issuecomment-66793546.

betawaffle commented 9 years ago

Now that I think about it, I need to make sure I have the right versions of vega's dependencies. I may have downloaded old versions a long time ago. On Fri, Dec 12, 2014 at 12:21 PM Andrew Hodges betawaffle@gmail.com wrote:

I'm not at my computer right now, so I can't give you any logs, but I can tell you I'm running consul 0.4.0, just a single node on my local machine. On Fri, Dec 12, 2014 at 11:10 AM Evan Phoenix notifications@github.com wrote:

Can you tell me more about seeing this? I see routing show up as soon as a mailbox is declared.

— Reply to this email directly or view it on GitHub https://github.com/vektra/vega/issues/6#issuecomment-66793546.

evanphx commented 9 years ago

Maybe try the 0.3 binary too.

On Fri, Dec 12, 2014 at 9:23 AM, Andrew Hodges notifications@github.com wrote:

Now that I think about it, I need to make sure I have the right versions of vega's dependencies. I may have downloaded old versions a long time ago. On Fri, Dec 12, 2014 at 12:21 PM Andrew Hodges betawaffle@gmail.com wrote:

I'm not at my computer right now, so I can't give you any logs, but I can tell you I'm running consul 0.4.0, just a single node on my local machine. On Fri, Dec 12, 2014 at 11:10 AM Evan Phoenix notifications@github.com wrote:

Can you tell me more about seeing this? I see routing show up as soon as a mailbox is declared.

— Reply to this email directly or view it on GitHub https://github.com/vektra/vega/issues/6#issuecomment-66793546.


Reply to this email directly or view it on GitHub: https://github.com/vektra/vega/issues/6#issuecomment-66804473

betawaffle commented 9 years ago

Ok, so I tried the 0.3 binary, same problem.

betawaffle commented 9 years ago

So, to try and reproduce, here's what I'm doing:

I am running consul 0.4.0, with the following JSON config:

{
  "acl_datacenter": "dc1",
  "acl_master_token": "verysecret",
  "bootstrap_expect": 1,
  "datacenter": "dc1",
  "server": true
}

Then, I start vegad like so:

/path/to/vegad -data-dir /tmp/vega

Then, create the mailbox with curl:

curl -X POST 'localhost:8477/mailbox/foo'

I would then expect to see mailbox-routing in consul's KV store, but it's empty. If I then stop/start vegad, mailbox-routing shows up in consul.