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

fix(core): fixes custom recorder race condition with servlet filter #53

Merged

Conversation

chrisradek
Copy link
Contributor

Issue #, if available:
#51

Description of changes:
Updates AWSXRayServletFilter and AWSXRayServletAsyncListener to lazily retrieve the global xray recorder if none was provided at instantiation.

This fixes a race condition in the following scenario caused when the global recorder is set to a custom recorder after the AWSXRayServletFilter is instantiated. In this scenario, the global recorder that existed when the servletFilter was instantiated would be used instead of the custom recorder.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…not be used if set after the AWSXrayServletFilter was instantiated
@haotianw465 haotianw465 merged commit 35d99a5 into aws:master Jan 14, 2019
@chrisradek chrisradek deleted the fix-custom-recorder-race-condition branch January 15, 2019 00:24
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

Successfully merging this pull request may close these issues.

None yet

2 participants