-
Notifications
You must be signed in to change notification settings - Fork 6
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
(RHEL-73780) Stash the subscriber list when we disconenct from the bus #52
Open
jamacku
wants to merge
14
commits into
redhat-plumbers:main
Choose a base branch
from
jamacku:RHEL-73780-stash-sub-list
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+224
−135
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
changed the title
Stash the subscriber list when we disconenct from the bus
(RHEL-73780) Stash the subscriber list when we disconenct from the bus
Jan 15, 2025
Commit validationTracker - RHEL-73780 The following commits meet all requirements
Tracker validationSuccess🟢 Tracker RHEL-73780 has set desired product: Pull Request validationFailed🔴 Review - Missing review from a member (1 required) Success🟢 CI - All checks have passed |
jamacku
force-pushed
the
RHEL-73780-stash-sub-list
branch
from
January 16, 2025 08:15
cb3f466
to
823f617
Compare
jamacku
force-pushed
the
RHEL-73780-stash-sub-list
branch
from
January 16, 2025 09:54
823f617
to
6d36a4c
Compare
/packit test |
If we unexpectly disconnect from the bus, systemd would end up dropping the list of subscribers, which breaks the ability of clients like logind to monitor the state of units. Stash the list of subscribers into the deserialized state in the event of a disconnect so that when we recover we can renew the broken subscriptions. (cherry picked from commit 8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98) Resolves: RHEL-73780
Now that this field may get populated at runtime, the deserialized name is misleading. Change the name to reflect its updated purpose. (cherry picked from commit e1315a621ae26473fcc9cd0d6013836f5f498d40) Resolves: RHEL-73780
(cherry picked from commit ab33edb05b7d4c90fb80f46aa6b951c505048798) Resolves: RHEL-73780
(cherry picked from commit e3d37628aabff92e4b756e63ef0a6cd4569ce743) Resolves: RHEL-73780
… and bus-get-properties, respectively (cherry picked from commit 91080bc9733b5b2478bfc0ed58f6a7ae5da7e639) Resolves: RHEL-73780
(cherry picked from commit 3f03d39ca3b2f25f521342f2b0e49f60c51246e1) Resolves: RHEL-73780
(cherry picked from commit 38a2c2bf6a89def24007c0dac529c07da713abfb) Resolves: RHEL-73780
Follow-up for 8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98 While at it, turn the retval check for sd_bus_track_count_name() into assertion, given we're working with already established tracks (service_name_is_valid() should never yield false in this case). Addresses systemd/systemd#35406 (comment) (cherry picked from commit 33eeea4128f31df7ab4bd8866b582062d70114ae) Resolves: RHEL-73780
(cherry picked from commit a7516260b32dd26fb61b1dd702b9bc718cd420f9) Resolves: RHEL-73780
bus_init_api() now does this internally (after 8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98). (cherry picked from commit af0e10354e567bfd0b9521376b2aad55f12a4e3d) Resolves: RHEL-73780
(cherry picked from commit a9a8d2e12fe01b928135895f00c5bca465b7d13b) Resolves: RHEL-73780
(cherry picked from commit 1446e3c3921067e3a6228a3e172b5dfd95437136) Resolves: RHEL-73780
…load() There's zero explanation why it got (spuriously) removed in 8402ca04d1a063c3d8a9e3d5c16df8bb8778ae98... (cherry picked from commit 34f4b817f67b002eae7e2c09b19bf4b66c4791b6) Resolves: RHEL-73780
``` In file included from ../src/shared/bus-get-properties.c:4: ../src/shared/bus-message-util.h:22:60: error: unknown type name ‘Set’ 22 | int bus_message_append_string_set(sd_bus_message *m, const Set *s); | ^~~ ../src/shared/bus-get-properties.c: In function ‘bus_property_get_string_set’: ../src/shared/bus-get-properties.c:178:9: error: unknown type name ‘Set’ 178 | Set **s = ASSERT_PTR(userdata); | ^~~ ``` follow-up to systemd/systemd@91080bc (cherry picked from commit ca97d48bd425685d4ec20397812c3b1b006f5070) Resolves: RHEL-73780
jamacku
force-pushed
the
RHEL-73780-stash-sub-list
branch
from
January 17, 2025 07:50
6d36a4c
to
954b158
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.