sijie closed pull request #2183: Issue 2121: Improve logging around "Namespace
not served by this instance"
URL: https://github.com/apache/incubator-pulsar/pull/2183
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
index 5bdf8129a3..741afbfefb 100644
---
a/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
+++
b/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
@@ -934,8 +934,8 @@ void checkTopicNsOwnership(final String topic) throws
RuntimeException {
}
if (!ownedByThisInstance) {
- String msg = String.format("Namespace not served by this instance.
Please redo the lookup. "
- + "Request is denied: namespace=%s",
topicName.getNamespace());
+ String msg = String.format("Namespace bundle for topic (%s) not
served by this instance. Please redo the lookup. "
+ + "Request is denied: namespace=%s", topic,
topicName.getNamespace());
log.warn(msg);
throw new RuntimeException(new ServiceUnitNotReadyException(msg));
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services