<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><span style="font-size: 13.076923370361328px;">On June 17, 2014 at </span>1:24:14 PM<span style="font-size: 13.076923370361328px;">, Simon MacMullen (</span><a href="mailto:simon@rabbitmq.com" style="font-size: 13.076923370361328px;">simon@rabbitmq.com</a><span style="font-size: 13.076923370361328px;">) wrote:</span></div><div style="color:black"><br></div><div><div><blockquote type="cite" class="clean_bq" style="color: rgb(0, 0, 0); font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span><div><div></div><div>Probably the right solution is for the empty_db_check to only check for<span class="Apple-converted-space"> </span><br>absent vhosts and exchanges. I'll file a bug for that.<span class="Apple-converted-space"> </span></div></div></span></blockquote></div><p>Cool, makes sense.</p><div><blockquote type="cite" class="clean_bq" style="color: rgb(0, 0, 0); font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span><div><div>But how can you work around this? I don't think you can tweak the boot <br>steps required by your supervisor, but I think:<span class="Apple-converted-space"> </span><br><br>start_link() -><span class="Apple-converted-space"> </span><br>+ rabbit:maybe_insert_default_data(),<span class="Apple-converted-space"> </span><br>mirrored_supervisor:start_link(<span class="Apple-converted-space"> </span><br>{local, ?MODULE}, ?MODULE,<span class="Apple-converted-space"> </span><br>fun rabbit_misc:execute_mnesia_transaction/1,<span class="Apple-converted-space"> </span><br><br>is a reasonable workaround.<span class="Apple-converted-space"> </span></div></div></span></blockquote></div></div><p>Thanks! Indeed that works fine. Thank you very much for investigating.</p><p>I ran into one other issue on startup, having to do with rabbit_direct_client being available. The solution I came up with was to use timers to defer the commands until rabbit_direct_client_sup exists. Does this seem like a sane approach?</p><p><a href="https://github.com/aweber/pgsql-listen-exchange/commit/c60d6dcc982056978750fe218e9a1ae2bf895aa3">https://github.com/aweber/pgsql-listen-exchange/commit/c60d6dcc982056978750fe218e9a1ae2bf895aa3</a></p><p>Thanks for all your help,</p><p>Gavin</p></body></html>