Michael McCandless created LUCENE-6353:
------------------------------------------

             Summary: Strengthen checks on allowed segment file names
                 Key: LUCENE-6353
                 URL: https://issues.apache.org/jira/browse/LUCENE-6353
             Project: Lucene - Core
          Issue Type: Bug
            Reporter: Michael McCandless
             Fix For: Trunk, 5.1


Replication layers that need to move Lucene indices around frequently need to 
(or should) be able to decode an given index file into its segment name, 
segment suffix (generation and/or per-field "suffix"), file name extension.

This is useful for robustness, e.g. copying all of a segment's files if any 
checksums/ids across those files disagrees between source and replica.

But we don't do very strong checking of the "syntax" of an index file name 
today, or at least we should do the TODO in SegmentWriteState (upgrade the 
assert on the segment suffix to a real check).

I think we could also make MDW.close insist every file it finds in a closed 
index either matches the required syntax, or is an "extra" added by ExtraFS?




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to