Skip to content

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

Merged
haotianw465 merged 1 commit into
aws:masterfrom
chrisradek:fix-custom-recorder-race-condition
Jan 14, 2019
Merged

fix(core): fixes custom recorder race condition with servlet filter#53
haotianw465 merged 1 commit into
aws:masterfrom
chrisradek:fix-custom-recorder-race-condition

Conversation

@chrisradek

Copy link
Copy Markdown
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.

2 participants