-
Notifications
You must be signed in to change notification settings - Fork 495
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
[NOID] Fix flaky geocode server errors #3527
Conversation
} | ||
throw e; | ||
} | ||
}, (value) -> value, 20L, TimeUnit.SECONDS); |
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.
Just want to make sure I understood this correctly, this will retry to call the procedure if it gets a 502 etc until it gets a 200 for max 20 seconds? otherwise it will throw an error? :)
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.
Yes exactly :)
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 took a look at the failing tests, and both are to do with geocode, one is failing due to a 502 ;) might wanna check those out as well :)
f168be6
to
ed1ee33
Compare
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.
LGTM :)
…edures#3527) * [NOID] Fix flaky geocode server errors * [NOID] added waitForServerResponseOK in other test-cases, changed time measuring handling
…edures#3527) (#372) * [NOID] Fix flaky geocode server errors * [NOID] added waitForServerResponseOK in other test-cases, changed time measuring handling
Added
waitForServerResponseOK
to prevent sporadic OpenStreetMap server errors.See: https://github.com/neo4j-contrib/neo4j-apoc-procedures/actions/runs/4629830341/jobs/8190593821#step:7:1189