You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by "Lahiru Gunathilake (JIRA)" <ji...@apache.org> on 2011/09/20 21:38:08 UTC

[jira] [Closed] (AIRAVATA-116) GFac url should be removed from the repo during gfac-axis2 shutdown

     [ https://issues.apache.org/jira/browse/AIRAVATA-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lahiru Gunathilake closed AIRAVATA-116.
---------------------------------------


> GFac url should be removed from the repo during gfac-axis2 shutdown
> -------------------------------------------------------------------
>
>                 Key: AIRAVATA-116
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-116
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Lahiru Gunathilake
>
> Ideally gfac-axis2 should remove its url from repository during the shutdown process.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Closed] (AIRAVATA-116) GFac url should be removed from the repo during gfac-axis2 shutdown

Posted by Lahiru Gunathilake <gl...@gmail.com>.
Hi Chathura,

I am +1 for this idea ! I will try to find a way to implement this in Axis2
GFac service lifecycle class !

Regards
Lahiru
On Tue, Sep 20, 2011 at 10:30 PM, Chathura Herath <ch...@gmail.com>wrote:

> Hi,
>
> I am all for GFac registering itself with the registry. Few
> improvements that we could do here.
>
> I am not sure who is calling the shutdown, i am guessing its a java
> shut down hook. Even if that is the case we cannot rely on this
> because a hard kill of the process will not trigger the shutdown hook.
> This will lead to GFac url left in the registry although GFac service
> is dead.
> Common technique is to use a lease. That is to associate a "valid
> until timestamp" with the GFac url during registration. So when GFac
> starts up it will register itself and say this url registration is
> valid for next 6 minutes and GFac is required to reregister itself
> with the registry ever 5 minutes or so. This way even if there is a
> hard kill on the GFac the url will expire and we have a safety against
> dangling pointer.
>
> Thanks
> Chathura
>
>
> On Tue, Sep 20, 2011 at 3:38 PM, Lahiru Gunathilake (JIRA)
> <ji...@apache.org> wrote:
> >
> >     [
> https://issues.apache.org/jira/browse/AIRAVATA-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
> >
> > Lahiru Gunathilake closed AIRAVATA-116.
> > ---------------------------------------
> >
> >
> >> GFac url should be removed from the repo during gfac-axis2 shutdown
> >> -------------------------------------------------------------------
> >>
> >>                 Key: AIRAVATA-116
> >>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-116
> >>             Project: Airavata
> >>          Issue Type: Bug
> >>            Reporter: Lahiru Gunathilake
> >>
> >> Ideally gfac-axis2 should remove its url from repository during the
> shutdown process.
> >
> > --
> > This message is automatically generated by JIRA.
> > For more information on JIRA, see:
> http://www.atlassian.com/software/jira
> >
> >
> >
>
>
>
> --
> Chathura Herath
> https://www.cs.indiana.edu/~cherath/
> http://chathurah.blogspot.com/
>



-- 
System Analyst Programmer
PTI Lab
Indiana University

Re: [jira] [Closed] (AIRAVATA-116) GFac url should be removed from the repo during gfac-axis2 shutdown

Posted by Chathura Herath <ch...@gmail.com>.
Hi,

I am all for GFac registering itself with the registry. Few
improvements that we could do here.

I am not sure who is calling the shutdown, i am guessing its a java
shut down hook. Even if that is the case we cannot rely on this
because a hard kill of the process will not trigger the shutdown hook.
This will lead to GFac url left in the registry although GFac service
is dead.
Common technique is to use a lease. That is to associate a "valid
until timestamp" with the GFac url during registration. So when GFac
starts up it will register itself and say this url registration is
valid for next 6 minutes and GFac is required to reregister itself
with the registry ever 5 minutes or so. This way even if there is a
hard kill on the GFac the url will expire and we have a safety against
dangling pointer.

Thanks
Chathura


On Tue, Sep 20, 2011 at 3:38 PM, Lahiru Gunathilake (JIRA)
<ji...@apache.org> wrote:
>
>     [ https://issues.apache.org/jira/browse/AIRAVATA-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Lahiru Gunathilake closed AIRAVATA-116.
> ---------------------------------------
>
>
>> GFac url should be removed from the repo during gfac-axis2 shutdown
>> -------------------------------------------------------------------
>>
>>                 Key: AIRAVATA-116
>>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-116
>>             Project: Airavata
>>          Issue Type: Bug
>>            Reporter: Lahiru Gunathilake
>>
>> Ideally gfac-axis2 should remove its url from repository during the shutdown process.
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>



-- 
Chathura Herath
https://www.cs.indiana.edu/~cherath/
http://chathurah.blogspot.com/