You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "hanchi (JIRA)" <ji...@apache.org> on 2014/05/18 07:59:14 UTC

[jira] [Commented] (NUTCH-1784) modifiedTime and prevmodifiedTime never set

    [ https://issues.apache.org/jira/browse/NUTCH-1784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001007#comment-14001007 ] 

hanchi commented on NUTCH-1784:
-------------------------------

Hi Talat!
After reading the issue: https://issues.apache.org/jira/browse/NUTCH-1651, I have some doubts. What is the modifiedTime and prevmodifiedTime? And is the target to avoid fetching the same urls when fetching for a second time?

Thank you in advance!

> modifiedTime and prevmodifiedTime never set 
> --------------------------------------------
>
>                 Key: NUTCH-1784
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1784
>             Project: Nutch
>          Issue Type: Bug
>    Affects Versions: 2.2.1
>            Reporter: hanchi
>             Fix For: 2.3
>
>         Attachments: NUTCH-1651.patch
>
>
> modifiedTime is never set. If you use DefaultFetchScheduler, modifiedTime is always zero as default. But if you use AdaptiveFetchScheduler, modifiedTime is set only once in the beginning by zero-control of AdaptiveFetchScheduler.
> But this is not sufficient since modifiedTime needs to be updated whenever last modified time is available. We corrected this with a patch.
> Also we noticed that prevModifiedTime is not written to database and we corrected that too.
> With this patch, whenever lastModifiedTime is available, we do two things. First we set modifiedTime in the Page object to prevModifiedTime. After that we set lastModifiedTime to modifiedTime.



--
This message was sent by Atlassian JIRA
(v6.2#6252)