gaozhangmin commented on code in PR #16292:
URL: https://github.com/apache/pulsar/pull/16292#discussion_r910976724
##########
pulsar-broker/src/main/java/org/apache/pulsar/zookeeper/LocalBookkeeperEnsemble.java:
##########
@@ -369,21 +369,16 @@ public void runStreamStorage(CompositeConfiguration conf)
throws Exception {
.build())
.buildAdmin()) {
+ LOG.info("Creating default namespace");
try {
- NamespaceProperties ns =
FutureUtils.result(admin.getNamespace("default"));
Review Comment:
It was throw by
```
private void processGetNamespaceResponse(String namespace,
GetNamespaceResponse response,
CompletableFuture<NamespaceProperties> getFuture) {
StatusCode code = response.getCode();
if (StatusCode.SUCCESS == code) {
getFuture.complete(response.getNsProps());
return;
}
getFuture.completeExceptionally(createRootRangeException(namespace,
code));
}
```
##########
pulsar-broker/src/main/java/org/apache/pulsar/zookeeper/LocalBookkeeperEnsemble.java:
##########
@@ -369,21 +369,16 @@ public void runStreamStorage(CompositeConfiguration conf)
throws Exception {
.build())
.buildAdmin()) {
+ LOG.info("Creating default namespace");
try {
- NamespaceProperties ns =
FutureUtils.result(admin.getNamespace("default"));
Review Comment:
It was throw by createRootRangeException
```
private void processGetNamespaceResponse(String namespace,
GetNamespaceResponse response,
CompletableFuture<NamespaceProperties> getFuture) {
StatusCode code = response.getCode();
if (StatusCode.SUCCESS == code) {
getFuture.complete(response.getNsProps());
return;
}
getFuture.completeExceptionally(createRootRangeException(namespace,
code));
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]