Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Respond correctly to stream send error #6357

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

yurishkuro
Copy link
Member

@yurishkuro yurishkuro commented Dec 14, 2024

Which problem is this PR solving?

  • Noticed by accident that apiv3 handler was ignoring stream send error

Description of the changes

  • Handle error propertly
  • Add tests
  • Remove impossible error handling from pdata converter

How was this change tested?

  • CI

Signed-off-by: Yuri Shkuro <github@ysh.us>
@yurishkuro yurishkuro requested a review from a team as a code owner December 14, 2024 00:51
@@ -155,6 +155,9 @@ func TestFindTraces(t *testing.T) {
Attributes: map[string]string{"foo": "bar"},
StartTimeMin: time.Now().Add(-2 * time.Hour),
StartTimeMax: time.Now(),
DurationMin: 1 * time.Second,
DurationMax: 2 * time.Second,
SearchDepth: 10,
Copy link
Member Author

Choose a reason for hiding this comment

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

to increase code coverage

Copy link
Collaborator

@mahadzaryab1 mahadzaryab1 left a comment

Choose a reason for hiding this comment

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

lgtm

@yurishkuro yurishkuro merged commit 9eb0170 into jaegertracing:main Dec 14, 2024
52 of 53 checks passed
@yurishkuro yurishkuro deleted the stream-error branch December 14, 2024 01:33
Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.11%. Comparing base (cd99501) to head (3fce5d0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6357      +/-   ##
==========================================
+ Coverage   96.06%   96.11%   +0.05%     
==========================================
  Files         357      357              
  Lines       20357    20355       -2     
==========================================
+ Hits        19555    19565      +10     
+ Misses        611      603       -8     
+ Partials      191      187       -4     
Flag Coverage Δ
badger_v1 9.01% <ø> (ø)
badger_v2 1.64% <ø> (ø)
cassandra-4.x-v1-manual 15.01% <ø> (ø)
cassandra-4.x-v2-auto 1.58% <ø> (ø)
cassandra-4.x-v2-manual 1.58% <ø> (ø)
cassandra-5.x-v1-manual 15.01% <ø> (ø)
cassandra-5.x-v2-auto 1.58% <ø> (ø)
cassandra-5.x-v2-manual 1.58% <ø> (ø)
elasticsearch-6.x-v1 18.70% <ø> (-0.01%) ⬇️
elasticsearch-7.x-v1 18.78% <ø> (ø)
elasticsearch-8.x-v1 18.94% <ø> (ø)
elasticsearch-8.x-v2 1.64% <ø> (ø)
grpc_v1 10.53% <ø> (+<0.01%) ⬆️
grpc_v2 7.95% <ø> (ø)
kafka-v1 9.33% <ø> (ø)
kafka-v2 1.64% <ø> (ø)
memory_v2 1.64% <ø> (+<0.01%) ⬆️
opensearch-1.x-v1 18.84% <ø> (ø)
opensearch-2.x-v1 18.84% <ø> (+<0.01%) ⬆️
opensearch-2.x-v2 1.63% <ø> (-0.01%) ⬇️
tailsampling-processor 0.45% <ø> (ø)
unittests 94.99% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants