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

[NOID] Fix flaky geocode server errors #3527

Merged
merged 2 commits into from
Apr 14, 2023
Merged

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented Apr 6, 2023

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

@vga91 vga91 added to-cherry-pick issues related to commits to cherry-pick 4.4 core-functionality Adding new procedure, function or signature to APOC core labels Apr 6, 2023
}
throw e;
}
}, (value) -> value, 20L, TimeUnit.SECONDS);
Copy link
Contributor

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? :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes exactly :)

Copy link
Contributor

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 :)

@vga91 vga91 force-pushed the fix-flaky-geocode-server-errors branch from f168be6 to ed1ee33 Compare April 13, 2023 18:31
Copy link
Contributor

@gem-neo4j gem-neo4j left a comment

Choose a reason for hiding this comment

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

LGTM :)

@vga91 vga91 merged commit 7a9fec4 into 4.4 Apr 14, 2023
@vga91 vga91 deleted the fix-flaky-geocode-server-errors branch April 14, 2023 12:16
vga91 added a commit to neo4j/apoc that referenced this pull request Apr 14, 2023
…edures#3527)

* [NOID] Fix flaky geocode server errors

* [NOID] added waitForServerResponseOK in other test-cases, changed time measuring handling
vga91 added a commit to neo4j/apoc that referenced this pull request Apr 14, 2023
…edures#3527) (#372)

* [NOID] Fix flaky geocode server errors

* [NOID] added waitForServerResponseOK in other test-cases, changed time measuring handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.4 core-functionality Adding new procedure, function or signature to APOC core to-cherry-pick issues related to commits to cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants