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-241: add TopicEventListener / topic events for the BrokerService #19153
Conversation
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.
Very good.
I only added one request about allowing the listener to throw exceptions in the BEFORE stage.
pulsar-broker/src/test/java/org/apache/pulsar/broker/TopicEventsListenerTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/TopicEventsListener.java
Show resolved
Hide resolved
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.
I think we need a PIP to add such a new interface.
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/TopicEventsListener.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
we should VOTE the PIP before merging this change |
Codecov Report
@@ Coverage Diff @@
## master #19153 +/- ##
=============================================
+ Coverage 47.89% 62.10% +14.21%
+ Complexity 10871 3615 -7256
=============================================
Files 713 1901 +1188
Lines 69730 137853 +68123
Branches 7496 15131 +7635
=============================================
+ Hits 33394 85612 +52218
- Misses 32631 44375 +11744
- Partials 3705 7866 +4161
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
This is a great improvement! Good work @dlg99.
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
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.
Good work!
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/TopicEventsDispatcher.java
Show resolved
Hide resolved
@BewareMyPower Can you pls take another look? We have enough binding votes on PIP-241 voting thread. |
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/TopicEventsDispatcher.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/TopicEventsDispatcher.java
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/broker/TopicEventsListenerTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/broker/TopicEventsListenerTest.java
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/broker/TopicEventsListenerTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/test/java/org/apache/pulsar/broker/TopicEventsListenerTest.java
Outdated
Show resolved
Hide resolved
I have completed this round of review, PTAL. |
pulsar-broker/src/test/java/org/apache/pulsar/broker/TopicEventsListenerTest.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
…erService (apache#19153) (cherry picked from commit 3e44d1e)
…erService (apache#19153) (#161) * [improve] PIP-241: add TopicEventListener / topic events for the BrokerService (apache#19153) (cherry picked from commit 3e44d1e) --------- Co-authored-by: Andrey Yegorov <andrey.yegorov@datastax.com>
Motivation
Topic events for KOP
PIP-241: #19224
Modifications
Added TopicEventsListener interface, topic events dispatching for the BrokerService
Verifying this change
This change added unit tests
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
Added applicable JavaDoc
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: dlg99#7