Skip to content

[core] Make SimpleCounter thread-safe - #8942

Merged
JingsongLi merged 1 commit into
apache:masterfrom
lilei1128:fix-metric-counter
Jul 30, 2026
Merged

[core] Make SimpleCounter thread-safe#8942
JingsongLi merged 1 commit into
apache:masterfrom
lilei1128:fix-metric-counter

Conversation

@lilei1128

Copy link
Copy Markdown
Contributor

Purpose

Use AtomicLong in SimpleCounter to prevent lost updates and ensure visibility
when metrics are updated and read concurrently.

Tests

No

@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit bebc564 into apache:master Jul 30, 2026
12 checks passed
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