Skip to content

Conversation

jim0987795064
Copy link
Contributor

@jim0987795064 jim0987795064 commented Oct 13, 2025

  • Changes: Replace the long field commitCount in MockProducer with an AtomicLong to ensure thread-safe updates under concurrent access.

@github-actions github-actions bot added triage PRs from the community producer build Gradle build or GitHub Actions clients small Small PRs labels Oct 13, 2025
private boolean producerFenced;
private boolean sentOffsets;
private long commitCount = 0L;
private final AtomicLong commitCount = new AtomicLong(0);
Copy link
Member

Choose a reason for hiding this comment

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

This change does not guarantee that MockProducer is thread-safe

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

Labels

build Gradle build or GitHub Actions ci-approved clients producer small Small PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants