-
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
[fix] [broker] Fix configurationMetadataSyncEventTopic is marked supporting dynamic setting, but not implemented #22684
[fix] [broker] Fix configurationMetadataSyncEventTopic is marked supporting dynamic setting, but not implemented #22684
Conversation
pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
Outdated
Show resolved
Hide resolved
...r-broker/src/main/java/org/apache/pulsar/broker/service/PulsarMetadataEventSynchronizer.java
Outdated
Show resolved
Hide resolved
...r-broker/src/main/java/org/apache/pulsar/broker/service/PulsarMetadataEventSynchronizer.java
Outdated
Show resolved
Hide resolved
...ar-broker/src/test/java/org/apache/pulsar/broker/service/DifferentMetadataStoreTestBase.java
Outdated
Show resolved
Hide resolved
pulsar-client-api/src/main/java/org/apache/pulsar/client/api/AsyncCloseable.java
Outdated
Show resolved
Hide resolved
...r-broker/src/main/java/org/apache/pulsar/broker/service/PulsarMetadataEventSynchronizer.java
Show resolved
Hide resolved
...r-broker/src/main/java/org/apache/pulsar/broker/service/PulsarMetadataEventSynchronizer.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.
LGTM
/pulsarbot rerun-failure-checks |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #22684 +/- ##
============================================
- Coverage 73.57% 73.14% -0.43%
+ Complexity 32624 32502 -122
============================================
Files 1877 1888 +11
Lines 139502 141237 +1735
Branches 15299 15504 +205
============================================
+ Hits 102638 103308 +670
- Misses 28908 29937 +1029
- Partials 7956 7992 +36
Flags with carried forward coverage won't be shown. Click here to find out more.
|
log.info("successfully created consumer {}", topicName); | ||
} else { | ||
State stateTransient = state; | ||
log.info("[{}] Closing the new consumer because the synchronizer state is {}", stateTransient); |
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.
Fewer arguments provided (1) than placeholders specified (2)
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.
Fixed it in the next PR : #22695
CompletableFuture closeConsumer = new CompletableFuture<>(); | ||
closeResource(() -> consumer.closeAsync(), closeConsumer); | ||
closeConsumer.thenRun(() -> { | ||
log.info("[{}] Closed the new consumer because the synchronizer state is {}", stateTransient); |
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.
Same as previous.
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.
Fixed it in the next PR : #22695
CompletableFuture closeConsumer = new CompletableFuture<>(); | ||
closeResource(() -> consumer.closeAsync(), closeConsumer); |
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.
CompletableFuture<Void> closeConsumer = new CompletableFuture<>();
closeResource(consumer::closeAsync, closeConsumer);
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.
Improved the code in the next PR: #22695
…orting dynamic setting, but not implemented (apache#22684) (cherry picked from commit ff4853e) (cherry picked from commit 03da743)
…orting dynamic setting, but not implemented (apache#22684) (cherry picked from commit ff4853e) (cherry picked from commit 03da743)
Motivation
The config
configurationMetadataSyncEventTopic
was introduced with PIP-136: Sync Pulsar policies across multiple clouds, which was released with2.11
.This config was marked supporting dynamic setting, but has not been implemented.
Modifications
Add the implementation for dynamic setting
configurationMetadataSyncEventTopic
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: x