Skip to content

Fix leaking Eager Activity Reservation#1452

Merged
Spikhalskiy merged 1 commit intotemporalio:masterfrom
Spikhalskiy:fix-leaking-eager-activity-reservation
Sep 24, 2022
Merged

Fix leaking Eager Activity Reservation#1452
Spikhalskiy merged 1 commit intotemporalio:masterfrom
Spikhalskiy:fix-leaking-eager-activity-reservation

Conversation

@Spikhalskiy
Copy link
Copy Markdown
Contributor

@Spikhalskiy Spikhalskiy commented Sep 24, 2022

Recently added eager activity dispatch leads to a leaky semaphore. If an activity is actually eagerly dispatched, the semaphore gets incremented twice.

Eager activity dispatch functionality needs better tests for potential semaphore leaks.

@Spikhalskiy Spikhalskiy added the bug Something isn't working label Sep 24, 2022
@Spikhalskiy Spikhalskiy added this to the 1.17.0 milestone Sep 24, 2022
@Spikhalskiy Spikhalskiy self-assigned this Sep 24, 2022
Copy link
Copy Markdown
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

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

I warned you! 😆

Tricky to get these right.

@Spikhalskiy Spikhalskiy force-pushed the fix-leaking-eager-activity-reservation branch from 2a1f1c3 to 216f6e8 Compare September 24, 2022 00:12
@Spikhalskiy Spikhalskiy force-pushed the fix-leaking-eager-activity-reservation branch 3 times, most recently from 402f962 to 4c960f6 Compare September 24, 2022 00:50
@Spikhalskiy Spikhalskiy force-pushed the fix-leaking-eager-activity-reservation branch from 4c960f6 to fa9b3be Compare September 24, 2022 00:52
@Spikhalskiy Spikhalskiy merged commit bcd08f4 into temporalio:master Sep 24, 2022
@Spikhalskiy Spikhalskiy deleted the fix-leaking-eager-activity-reservation branch September 24, 2022 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants