You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dominique Pfister (JIRA)" <ji...@apache.org> on 2008/05/29 08:58:45 UTC

[jira] Created: (SLING-488) Pooled sessions are not reused when workspace is null

Pooled sessions are not reused when workspace is null
-----------------------------------------------------

                 Key: SLING-488
                 URL: https://issues.apache.org/jira/browse/SLING-488
             Project: Sling
          Issue Type: Bug
          Components: JCR
    Affects Versions: 2.0.0
            Reporter: Dominique Pfister


I noticed this when looking at the workings of the repository pinger inside AbstractSlingRepository.java:

When a default workspace is not specified, the repository pinger will use "null" as workspace name and attempt to remove an idle session from the administrative user's session pool. It will, however, never match an existing session, since (SessionPool.java:782)

  session.getWorkspace().getName().equals(workSpaceName)

In other words, the repository pinger will continuously acquire "real" sessions instead of reusing a pooled one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SLING-488) Pooled sessions are not reused when workspace is null

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

Felix Meschberger resolved SLING-488.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Fixed in Rev. 661655.

Please close if this is solution is ok for you. Thanks.

> Pooled sessions are not reused when workspace is null
> -----------------------------------------------------
>
>                 Key: SLING-488
>                 URL: https://issues.apache.org/jira/browse/SLING-488
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: 2.0.0
>            Reporter: Dominique Pfister
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> I noticed this when looking at the workings of the repository pinger inside AbstractSlingRepository.java:
> When a default workspace is not specified, the repository pinger will use "null" as workspace name and attempt to remove an idle session from the administrative user's session pool. It will, however, never match an existing session, since (SessionPool.java:782)
>   session.getWorkspace().getName().equals(workSpaceName)
> In other words, the repository pinger will continuously acquire "real" sessions instead of reusing a pooled one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SLING-488) Pooled sessions are not reused when workspace is null

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601093#action_12601093 ] 

Felix Meschberger commented on SLING-488:
-----------------------------------------

What is even worth, the pool is filled with sessions while new sessions keep getting acquired.

I am fixing this by resetting the default workspace setting of the AbstractSlingRepository to the name of the workspace of a session returned upon being called with a null-workspace.

> Pooled sessions are not reused when workspace is null
> -----------------------------------------------------
>
>                 Key: SLING-488
>                 URL: https://issues.apache.org/jira/browse/SLING-488
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: 2.0.0
>            Reporter: Dominique Pfister
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> I noticed this when looking at the workings of the repository pinger inside AbstractSlingRepository.java:
> When a default workspace is not specified, the repository pinger will use "null" as workspace name and attempt to remove an idle session from the administrative user's session pool. It will, however, never match an existing session, since (SessionPool.java:782)
>   session.getWorkspace().getName().equals(workSpaceName)
> In other words, the repository pinger will continuously acquire "real" sessions instead of reusing a pooled one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SLING-488) Pooled sessions are not reused when workspace is null

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

Felix Meschberger reassigned SLING-488:
---------------------------------------

    Assignee: Felix Meschberger

> Pooled sessions are not reused when workspace is null
> -----------------------------------------------------
>
>                 Key: SLING-488
>                 URL: https://issues.apache.org/jira/browse/SLING-488
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: 2.0.0
>            Reporter: Dominique Pfister
>            Assignee: Felix Meschberger
>
> I noticed this when looking at the workings of the repository pinger inside AbstractSlingRepository.java:
> When a default workspace is not specified, the repository pinger will use "null" as workspace name and attempt to remove an idle session from the administrative user's session pool. It will, however, never match an existing session, since (SessionPool.java:782)
>   session.getWorkspace().getName().equals(workSpaceName)
> In other words, the repository pinger will continuously acquire "real" sessions instead of reusing a pooled one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-488) Pooled sessions are not reused when workspace is null

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

Dominique Pfister closed SLING-488.
-----------------------------------


Excellent! I can now see that the SessionPool's hit counter is growing continuously while the miss counter stays at 0, as expected. Thanks for fixing!


> Pooled sessions are not reused when workspace is null
> -----------------------------------------------------
>
>                 Key: SLING-488
>                 URL: https://issues.apache.org/jira/browse/SLING-488
>             Project: Sling
>          Issue Type: Bug
>          Components: JCR
>    Affects Versions: 2.0.0
>            Reporter: Dominique Pfister
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> I noticed this when looking at the workings of the repository pinger inside AbstractSlingRepository.java:
> When a default workspace is not specified, the repository pinger will use "null" as workspace name and attempt to remove an idle session from the administrative user's session pool. It will, however, never match an existing session, since (SessionPool.java:782)
>   session.getWorkspace().getName().equals(workSpaceName)
> In other words, the repository pinger will continuously acquire "real" sessions instead of reusing a pooled one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.