Skip to content
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

[improve][pip] PIP-347: Add role field in consumer's stat #22562

Merged
merged 9 commits into from May 16, 2024

Conversation

thetumbled
Copy link
Contributor

@thetumbled thetumbled commented Apr 23, 2024

Motivation

By setting config allowAutoSubscriptionCreation=true, we allow user to create subscriptions automatically if user have the consume permission.
We have a strong need to trace back the owner of a specific subscription, but currently there is no such way to achieve that.

Modifications

Add field appId in the stats response, which contains role info when cluster use JWT.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: thetumbled#48

@github-actions github-actions bot added the doc-required Your PR changes impact docs and you will update later. label Apr 23, 2024
@thetumbled
Copy link
Contributor Author

thetumbled commented Apr 23, 2024

@thetumbled thetumbled changed the title [improve] [broker] add role for consumer stat [improve][pip] PIP-347: add role field in consumer's stat Apr 25, 2024
@dao-jun
Copy link
Member

dao-jun commented May 14, 2024

@thetumbled Please resolve conflicts

# Conflicts:
#	pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Consumer.java
@thetumbled
Copy link
Contributor Author

@thetumbled Please resolve conflicts

Done, thank you.

@BewareMyPower BewareMyPower dismissed their stale review May 14, 2024 12:05

The vote of PIP passed

@github-actions github-actions bot added the PIP label May 15, 2024
@thetumbled
Copy link
Contributor Author

Could you help to review? thank you. @lhotari @Technoboy- @codelipenghui

@thetumbled
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@thetumbled
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@Technoboy- Technoboy- changed the title [improve][pip] PIP-347: add role field in consumer's stat [improve][pip] PIP-347: Add role field in consumer's stat May 16, 2024
@Technoboy- Technoboy- merged commit f3e52b5 into apache:master May 16, 2024
51 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client doc-required Your PR changes impact docs and you will update later. PIP ready-to-test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants