-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NameOwnerChanged events can be lost when starting a service #12956
Labels
pid1
regression ⚠️
A bug in something that used to work correctly and broke through some recent commit
Comments
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Jul 4, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Revert back to the synchronous version to avoid this occurring. Fixes: systemd#12956
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Jul 11, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Catch the installed_callback and emulate a NameOwnerChanged to the name currently on the bus when this happens. Fixes: systemd#12956
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Jul 11, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Catch the installed_callback and emulate a NameOwnerChanged to the name currently on the bus when this happens. Fixes: systemd#12956
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Jul 12, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Emulate a callback by also queuing a GetNameOwner when the match is installed. Fixes: systemd#12956
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Jul 24, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Emulate a callback by also queuing a GetNameOwner when the match is installed. Fixes: systemd#12956
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Aug 12, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Emulate a callback by also queuing a GetNameOwner when the match is installed. Fixes: systemd#12956
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Aug 12, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Emulate a callback by also queuing a GetNameOwner when the match is installed. Fixes: systemd#12956
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Aug 13, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Emulate a callback by also queuing a GetNameOwner when the match is installed. Fixes: systemd#12956
mattiasj-axis
added a commit
to mattiasj-axis/systemd
that referenced
this issue
Aug 13, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Emulate a callback by also queuing a GetNameOwner when the match is installed. Fixes: systemd#12956
poettering
pushed a commit
that referenced
this issue
Aug 14, 2019
In high load scenarios it is possible for services to be started before the NameOwnerChanged signal is properly installed. Emulate a callback by also queuing a GetNameOwner when the match is installed. Fixes: #12956
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
pid1
regression ⚠️
A bug in something that used to work correctly and broke through some recent commit
systemd version the issue has been seen with
Used distribution
Expected behaviour you didn't see
Unexpected behaviour you saw
75152a4 changed the NameOwnerChanged event to be installed asynchronously.
Since v239 we have observed occasional failure of one of our services to start, almost exclusively in specific test scenarios which causes additional load on the system during bootup.
An apparently unrelated change caused this to be near 100% reproducible on one of our (least powerful) systems. After debugging we have observed that it takes ~5 seconds from calling
add_match_asyncuntil theinstall_callbackgets called, and between then the service has been started and the NameOwnerChanged event already fired off.Reverting back to
sd_bus_add_matchcauses all failures to disappear.The text was updated successfully, but these errors were encountered: