> I don't think this is true? it should not happen for segments_N
> because those files are only produced by atomic rename (we write a
> "pending" file first)

That's exactly right from my understanding of the code. Those
references to "segments.gen" are only used for
trying to read old indexes... but I don't think they could be read
anyway (codecs).

I think it'd be good to clean this up and enforce write-once and
no-read-before-write-closed
policy as it opens doors to other improvements and cleanups (RAMDirectory...).

I filed LUCENE-8415 to track this.

Dawid

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

Reply via email to