[
https://issues.apache.org/jira/browse/LUCENE-3607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159392#comment-13159392
]
Michael McCandless commented on LUCENE-3607:
--------------------------------------------
{quote}
bq. Wait, does Solr replication really rely on the IR.getVersion being seeded
with a timestamp?
IIRC, it's used somewhere.
{quote}
Hmmm spooky that Solr replication would in fact rely on this.
And then also spooky that no test fails if I change version to start
at 0.
Are you sure?
What happens if time goes backwards (daylight savings, clock
correction, user changes clock, etc.)? Will it break Solr's
replication?
{quote}
bq. Does it somehow compare IR.getVersion across different indices?
"Different" is rather subjective. Someone can blow away an index and recreate
the same logical index (even though it's a different index from Lucene's POV).
{quote}
OK I see. So... you could have an IR open on an index, do rm * from
it (unix), build up a new index, and then call IR.isCurrent. Seeding
with timestamp means the version will have gone up (if time didn't
move backwards) across those two indices.
(Though really you should not rm * to delete all docs; better to use
new IW w/ create=true).
I generally don't like things that rely strongly on timestamp since
time can and eventually will go backwards with computers, and you
never remember to properly test for that.
But I guess we can leave this be for now...
> Lucene Index files can not be reproduced faithfully (due to timestamps
> embedded)
> --------------------------------------------------------------------------------
>
> Key: LUCENE-3607
> URL: https://issues.apache.org/jira/browse/LUCENE-3607
> Project: Lucene - Java
> Issue Type: Bug
> Components: core/index
> Affects Versions: 2.9.1
> Environment: Eclipse 3.7
> Reporter: Martin Oberhuber
> Assignee: Michael McCandless
>
> Eclipse 3.7 uses Lucene 2.9.1 for indexing online help content. A
> pre-generated help index can be shipped together with online content. As per
> [[https://bugs.eclipse.org/bugs/show_bug.cgi?id=364979 ]]
> it turns out that the help index can not be faithfully reproduced during a
> build, because there are timestamps embedded in the index files, and the
> "NameCounter" field in segments_2 contains different contents on every build.
> Not being able to faithfully reproduce the index from identical source bits
> undermines trust in the index (and software delivery) being correct.
> I'm wondering whether this is a known issue and/or has been addressed in a
> newer Lucene version already ?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]