You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2012/08/01 17:13:02 UTC

[jira] [Created] (ARIES-897) The ReferenceRecipe lazily get the real osgi service which cause service tracking count to be inaccurate

Guillaume Nodet created ARIES-897:
-------------------------------------

             Summary: The ReferenceRecipe lazily get the real osgi service which cause service tracking count to be inaccurate
                 Key: ARIES-897
                 URL: https://issues.apache.org/jira/browse/ARIES-897
             Project: Aries
          Issue Type: Bug
            Reporter: Guillaume Nodet


Service tracking count is used to order the bundles when stopping those.
If the order is wrong, it can cause some bundles to go into the default 5 minutes timeout when trying to access services.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (ARIES-897) The ReferenceRecipe sometimes unget the tracked service for no reason

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated ARIES-897:
----------------------------------

    Summary: The ReferenceRecipe sometimes unget the tracked service for no reason  (was: The ReferenceRecipe lazily get the real osgi service which cause service tracking count to be inaccurate)
    
> The ReferenceRecipe sometimes unget the tracked service for no reason
> ---------------------------------------------------------------------
>
>                 Key: ARIES-897
>                 URL: https://issues.apache.org/jira/browse/ARIES-897
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>
> Service tracking count is used to order the bundles when stopping those.
> If the order is wrong, it can cause some bundles to go into the default 5 minutes timeout when trying to access services.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ARIES-897) The ReferenceRecipe lazily get the real osgi service which cause service tracking count to be inaccurate

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426730#comment-13426730 ] 

Guillaume Nodet commented on ARIES-897:
---------------------------------------

Actually, the problem is different. The bad usage comes from the fact that the ReferenceRecipe#bind() is called twice.
Once when the manager is started, and once when the recipe is created to make sure listeners are called.
This second call cause the ungetService() method to be called and lower the usage of the service.
The service should only be unget if the new tracked ServiceReference is different from the old one.
                
> The ReferenceRecipe lazily get the real osgi service which cause service tracking count to be inaccurate
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-897
>                 URL: https://issues.apache.org/jira/browse/ARIES-897
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>
> Service tracking count is used to order the bundles when stopping those.
> If the order is wrong, it can cause some bundles to go into the default 5 minutes timeout when trying to access services.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (ARIES-897) The ReferenceRecipe sometimes unget the tracked service for no reason

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ARIES-897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved ARIES-897.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: blueprint-core-1.0.1
         Assignee: Guillaume Nodet

http://svn.apache.org/viewvc?rev=1368208&view=rev
                
> The ReferenceRecipe sometimes unget the tracked service for no reason
> ---------------------------------------------------------------------
>
>                 Key: ARIES-897
>                 URL: https://issues.apache.org/jira/browse/ARIES-897
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: blueprint-core-1.0.1
>
>
> Service tracking count is used to order the bundles when stopping those.
> If the order is wrong, it can cause some bundles to go into the default 5 minutes timeout when trying to access services.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (ARIES-897) The ReferenceRecipe lazily get the real osgi service which cause service tracking count to be inaccurate

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ARIES-897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426690#comment-13426690 ] 

Guillaume Nodet commented on ARIES-897:
---------------------------------------

Unfortunately, the spec says that service reference should fetch the service lazily.
                
> The ReferenceRecipe lazily get the real osgi service which cause service tracking count to be inaccurate
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-897
>                 URL: https://issues.apache.org/jira/browse/ARIES-897
>             Project: Aries
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>
> Service tracking count is used to order the bundles when stopping those.
> If the order is wrong, it can cause some bundles to go into the default 5 minutes timeout when trying to access services.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira