-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[PIP-82] [pulsar-broker] CRUD support for ResourceGroup #10218
[PIP-82] [pulsar-broker] CRUD support for ResourceGroup #10218
Conversation
/pulsarbot run-failure-checks |
4 similar comments
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
@merlimat Could you take a look at this PR when you get a chance, in the meantime i will continue to try re-running the tests to get a pass. Thanks. |
dcbb1aa
to
de29420
Compare
/pulsarbot run-failure-checks |
@@ -101,6 +104,13 @@ public Policies deserialize(String path, byte[] content) throws Exception { | |||
} | |||
}; | |||
|
|||
this.resourcegroupsCache = new ZooKeeperDataCache<ResourceGroup>(cache) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're moving towards having all accesses through the metadata store API, is there a way to avoid this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching this, removed it.
|
||
import java.util.Objects; | ||
|
||
public class ResourceGroup { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use @Data
annotation from Lombok to automatically generate the constructors, hashcode, equals and toString methods. (and mark the fields as private)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done,
Motivation
PIP-82 adds support for distributed resource quota enforcement at a tenant, namespace or topic level.
Modifications
Verifying this change
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation