[hibernate-issues] [Hibernate-JIRA] Commented: (HSEARCH-453) FSSlaveDirectoryProvider: initial refresh

Sanne Grinovero (JIRA) noreply at atlassian.com
Wed Feb 3 14:16:29 EST 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=35450#action_35450 ] 

Sanne Grinovero commented on HSEARCH-453:
-----------------------------------------

Hi, there's a copy happening during the start() method, before the timer starts, so it's already synched.
(line 130)
This is done to be in sync with framework initialization, so that the app is not available until the first copy is ready to serve queries.
Is that not working?

> FSSlaveDirectoryProvider: initial refresh
> -----------------------------------------
>
>                 Key: HSEARCH-453
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-453
>             Project: Hibernate Search
>          Issue Type: Improvement
>          Components: directory provider
>    Affects Versions: 3.1.1.GA
>            Reporter: Stephan Bublava
>            Priority: Minor
>
> FSSlaveDirectoryProvider schedules the first refresh of the index files after the defined refresh period has elapsed. The first refresh should occur immediately.
> In other words:
>     TimerTask task = new TriggerTask( sourceIndexDir, indexDir );
>     long period = DirectoryProviderHelper.getRefreshPeriod( properties, directoryProviderName );
>     timer.scheduleAtFixedRate( task, 0L, period );
> instead of:
>     TimerTask task = new TriggerTask( sourceIndexDir, indexDir );
>     long period = DirectoryProviderHelper.getRefreshPeriod( properties, directoryProviderName );
>     timer.scheduleAtFixedRate( task, period, period );

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

        


More information about the hibernate-issues mailing list