Skip to content

subscription: Added context cancellation and sync to subscription set#480

Merged
kolyshkin merged 1 commit intocoreos:mainfrom
NotSoFancyName:subscription-set-fix
Jan 7, 2026
Merged

subscription: Added context cancellation and sync to subscription set#480
kolyshkin merged 1 commit intocoreos:mainfrom
NotSoFancyName:subscription-set-fix

Conversation

@NotSoFancyName
Copy link
Contributor

Now it is possible to cancel unit subsciptions with context which eliminates existing goroutine leak
Added synchronization primitive for SubscriptioSet, now it should it be possible to add new units to the set after executing SubscribeContext

Fixes: #474

@NotSoFancyName NotSoFancyName changed the title subsciption: Added context cancellation and sync to subscription set subscription: Added context cancellation and sync to subscription set Oct 24, 2025
@NotSoFancyName
Copy link
Contributor Author

Valid points

@NotSoFancyName NotSoFancyName force-pushed the subscription-set-fix branch 3 times, most recently from 4f5dc49 to 04ca6fb Compare October 30, 2025 11:23
Copy link
Collaborator

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

@kolyshkin PTAL

@NotSoFancyName
Copy link
Contributor Author

@kolyshkin
Could you take a look?
Sorry for bothering you again

@NotSoFancyName
Copy link
Contributor Author

@kolyshkin 🙏 🥺

Copy link
Collaborator

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

lgtm except for a minor docstring nit

Copy link
Collaborator

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

lgtm

@kolyshkin kolyshkin force-pushed the subscription-set-fix branch from b061427 to bb668bb Compare January 7, 2026 01:42
Fixes: coreos#474

Signed-off-by: Volodymyr Pankin <volopank@gmail.com>
@kolyshkin kolyshkin force-pushed the subscription-set-fix branch from bb668bb to dc1b23d Compare January 7, 2026 01:48
@kolyshkin kolyshkin enabled auto-merge (rebase) January 7, 2026 01:48
@kolyshkin kolyshkin merged commit f324d7d into coreos:main Jan 7, 2026
20 checks passed
@kolyshkin kolyshkin added this to the v22.7.0 milestone Jan 28, 2026
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.

Race in dbus

3 participants