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:
		
						commit
						bc1e0ad2ab
					
				|  | @ -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 | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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}) -> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue