|
List Info
Thread: Created: (MUSE-236) shutdown a resource does not terminate its child resources
|
|
| Created: (MUSE-236) shutdown a resource
does not terminate its child resources |
  United States |
2007-06-08 17:12:27 |
shutdown a resource does not terminate its child resources
----------------------------------------------------------
Key: MUSE-236
URL: https:
//issues.apache.org/jira/browse/MUSE-236
Project: Muse
Issue Type: Bug
Environment: Muse 2.2.0, Eclipse 3.2.1
Reporter: Vinh Nguyen
Assignee: Dan Jemiolo
My resource has the NotificationProducer capability to
support the Subscribe operation. This operation creates a
new subscription resource. But, when I terminate the
primary resource, the various subscription resources spawned
off of it are not terminated. So if a remote client forgets
to terminate the subcription resources, these objects will
remain and suck up memory resources.
Perhaps a new method should be added:
ResourceManager.addResource(EndpointReference epr, Resource
resource, Resource parent)
This should map any child resources to a parent resource.
Once a parent resource is terminated, it will automatically
terminate the child resources. Muse's
SimpleNotificationProducer should also be updated to call
this new method.
So for subscriptions, if the producer resource is
terminated, the supscription resources don't need to stay
around anymore since notifications are no longer being
generated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.
------------------------------------------------------------
---------
To unsubscribe, e-mail: muse-dev-unsubscribe ws.apache.org
For additional commands, e-mail: muse-dev-help ws.apache.org
|
|
| Commented: (MUSE-236) shutdown a
resource does not terminate its child
resources |
  United States |
2007-06-08 17:37:26 |
[ https://issues.apache.org/jira/browse/MU
SE-236?page=com.atlassian.jira.plugin.system.issuetabpanels:
comment-tabpanel#action_12502955 ]
Vinh Nguyen commented on MUSE-236:
----------------------------------
Actually, the fix should be to SimpleNotificationProducer.
It stores references to the subscription resources that it
creates. In prepareShutdown(), it notifies the consumers
that these resources will terminate.
But, there is no shutdown() method that actually will
terminate these resources. This method should be added,
which will go thru the list of resource references and call
shutdown() on those resources, too.
> shutdown a resource does not terminate its child
resources
>
----------------------------------------------------------
>
> Key: MUSE-236
> URL: https:
//issues.apache.org/jira/browse/MUSE-236
> Project: Muse
> Issue Type: Bug
> Environment: Muse 2.2.0, Eclipse 3.2.1
> Reporter: Vinh Nguyen
> Assignee: Dan Jemiolo
>
> My resource has the NotificationProducer capability to
support the Subscribe operation. This operation creates a
new subscription resource. But, when I terminate the
primary resource, the various subscription resources spawned
off of it are not terminated. So if a remote client forgets
to terminate the subcription resources, these objects will
remain and suck up memory resources.
> Perhaps a new method should be added:
> ResourceManager.addResource(EndpointReference epr,
Resource resource, Resource parent)
> This should map any child resources to a parent
resource. Once a parent resource is terminated, it will
automatically terminate the child resources. Muse's
SimpleNotificationProducer should also be updated to call
this new method.
> So for subscriptions, if the producer resource is
terminated, the supscription resources don't need to stay
around anymore since notifications are no longer being
generated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.
------------------------------------------------------------
---------
To unsubscribe, e-mail: muse-dev-unsubscribe ws.apache.org
For additional commands, e-mail: muse-dev-help ws.apache.org
|
|
| Updated: (MUSE-236) shutdown a resource
does not terminate its child resources |
  United States |
2007-08-31 10:04:30 |
[
https://issues.apache.org/jira/browse/MUSE-236?page=com.atla
ssian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Jemiolo updated MUSE-236:
-----------------------------
Component/s: WSN SubscriptionManager
WSN NotificationProducer
Fix Version/s: 2.3.0
Affects Version/s: 2.2.0
> shutdown a resource does not terminate its child
resources
>
----------------------------------------------------------
>
> Key: MUSE-236
> URL: https:
//issues.apache.org/jira/browse/MUSE-236
> Project: Muse
> Issue Type: Bug
> Components: WSN NotificationProducer, WSN
SubscriptionManager
> Affects Versions: 2.2.0
> Environment: Muse 2.2.0, Eclipse 3.2.1
> Reporter: Vinh Nguyen
> Assignee: Dan Jemiolo
> Fix For: 2.3.0
>
>
> My resource has the NotificationProducer capability to
support the Subscribe operation. This operation creates a
new subscription resource. But, when I terminate the
primary resource, the various subscription resources spawned
off of it are not terminated. So if a remote client forgets
to terminate the subcription resources, these objects will
remain and suck up memory resources.
> Perhaps a new method should be added:
> ResourceManager.addResource(EndpointReference epr,
Resource resource, Resource parent)
> This should map any child resources to a parent
resource. Once a parent resource is terminated, it will
automatically terminate the child resources. Muse's
SimpleNotificationProducer should also be updated to call
this new method.
> So for subscriptions, if the producer resource is
terminated, the supscription resources don't need to stay
around anymore since notifications are no longer being
generated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.
------------------------------------------------------------
---------
To unsubscribe, e-mail: muse-dev-unsubscribe ws.apache.org
For additional commands, e-mail: muse-dev-help ws.apache.org
|
|
| Commented: (MUSE-236) shutdown a
resource does not terminate its child
resources |
  United States |
2007-09-02 11:17:19 |
[ https://issues.apache.org/jira/browse/MU
SE-236?page=com.atlassian.jira.plugin.system.issuetabpanels:
comment-tabpanel#action_12524354 ]
Dan Jemiolo commented on MUSE-236:
----------------------------------
This is more complicated than it seems, because the resource
may be preparing to shutdown as part of a system-wide
shutdown, in which case the subscriptions are already
targeted for shutdown. We'd need to add checks to make sure
the subscriptions aren't terminated twice (we have sanity
checks to catch this, but that will just result in an
exception). A more robust solution might be to subclass
WSRL's SimpleImmediateTermination and override the destroy(
) implementation so that it kills all the subscription
resources before calling super.destroy( ); (you would only
use this WSRL class for your notification producing
resources).
> shutdown a resource does not terminate its child
resources
>
----------------------------------------------------------
>
> Key: MUSE-236
> URL: https:
//issues.apache.org/jira/browse/MUSE-236
> Project: Muse
> Issue Type: Bug
> Components: WSN NotificationProducer, WSN
SubscriptionManager
> Affects Versions: 2.2.0
> Environment: Muse 2.2.0, Eclipse 3.2.1
> Reporter: Vinh Nguyen
> Assignee: Dan Jemiolo
> Fix For: 2.3.0
>
>
> My resource has the NotificationProducer capability to
support the Subscribe operation. This operation creates a
new subscription resource. But, when I terminate the
primary resource, the various subscription resources spawned
off of it are not terminated. So if a remote client forgets
to terminate the subcription resources, these objects will
remain and suck up memory resources.
> Perhaps a new method should be added:
> ResourceManager.addResource(EndpointReference epr,
Resource resource, Resource parent)
> This should map any child resources to a parent
resource. Once a parent resource is terminated, it will
automatically terminate the child resources. Muse's
SimpleNotificationProducer should also be updated to call
this new method.
> So for subscriptions, if the producer resource is
terminated, the supscription resources don't need to stay
around anymore since notifications are no longer being
generated.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue
online.
------------------------------------------------------------
---------
To unsubscribe, e-mail: muse-dev-unsubscribe ws.apache.org
For additional commands, e-mail: muse-dev-help ws.apache.org
|
|
[1-4]
|
|