-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
[core/indexer] Reverts PR #25754 and add unit tests #28702
[core/indexer] Reverts PR #25754 and add unit tests #28702
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
@@ -630,26 +630,18 @@ def test_incremental_delete( | |||
} | |||
|
|||
|
|||
def test_incremental_indexing_with_batch_size( | |||
def test_incremental_delete_with_same_source( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, the diff in test_indexing.py
is very confusing, but test_incremental_delete_with_same_source
is the only test case I newly created. I recommend reviewing the diff for each commit.
"num_deleted": 0, | ||
"num_skipped": 4, | ||
"num_deleted": 1, | ||
"num_skipped": 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I confirmed that the original logic returned num_deleted
= 0, which is an obviously unexpected result.
Related to PR: #25754 |
I reported the bug 2 weeks ago here: #28447
I believe this is a critical bug for the indexer, so I submitted a PR to revert the change and added unit tests to prevent similar bugs from being introduced in the future.
@eyurtsev Could you check this?