Skip to content

Commit cc5d8b0

Browse files
committed
Fix wrong check
1 parent 7237831 commit cc5d8b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ClientConnection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ void ClientConnection::checkServerError(ServerError error, const std::string& me
14751475
// See
14761476
// https://github.com/apache/pulsar/blob/1952f94769d9dc80908d159be6e6ce1ff48b83fb/pulsar-broker/src/main/java/org/apache/pulsar/broker/lookup/TopicLookupBase.java#L334
14771477
// These errors should be retryable and we should not close the connection
1478-
if (message.find("Failed to lookup") != std::string::npos) {
1478+
if (message.find("Failed to lookup") == std::string::npos) {
14791479
close(ResultDisconnected);
14801480
}
14811481
break;

0 commit comments

Comments
 (0)