Skip to content

Small enhancements to IndexWriter's InfoStream to support segment tracing #14837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikemccand
Copy link
Member

Some small fixes to IndexWriter's InfoStream logging, uncovered when working on the new segment tracing tool from luceneutil (example: https://githubsearch.mikemccandless.com/segments_15.html). I've been sitting on these changes in my main dev area and finally got around to making a PR before I lose track of them, phew!

Details:

  • KNN merging was logging "start/done" multiple times and then I realized it was for a different field each time, so I added field name
  • Thread name was duplicated in a single line at end of full flush
  • Defensive change: don't invoke merge-on-commit logic if merge policy returns empty list of merges
  • I enhanced merge-on-commit logging to state how many merges it will do, and whether all merges completed in the timeout window or not
  • TMP now also logs its deletesPctAllowed and forceMerteDeletesPctAllowed, and more details when it kicks off merge selection

when working on the new segment tracing tool from luceneutil
(example: https://githubsearch.mikemccandless.com/segments_15.html):
  * KNN merging was logging "start/done" multiple times and then I realized it was
    for a different field each time, so I added field name
  * Thread name was duplicated in a single line at end of full flush
  * Defensive change: don't invoke merge-on-commit logic if merge policy returns
    empty list of merges
  * I enhanced merge-on-commit logging to state how many merges it will do,
    and whether all merges completed in the timeout window or not
  * TMP now also logs its deletesPctAllowed and forceMerteDeletesPctAllowed, and
    more details when it kicks off merge selection
Copy link

This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR.

@msokolov
Copy link
Contributor

Seems a bit weird to include a merge policy change in a PR that is mostly about changing logging, but OK. I think I would be happier if the PR was entitled "Don't invoke merge-on-commit logic if merge policy returns empty list of merges" and secondarily patched infoStream logging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants