Merge pull request #12437 from rabbitmq/rabbitmq-server-12422

By @ayanda-D: make sure (non-replicated) CQs (classic queues) emit leader and members metrics, just like replicated QQs
This commit is contained in:
Michael Klishin 2024-10-03 01:52:02 -04:00 committed by GitHub
commit bc1e0ad2ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View File

@ -96,7 +96,7 @@ jobs:
https://builds.hex.pm
https://cdn.jsdelivr.net/hex
- name: AUTHENTICATE TO GOOGLE CLOUD
uses: google-github-actions/auth@v2.1.5
uses: google-github-actions/auth@v2.1.6
with:
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }}
- name: BUILD SECONDARY UMBRELLA ARCHIVE

View File

@ -73,7 +73,7 @@ jobs:
run: |
echo "value=bazel-repo-cache-${{ hashFiles('MODULE.bazel') }}" | tee -a $GITHUB_OUTPUT
- name: AUTHENTICATE TO GOOGLE CLOUD
uses: google-github-actions/auth@v2.1.5
uses: google-github-actions/auth@v2.1.6
with:
credentials_json: ${{ secrets.REMOTE_CACHE_CREDENTIALS_JSON }}
- name: REPO CACHE

View File

@ -119,7 +119,9 @@
arguments,
owner_pid,
exclusive,
user_who_performed_action
user_who_performed_action,
leader,
members
]).
-define(INFO_KEYS, [pid | ?CREATION_EVENT_KEYS ++ ?STATISTICS_KEYS -- [name, type]]).
@ -1083,6 +1085,8 @@ i(auto_delete, #q{q = Q}) -> amqqueue:is_auto_delete(Q);
i(arguments, #q{q = Q}) -> amqqueue:get_arguments(Q);
i(pid, _) ->
self();
i(leader, State) -> node(i(pid, State));
i(members, State) -> [i(leader, State)];
i(owner_pid, #q{q = Q}) when ?amqqueue_exclusive_owner_is(Q, none) ->
'';
i(owner_pid, #q{q = Q}) ->