Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,14 @@ public static NamespaceId getNamespaceId(ClientContext context, String namespace
}

/**
* Look for namespace ID in ZK. Fail quietly by logging and returning null.
* Look for namespace ID in ZK. Fail quietly by returning null.
*/
public static NamespaceId lookupNamespaceId(ClientContext context, String namespaceName) {
NamespaceId id = null;
try {
id = getNamespaceId(context, namespaceName);
} catch (NamespaceNotFoundException e) {
if (log.isDebugEnabled()) {
log.debug("Failed to find namespace ID from name: " + namespaceName, e);
}
return null;
}
return id;
}
Expand Down
Loading