Skip to content

Fix test bug in TestTopDocsCollector and TestTopFieldCollector#15495

Merged
jainankitk merged 1 commit intoapache:mainfrom
gaobinlong:fix_test_bug
Apr 10, 2026
Merged

Fix test bug in TestTopDocsCollector and TestTopFieldCollector#15495
jainankitk merged 1 commit intoapache:mainfrom
gaobinlong:fix_test_bug

Conversation

@gaobinlong
Copy link
Copy Markdown
Contributor

@gaobinlong gaobinlong commented Dec 10, 2025

Fix the following bugs in TestTopDocsCollector and TestTopFieldCollector:

  1. If leafCollector.collect(4), the documents count in this segment should be greater than 4.
  2. For a new leafCollector, the collected doc id should starts from 0 and then 1, and same doc id shouldn't be collected again.

The test result won't be changed, but this PR makes the test cases more clear.

Signed-off-by: Binlong Gao <gbinlong@amazon.com>
@dweiss dweiss added the skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check. label Dec 10, 2025
@github-actions
Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions Bot added the Stale label Dec 25, 2025
@gaobinlong
Copy link
Copy Markdown
Contributor Author

Hi @jainankitk, could you help to review this PR? Thanks!

@github-actions github-actions Bot removed the Stale label Mar 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution!

@github-actions github-actions Bot added the Stale label Mar 21, 2026
Copy link
Copy Markdown
Contributor

@jainankitk jainankitk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look valid and make the test intent clearer!

@jainankitk jainankitk merged commit e5aad7e into apache:main Apr 10, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:core/search skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check. Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants