nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Kubes (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (NUTCH-471) Fix synchronization in NutchBean creation
Date Fri, 13 Jul 2007 20:58:06 GMT

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

Dennis Kubes reopened NUTCH-471:
--------------------------------


This patch breaks the search.jsp with a null pointer because the nutch bean is no longer created
in the get method, it is only retrieved once it has already been cached.

> Fix synchronization in NutchBean creation
> -----------------------------------------
>
>                 Key: NUTCH-471
>                 URL: https://issues.apache.org/jira/browse/NUTCH-471
>             Project: Nutch
>          Issue Type: Bug
>          Components: searcher
>    Affects Versions: 1.0.0
>            Reporter: Enis Soztutar
>            Assignee: Doğacan Güney
>             Fix For: 1.0.0
>
>         Attachments: NutchBeanCreationSync_v1.patch, NutchBeanCreationSync_v2.patch
>
>
> NutchBean is created and then cached in servlet context. But NutchBean.get(ServletContext
app, Configuration conf) is not syncronized, which causes more than one instance of the bean
(and DistributedSearch$Client) if servlet container is accessed rapidly during startup. 

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


Mime
View raw message