Skip to content

[pdata] Fix copying of optional fields when the source is unset #13268

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

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Jun 25, 2025

If destination has an optional field set to some value but source has it unset, we need to unset the field on the destination instead of keeping the old value.

Found this bug while working on #13267

@dmitryax dmitryax requested review from mx-psi, dmathieu, a team and bogdandrutu as code owners June 25, 2025 05:30
@dmitryax dmitryax force-pushed the pdata-fix-optional-fields-copy branch from fe0ba90 to 8b2cc8b Compare June 25, 2025 05:40
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.58%. Comparing base (6aa2b81) to head (d90fa7e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13268      +/-   ##
==========================================
- Coverage   91.59%   91.58%   -0.01%     
==========================================
  Files         522      522              
  Lines       29145    29161      +16     
==========================================
+ Hits        26695    26707      +12     
- Misses       1933     1936       +3     
- Partials      517      518       +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

dmitryax added a commit to dmitryax/opentelemetry-collector that referenced this pull request Jun 26, 2025
@dmitryax dmitryax force-pushed the pdata-fix-optional-fields-copy branch from 8b2cc8b to d90fa7e Compare June 27, 2025 00:12
@bogdandrutu bogdandrutu added this pull request to the merge queue Jun 27, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 27, 2025
@mx-psi mx-psi added this pull request to the merge queue Jun 27, 2025
Merged via the queue into open-telemetry:main with commit 1440a98 Jun 27, 2025
58 of 59 checks passed
@dmitryax dmitryax deleted the pdata-fix-optional-fields-copy branch June 30, 2025 03:07
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.

3 participants