Skip to content

Conversation

@TobiasBengtsson
Copy link
Contributor

If we are unlucky with an APCu eviction at the wrong moment, and no other thread writing to the same metric, we can get stuck in an infinite loop where apcu_fetch will always return false.

Fix by applying the same strategy as if apcu_fetch was false in the first place (before doing compare-and-swap)

TobiasBengtsson and others added 2 commits November 9, 2023 22:50
If we are unlucky with an APCu eviction at the wrong moment, and no
other thread writing to the same metric, we can get stuck in an
infinite loop where apcu_fetch will always return false.

Fix by applying the same strategy as if apcu_fetch was false in the
first place (before doing compare-and-swap)

Signed-off-by: Tobias Bengtsson <me@tobiasbengtsson.se>
Copy link
Member

@LKaemmerling LKaemmerling left a comment

Choose a reason for hiding this comment

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

Hey @TobiasBengtsson,

thank you! I have a small question.

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