<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Sorry don't follow<br><br>--<br>festina lente<div><br></div></div><div><br>On 13 Feb 2014, at 19:35, Mike Oxford <<a href="mailto:moxford@gmail.com">moxford@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"> [{"1.0.6",[],</span><br style="font-family:arial,sans-serif;font-size:13.333333969116211px"><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"> [{load_object_code,{app1,"</span><u style="font-family:arial,sans-serif;font-size:13.333333969116211px"></u><b><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">201</span></b><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b>40213.1</b>",[app1]}},</span><br style="font-family:arial,sans-serif;font-size:13.333333969116211px">
<span style="font-family:arial,sans-serif;font-size:13.333333969116211px"> {load_object_code,{app2,"</span><u style="font-family:arial,sans-serif;font-size:13.333333969116211px"></u><b><span style="font-family:arial,sans-serif;font-size:13.333333969116211px">20140</span></b><span style="font-family:arial,sans-serif;font-size:13.333333969116211px"><b>213.1</b>",[app2]}},</span><div>
<br></div><div>Replacing a version with itself? </div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 13, 2014 at 11:03 AM, Ivan Uemlianin <span dir="ltr"><<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Mike<br>
<br>
Thanks for your help.<br>
<br>
Here's a recent relup. After this upgrade, I had to manually code_load and purge app1:<br>
<br>
{"1.0.7",<br>
[{"1.0.6",[],<br>
[{load_object_code,{app1,"<u></u>20140213.1",[app1]}},<br>
{load_object_code,{app2,"<u></u>20140213.1",[app2]}},<br>
point_of_no_return,<br>
{suspend,[app1]},<br>
{load,{app1,brutal_purge,<u></u>brutal_purge}},<br>
{code_change,up,[{app1,[<u></u>from1to2]}]},<br>
{resume,[app1]},<br>
{suspend,[app2]},<br>
{load,{app2,brutal_purge,<u></u>brutal_purge}},<br>
{code_change,up,[{app2,[<u></u>from1to2]}]},<br>
{resume,[app2]}]}],<br>
[{"1.0.6",[],<br>
[{load_object_code,{app1,"<u></u>20140211.1",[app1]}},<br>
{load_object_code,{app2,"<u></u>20140207.1",[app2]}},<br>
point_of_no_return,<br>
{suspend,[app1]},<br>
{code_change,down,[{app1,[<u></u>from2to1]}]},<br>
{load,{app1,brutal_purge,<u></u>brutal_purge}},<br>
{resume,[app1]},<br>
{suspend,[app2]},<br>
{code_change,down,[{app2,[<u></u>from2to1]}]},<br>
{load,{app2,brutal_purge,<u></u>brutal_purge}},<br>
{resume,[app2]}]}]}.<br>
<br>
Best wishes<br>
<br>
Ivan<div class=""><br>
<br>
<br>
On 13/02/2014 18:54, Mike Oxford wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Is your brutal_purge on the PostPurge or the PrePurge?<br>
<br>
<br>
On Thu, Feb 13, 2014 at 10:00 AM, Ivan Uemlianin <<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a><br></div><div class="">
<mailto:<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a>>> wrote:<br>
<br>
Dear All<br>
<br>
I am just getting started with live release upgrades, using relx and<br>
following this tutorial:<br>
<br></div>
<a href="http://blog.troutwine.us/2013/__09/13/trivial_otp_releases.__html" target="_blank">http://blog.troutwine.us/2013/<u></u>__09/13/trivial_otp_releases._<u></u>_html</a><div class=""><br>
<<a href="http://blog.troutwine.us/2013/09/13/trivial_otp_releases.html" target="_blank">http://blog.troutwine.us/<u></u>2013/09/13/trivial_otp_<u></u>releases.html</a>><br>
<br>
Everything seems to work as advertised, except sometimes I need to<br>
explicitly load the code into the running vm (i.e., using<br>
code_load_file/1) for the new stuff to take effect. The function<br></div>
release_handler:which___<u></u>releases/0 reports the new release as active<div class=""><br>
and permanent, but I can see from behaviour that old versions of<br>
certain modules are still running and handling data.<br>
<br>
I can't be much more specific I'm afraid. One example: one<br>
application uses cowboy. If a release upgrade changes a cowboy<br>
resource module, the new release version might still be running the<br>
old version of that module until I load_file and purge.<br>
<br>
Why might this be happening? Am I missing something in the<br>
packaging and upgrade process? Is there a better way I can write my<br>
modules?<br>
<br>
If the information above is too vague, what should I look out for<br>
next time this happens?<br>
<br>
With thanks and best wishes<br>
<br>
Ivan<br>
<br>
<br>
--<br></div>
==============================<u></u>__============================<u></u>==<div class=""><br>
Ivan A. Uemlianin PhD<br>
Llaisdy<br>
Speech Technology Research and Development<br>
<br></div>
<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a> <mailto:<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a>><br>
<a href="http://www.llaisdy.com" target="_blank">www.llaisdy.com</a> <<a href="http://www.llaisdy.com" target="_blank">http://www.llaisdy.com</a>><br>
<a href="http://llaisdy.wordpress.com" target="_blank">llaisdy.wordpress.com</a> <<a href="http://llaisdy.wordpress.com" target="_blank">http://llaisdy.wordpress.com</a>><br>
<a href="http://github.com/llaisdy" target="_blank">github.com/llaisdy</a> <<a href="http://github.com/llaisdy" target="_blank">http://github.com/llaisdy</a>><br>
<a href="http://www.linkedin.com/in/__ivanuemlianin" target="_blank">www.linkedin.com/in/__<u></u>ivanuemlianin</a><br>
<<a href="http://www.linkedin.com/in/ivanuemlianin" target="_blank">http://www.linkedin.com/in/<u></u>ivanuemlianin</a>><br>
<br>
festina lente<br>
==============================<u></u>__============================<u></u>==<br>
______________________________<u></u>___________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a> <mailto:<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@<u></u>erlang.org</a>><br>
<a href="http://erlang.org/mailman/__listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/__<u></u>listinfo/erlang-questions</a><br>
<<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/<u></u>listinfo/erlang-questions</a>><br>
<br>
<br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
-- <br>
==============================<u></u>==============================<br>
Ivan A. Uemlianin PhD<br>
Llaisdy<br>
Speech Technology Research and Development<br>
<br>
<a href="mailto:ivan@llaisdy.com" target="_blank">ivan@llaisdy.com</a><br>
<a href="http://www.llaisdy.com" target="_blank">www.llaisdy.com</a><br>
<a href="http://llaisdy.wordpress.com" target="_blank">llaisdy.wordpress.com</a><br>
<a href="http://github.com/llaisdy" target="_blank">github.com/llaisdy</a><br>
<a href="http://www.linkedin.com/in/ivanuemlianin" target="_blank">www.linkedin.com/in/<u></u>ivanuemlianin</a><br>
<br>
festina lente<br>
==============================<u></u>==============================<br>
</div></div></blockquote></div><br></div>
</div></blockquote></body></html>