Skip to content

Conversation

@ianbotsf
Copy link
Contributor

Issue #

(none)

Description of changes

Fixes a bug that caused subsequent invocations of SingleFlightGroup.singleFlight to reuse previously-completed jobs even when they'd completed before the subsequent call began.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ianbotsf ianbotsf requested a review from a team as a code owner February 28, 2025 17:12
@github-actions

This comment has been minimized.

assertEquals("Foo", first)

val second = group.singleFlight { "Bar" }
assertEquals("Bar", second) // Fails; second == "Foo"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Stray comment? This command no longer fails

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep forgot to remove that.

@github-actions

This comment has been minimized.

@github-actions
Copy link

github-actions bot commented Mar 1, 2025

Affected Artifacts

Changed in size
Artifact Pull Request (bytes) Latest Release (bytes) Delta (bytes) Delta (percentage)
runtime-core-jvm.jar 827,326 827,267 59 0.01%

@ianbotsf ianbotsf merged commit 6f94c6a into main Mar 3, 2025
16 checks passed
@ianbotsf ianbotsf deleted the fix-sfg-sequential branch March 3, 2025 17:24
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.

3 participants