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

Account for missing index #656

Merged
merged 1 commit into from
Oct 31, 2024
Merged

Account for missing index #656

merged 1 commit into from
Oct 31, 2024

Conversation

coreyogburn
Copy link
Contributor

During testing our machines don't have a mapping specified at /nsm/custom-mappings/ip-descriptions.csv so the index won't exist.

MSearch has been refactored to return the first search response error as an error. If we need to support individual response errors in the future we'll cross that bridge when we come to it.

The utilhandler has been updated to ignore "no such index" errors as that is not a sign of failure for the IP lookup. We now log that the index was not found before continuing.

During testing our machines don't have a mapping specified at /nsm/custom-mappings/ip-descriptions.csv so the index won't exist.

MSearch has been refactored to return the first search response error as an error. If we need to support individual response errors in the future we'll cross that bridge when we come to it.

The utilhandler has been updated to ignore "no such index" errors as that is not a sign of failure for the IP lookup. We now log that the index was not found before continuing.
@coreyogburn coreyogburn merged commit 56c1f5f into 2.4/dev Oct 31, 2024
3 checks passed
@coreyogburn coreyogburn deleted the cogburn/ip-mapping-fix branch October 31, 2024 16:18
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants