You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "jpountz (via GitHub)" <gi...@apache.org> on 2023/09/20 09:04:06 UTC

[GitHub] [lucene] jpountz opened a new issue, #12572: Make IndexWriter#flushNextBuffer flush deletes too?

jpountz opened a new issue, #12572:
URL: https://github.com/apache/lucene/issues/12572

   ### Description
   
   `IndexWriter#flushNextBuffer()` is a convenient way to control indexing buffer sizes across multiple index writers. Unfortunately, it seems that it only ever flushes DWPTs, and never deletes, even though deletes may use a very significant amount of the indexing buffer.
   
   Can we enhance `flushNextBuffer()` to flush deletes too when appropriate?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] Make IndexWriter#flushNextBuffer flush deletes too? [lucene]

Posted by "s1monw (via GitHub)" <gi...@apache.org>.
s1monw commented on issue #12572:
URL: https://github.com/apache/lucene/issues/12572#issuecomment-1749458532

   After digging into this and opening a PR for it I think this is unnecessary. I tried to beef up tests for this and this caused me to refresh my knowledge how stuff works down in the IW / DWPT. Every time we flush a DWPT we do freeze the global deletes buffer and push it to the queue. Which essentially means we are applying deletes no matter how much memory it consumes. Digging deeper I think we can / should do some cleanups in the IW regarding deletes. I did start with good / better testing and will come up with some ideas in different PRs/Issues


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] Make IndexWriter#flushNextBuffer flush deletes too? [lucene]

Posted by "s1monw (via GitHub)" <gi...@apache.org>.
s1monw commented on issue #12572:
URL: https://github.com/apache/lucene/issues/12572#issuecomment-1750542067

   nah man, it was the right intention. good exercise for me to refresh knowledge 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] Make IndexWriter#flushNextBuffer flush deletes too? [lucene]

Posted by "s1monw (via GitHub)" <gi...@apache.org>.
s1monw closed issue #12572: Make IndexWriter#flushNextBuffer flush deletes too?
URL: https://github.com/apache/lucene/issues/12572


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


[GitHub] [lucene] s1monw commented on issue #12572: Make IndexWriter#flushNextBuffer flush deletes too?

Posted by "s1monw (via GitHub)" <gi...@apache.org>.
s1monw commented on issue #12572:
URL: https://github.com/apache/lucene/issues/12572#issuecomment-1729849466

   I think this makes sense to me to also flush deletes if necessary.  I think this is as simple as calling `applyAllDeletes()` in `flushOneDWPT()` but we need to process events in IW as well so I think it's necessary to call `processEvents(boolean)` in IW if we applied deletes selectively.... pretty straight forward IMO. +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] Make IndexWriter#flushNextBuffer flush deletes too? [lucene]

Posted by "jpountz (via GitHub)" <gi...@apache.org>.
jpountz commented on issue #12572:
URL: https://github.com/apache/lucene/issues/12572#issuecomment-1750526300

   Thank you Simon for looking into it and sorry for putting you on the wrong track.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org