Skip to content
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

UploadDocs failure should throw an Exception #87

Open
nginthfs opened this issue Jan 8, 2024 · 5 comments
Open

UploadDocs failure should throw an Exception #87

nginthfs opened this issue Jan 8, 2024 · 5 comments

Comments

@nginthfs
Copy link
Contributor

nginthfs commented Jan 8, 2024

Currently, when UploadDocs fails, we just log the error and go on with the test. This can throw off test results when comparing among Solr setups, since both setups may end up with more/less docs in their collections. To fix this, I think UploadDocs should throw an Exception if it receives a non-200 status code, or at least "fatal" status codes such as 404. Then, callers should handle this by ending the test preemptively (we may not have to change the callers' code, not sure!).

See:

@hiteshk25
Copy link
Contributor

@nginthfs is there any retry for that?

@nginthfs
Copy link
Contributor Author

nginthfs commented Jan 8, 2024

I don't believe that there is. I think what happens now is that the doc gets thrown away and the indexing benchmark continues on.

@patsonluk
Copy link
Contributor

I know sometimes there could be bad fields in some docs that caused indexing failure, tho that one is not 404, probably 500 i think

@nginthfs
Copy link
Contributor Author

nginthfs commented Jan 9, 2024

Yeah 500s should probably also fail the task, so we can identify the issue and fix it. The only thing that shouldn't fail the task IMO are timeouts or 429s, which should be retried (although retries are a bigger issue than this, maybe we could add that on as a follow up issue).

@chatman
Copy link
Collaborator

chatman commented Jan 9, 2024 via email

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

No branches or pull requests

4 participants