[
https://issues.apache.org/jira/browse/LUCENE-10004?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
kkewwei updated LUCENE-10004:
-----------------------------
Description:
In CompressingStoredFieldsWriter.merge(): if the segment meet the following
conditions:
{code:java}
else if (matchingFieldsReader.getCompressionMode() == compressionMode &&
matchingFieldsReader.getChunkSize() == chunkSize &&
matchingFieldsReader.getPackedIntsVersion() ==
PackedInts.VERSION_CURRENT &&
liveDocs == null &&
!tooDirty(matchingFieldsReader)) {
}
{code}
we will copy the the all chunk to the new fdt, before copying the chunk, we
will flush the buffer docs if numBufferedDocs >0 in copyChunks, but the flush
is unnecessary.
was:
In CompressingStoredFieldsWriter.merge(): if the segment meet the following
conditions:
```
else if (matchingFieldsReader.getCompressionMode() == compressionMode &&
matchingFieldsReader.getChunkSize() == chunkSize &&
matchingFieldsReader.getPackedIntsVersion() ==
PackedInts.VERSION_CURRENT &&
liveDocs == null &&
!tooDirty(matchingFieldsReader)) {
}
```
we will copy the the all chunk to the new fdt, before copying the chunk, we
will flush the buffer docs if numBufferedDocs >0 in copyChunks, but the flush
is unnecessary.
> Delete unnecessary flush in
> Lucene90CompressingStoredFieldsWriter.copyChunks() to reduce dirty chunks
> -----------------------------------------------------------------------------------------------------
>
> Key: LUCENE-10004
> URL: https://issues.apache.org/jira/browse/LUCENE-10004
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/codecs
> Affects Versions: 8.8.2
> Reporter: kkewwei
> Priority: Major
>
> In CompressingStoredFieldsWriter.merge(): if the segment meet the following
> conditions:
> {code:java}
> else if (matchingFieldsReader.getCompressionMode() == compressionMode &&
> matchingFieldsReader.getChunkSize() == chunkSize &&
> matchingFieldsReader.getPackedIntsVersion() ==
> PackedInts.VERSION_CURRENT &&
> liveDocs == null &&
> !tooDirty(matchingFieldsReader)) {
> }
> {code}
> we will copy the the all chunk to the new fdt, before copying the chunk, we
> will flush the buffer docs if numBufferedDocs >0 in copyChunks, but the flush
> is unnecessary.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]