Erlang/OTP Forums

Author Message

<  Erlang patches mailing list  ~  patch to allow delete a name from epmd database without rest

Guest
Posted: Wed Jun 16, 2010 2:32 pm Reply with quote
Guest
Hi,

Sometimes some erlang nodes crashe but I found the registered name
still exists in "epmd -names" so the erlang node cannot restart with
the same name.

I asked this question in the email list but no other ones seems to
have this issue. I cannot replicate that but it did happend a few
times on my server Ubuntun 7.10 with R13B02-1 compiled from source.
I'm not sure if it is a bug, but since epmd_srv.c accepts
EPMD_STOP_REQ but epmd just doesn't has a way to sent that request. So
I made this patch to unregister a node name

epmd -stop node_name

I also fixed a few typos.

This is the first time I submit patch, so please try the following and
let me know if it has problems.

git fetch git@github.com:seven1240/otp.git epmd_stop_cli

Thanks.

--
Blog: http://www.dujinfang.com
Proj: http://www.freeswitch.org.cn

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Wed Jun 16, 2010 2:33 pm Reply with quote
Guest
Hi,

Sometimes some erlang nodes crashe but I found the registered name
still exists in "epmd -names" so the erlang node cannot restart with
the same name.

I asked this question in the email list but no other ones seems to
have this issue. I cannot replicate that but it did happend a few
times on my server Ubuntun 7.10 with R13B02-1 compiled from source.
I'm not sure if it is a bug, but since epmd_srv.c accepts
EPMD_STOP_REQ but epmd just doesn't has a way to sent that request. So
I made this patch to unregister a node name

epmd -stop node_name

I also fixed a few typos.

This is the first time I submit patch, so please try the following and
let me know if it has problems.

git fetch git@github.com:seven1240/otp.git epmd_stop_cli

Thanks.

--
Blog: http://www.dujinfang.com
Proj: http://www.freeswitch.org.cn

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Thu Jun 17, 2010 8:59 am Reply with quote
Guest
On Wed, Jun 16, 2010 at 10:32:42PM +0800, Seven Du wrote:
> Hi,
>
> Sometimes some erlang nodes crashe but I found the registered name
> still exists in "epmd -names" so the erlang node cannot restart with
> the same name.
>
> I asked this question in the email list but no other ones seems to
> have this issue. I cannot replicate that but it did happend a few
> times on my server Ubuntun 7.10 with R13B02-1 compiled from source.
> I'm not sure if it is a bug, but since epmd_srv.c accepts
> EPMD_STOP_REQ but epmd just doesn't has a way to sent that request. So
> I made this patch to unregister a node name
>
> epmd -stop node_name
>
> I also fixed a few typos.
>
> This is the first time I submit patch, so please try the following and
> let me know if it has problems.
>
> git fetch git@github.com:seven1240/otp.git epmd_stop_cli

Thank you! It will be included in 'pu'.

That fetch command only works for you. This one I used:

git fetch git://github.com/seven1240/otp.git epmd_stop_cli


>
> Thanks.
>
> --
> Blog: http://www.dujinfang.com
> Proj: http://www.freeswitch.org.cn

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist
Guest
Posted: Thu Jun 17, 2010 8:59 am Reply with quote
Guest
On Wed, Jun 16, 2010 at 10:32:42PM +0800, Seven Du wrote:
> Hi,
>
> Sometimes some erlang nodes crashe but I found the registered name
> still exists in "epmd -names" so the erlang node cannot restart with
> the same name.
>
> I asked this question in the email list but no other ones seems to
> have this issue. I cannot replicate that but it did happend a few
> times on my server Ubuntun 7.10 with R13B02-1 compiled from source.
> I'm not sure if it is a bug, but since epmd_srv.c accepts
> EPMD_STOP_REQ but epmd just doesn't has a way to sent that request. So
> I made this patch to unregister a node name
>
> epmd -stop node_name
>
> I also fixed a few typos.
>
> This is the first time I submit patch, so please try the following and
> let me know if it has problems.
>
> git fetch git@github.com:seven1240/otp.git epmd_stop_cli

Thank you! It will be included in 'pu'.

That fetch command only works for you. This one I used:

git fetch git://github.com/seven1240/otp.git epmd_stop_cli


>
> Thanks.
>
> --
> Blog: http://www.dujinfang.com
> Proj: http://www.freeswitch.org.cn

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB

________________________________________________________________
erlang-patches (at) erlang.org mailing list.
See http://www.erlang.org/faq.html
To unsubscribe; mailto:erlang-patches-unsubscribe@erlang.org

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum