[
https://issues.apache.org/jira/browse/LUCENE-9888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael McCandless reassigned LUCENE-9888:
------------------------------------------
Assignee: Michael McCandless
> Re-instead CheckIndex's attempts to confirm index sort is consistent across
> all segments
> ----------------------------------------------------------------------------------------
>
> Key: LUCENE-9888
> URL: https://issues.apache.org/jira/browse/LUCENE-9888
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Major
>
> [~rmuir] opened this awesome PR to enable ecj redundant {{null}} checking:
> [https://github.com/apache/lucene/pull/44]
> But one of the chunks of dead code we removed from {{CheckIndex}} was spooky:
> [https://github.com/apache/lucene/pull/44/files#r602733991]
> I think the intention here was to confirm that each segment's {{indexSort}}
> is the same, but because the {{Sort previousIndexSort = null}} declaration
> was *inside* the {{for}} body, it made the check pointless!
> I'll make a simple PR to re-instate the code and move the declaration outside
> the loop. Who knows, maybe fixing this long latent bug in {{CheckIndex}}
> will catch a fly? And maybe we could do some git archaeology to understand
> how the code became zombified?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]