Visitar URL original
MINOR: Add tests that tagged fields are written in ascending tag order by gabriellefu · Pull Request #23717 · apache/kafka · GitHub
Skip to content

MINOR: Add tests that tagged fields are written in ascending tag order - #23717

Open
gabriellefu wants to merge 2 commits into
apache:trunkfrom
gabriellefu:ca_tag
Open

gabriellefu wants to merge 2 commits into
apache:trunkfrom
gabriellefu:ca_tag

Conversation

@gabriellefu

@gabriellefu gabriellefu commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Add tests that tagged fields are written in ascending tag order

@github-actions github-actions Bot added triage PRs from the community tests Test fixes (including flaky tests) clients small Small PRs labels Oct 5, 2026

@shayelkin shayelkin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think this tests what we expect: it verifies that the tags are written in the order they are added, which is not the same as ascending tag order.

The right properties to validate are:

  1. The tags are indeed in the expected order, which can be checked multiple ways. For example, that or every two consecutive tags t1, t2 in the message, t1 < t2, or that sorting the tags keeps their order the same, and there are no duplicates.
  2. And that all tags in expectedTags were written to the message.

@github-actions github-actions Bot removed the triage PRs from the community label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved clients small Small PRs tests Test fixes (including flaky tests)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants