You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ho...@apache.org on 2023/03/09 11:36:05 UTC
[pulsar] branch master updated: [fix][doc] Update the comment of the method of OwnershipCache (#19553)
This is an automated email from the ASF dual-hosted git repository.
houxiaoyu 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 7d5d2df0f0c [fix][doc] Update the comment of the method of OwnershipCache (#19553)
7d5d2df0f0c is described below
commit 7d5d2df0f0caf7630e89e4aab79a87e632475ab8
Author: HuangZeGui <hz...@126.com>
AuthorDate: Thu Mar 9 19:35:58 2023 +0800
[fix][doc] Update the comment of the method of OwnershipCache (#19553)
Co-authored-by: huangzegui <hu...@didiglobal.com>
---
.../main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java b/pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java
index a9dd44d4589..7d0b5a41477 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/broker/namespace/OwnershipCache.java
@@ -158,8 +158,7 @@ public class OwnershipCache {
* @param suName
* name of the <code>ServiceUnit</code>
* @return The ephemeral node data showing the current ownership info in <code>ZooKeeper</code>
- * @throws Exception
- * throws exception if no ownership info is found
+ * or empty if no ownership info is found
*/
public CompletableFuture<Optional<NamespaceEphemeralData>> getOwnerAsync(NamespaceBundle suName) {
CompletableFuture<OwnedBundle> ownedBundleFuture = ownedBundlesCache.getIfPresent(suName);