lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Varun Thacker (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-6920) During replication use checksums to verify if files are the same
Date Sat, 07 Feb 2015 05:30:35 GMT

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

Varun Thacker commented on SOLR-6920:
-------------------------------------

Hi Mark,

In the 5.x patch, should we wrap {{fileMeta.put(CHECKSUM, CodecUtil.retrieveChecksum(in));}}
for the segments_n file in a try-catch block? 

> During replication use checksums to verify if files are the same
> ----------------------------------------------------------------
>
>                 Key: SOLR-6920
>                 URL: https://issues.apache.org/jira/browse/SOLR-6920
>             Project: Solr
>          Issue Type: Bug
>          Components: replication (java)
>            Reporter: Varun Thacker
>            Assignee: Mark Miller
>            Priority: Critical
>         Attachments: SOLR-6920-5x.patch, SOLR-6920-5x.patch, SOLR-6920.patch, SOLR-6920.patch,
SOLR-6920.patch, SOLR-6920.patch, SOLR-6920.patch, SOLR-6920.patch
>
>
> Currently we check if an index file on the master and slave is the same by checking if
it's name and file length match. 
> With LUCENE-2446 we now have a checksums for each index file in the segment. We should
leverage this to verify if two files are the same.
> Places like SnapPuller.isIndexStale and SnapPuller.downloadIndexFiles should check against
the checksum also.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message