[gatein-issues] [JBoss JIRA] Commented: (GTNPORTAL-1169) Likely issue on DataStorage 's cache , listeners

Minh Hoang TO (JIRA) jira-events at lists.jboss.org
Thu May 6 23:33:06 EDT 2010


    [ https://jira.jboss.org/jira/browse/GTNPORTAL-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12529506#action_12529506 ] 

Minh Hoang TO commented on GTNPORTAL-1169:
------------------------------------------

As the test cases in component.portal always pass. It 's likely that below states occur in the DataStorage blackbox

1. When dataStorage.create(pageNavi) is invoked. The parsed argument pageNavi is put on the cache, meanwhile a real creating query is dispatched to JCR

---> that explain why the first getPageNavigaiton() is non NULL, and why the test cases pass

2. Once the creating query is dispatched, the cache is cleared

----> that explain why  during the loop the getPageNavigaiton(..) often returns NULL, or the NPE exception reported by Social team

3. The creating query is handled succesfully in data layer, then events would be fired and relevant listeners syncrhonize the DataStorage 's cache with model in data layer

> Likely issue on DataStorage 's cache , listeners
> ------------------------------------------------
>
>                 Key: GTNPORTAL-1169
>                 URL: https://jira.jboss.org/jira/browse/GTNPORTAL-1169
>             Project: GateIn Portal
>          Issue Type: Bug
>    Affects Versions: 3.0.0-GA
>            Reporter: Minh Hoang TO
>            Assignee: Julien Viet
>
>  Social team reported that there is delay in creating PageNavigation.  Below code snippet illustrates the scenario
> String owerType = "group";
> String ownerId = "blahblah";
> PageNavigation pageNav = new PageNavigation(ownerType, ownerId);
> dataStorage.create(pageNavi);
> pageNav = dataStorage.getPageNavigation(ownerType, ownerId);  ---> Here the pageNav is not NULL
> for( int i =0; i < 100; i++)
> {
>     pageNav = dataStorage.getPageNavigation(ownerType, ownerId);
>    if(pageNav != null)
>    {
>        break;
>    }
>    else{
>        //Print out something saying that pageNav is null
>    }
> }
> pageNav = dataStorage.getPageNavigation(ownerType, ownerId); ---> Here the pageNavigation is always non NULL, as about 45 seconds has elapsed
>   Within the loop, the pageNav is often null. 
>  From UI, if user create a new navigation and click immediately on that navigation (Ex: Create a Space in Social), then there is NPE
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list