You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2020/07/11 15:51:45 UTC
[pulsar] branch master updated: Fixes #7512 handle exception when
policy is updated. (#7514)
This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new a55a405 Fixes #7512 handle exception when policy is updated. (#7514)
a55a405 is described below
commit a55a405c794741ec10094ddd174fccf0cb4840c7
Author: mikecaat <35...@users.noreply.github.com>
AuthorDate: Sun Jul 12 00:51:26 2020 +0900
Fixes #7512 handle exception when policy is updated. (#7514)
---
.../org/apache/pulsar/broker/service/persistent/PersistentTopic.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
index 13db457..8983238 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java
@@ -1804,7 +1804,7 @@ public class PersistentTopic extends AbstractTopic implements Topic, AddEntryCal
}
});
replicators.forEach((name, replicator) ->
- replicator.getRateLimiter().get().onPoliciesUpdate(data)
+ replicator.getRateLimiter().ifPresent(rateLimiter -> rateLimiter.onPoliciesUpdate(data))
);
checkMessageExpiry();
CompletableFuture<Void> replicationFuture = checkReplicationAndRetryOnFailure();