Skip to content

fix(write): preserve iterator records with default tags - #742

Open
pcbeingused33 wants to merge 2 commits into
influxdata:masterfrom
pcbeingused33:fix/write-iterator-default-tags
Open

pcbeingused33 wants to merge 2 commits into
influxdata:masterfrom
pcbeingused33:fix/write-iterator-default-tags

Conversation

@pcbeingused33

Copy link
Copy Markdown
Contributor

Proposed Changes

The default-tag pass consumes generator records before the writer can serialize them. The async writer can then return success without making a POST.

Apply all configured tags to each record as the writer consumes its iterable. The sync, async, and batching writers use the resulting iterable, including when an iterator is nested inside a list.

The regression tests mock the write service and verify that async, synchronous, and batching writes send both points with both default tags. Before the fix, none of the three modes sent a request.

Checklist

  • CHANGELOG.md updated
  • A test has been added if appropriate
  • Commit messages are conventional

This change was prepared with the assistance of an AI coding assistant.

@codecov-commenter

codecov-commenter commented Dec 3, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.73%. Comparing base (af36df1) to head (bccc0d9).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #742      +/-   ##
==========================================
- Coverage   90.76%   90.73%   -0.03%     
==========================================
  Files          41       41              
  Lines        3595     3584      -11     
==========================================
- Hits         3263     3252      -11     
  Misses        332      332              

☔ View full report in Codecov by Harness.
📢 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.

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