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

Send subsegments separately from segments when the serialized size is larger than the UDP packet size limit #344

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

Kurru
Copy link
Contributor

@Kurru Kurru commented Jul 22, 2022

Issue #, if available:
#26

Description of changes:
Send subsegments separately from segments when the serialized size is larger than the UDP packet size limit. This is similar to how the DefaultStreamingStrategy behaves.

Segments occasionally can be too large and contain hundreds subsegments, despite the behavior of the DefaultStreamingStrategy class, when running with multiple threads. It is suspected that race conditions can lead to subsegments building up and not getting pushed into xray daemon by the time the segment is ended.

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

@Kurru Kurru requested a review from a team as a code owner July 22, 2022 07:00
@Kurru Kurru force-pushed the send-subsegments-when-large branch 2 times, most recently from 9410406 to 9554acb Compare July 27, 2022 00:22
…ger than the UDP packet size limit. This is similar to how the DefaultStreamingStrategy behaves.

Segments occasionally can be too large and contain hundreds subsegments, despite the behavior of the DefaultStreamingStrategy class, when running with multiple threads. It is suspected that race conditions can lead to subsegments building up and not getting pushed into xray daemon by the time the segment is ended.
@Kurru Kurru force-pushed the send-subsegments-when-large branch from 9554acb to a435ea1 Compare July 27, 2022 00:23
@codecov-commenter
Copy link

codecov-commenter commented Jul 27, 2022

Codecov Report

Merging #344 (a435ea1) into master (6f29232) will decrease coverage by 0.12%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #344      +/-   ##
============================================
- Coverage     58.95%   58.82%   -0.13%     
  Complexity     1207     1207              
============================================
  Files           131      131              
  Lines          5065     5076      +11     
  Branches        592      594       +2     
============================================
  Hits           2986     2986              
- Misses         1806     1817      +11     
  Partials        273      273              
Impacted Files Coverage Δ
...n/java/com/amazonaws/xray/emitters/UDPEmitter.java 23.40% <0.00%> (-7.16%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6f29232...a435ea1. Read the comment docs.

@wangzlei wangzlei merged commit 3692320 into aws:master Jul 27, 2022
@Kurru Kurru deleted the send-subsegments-when-large branch July 27, 2022 23:45
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

3 participants