if (!(mm instanceof ZkMetadataManagerFactory)) {
throw new IOException("Uses " + mm.getClass().getName() + " to store hedwig metadata, "
+ "but uses zookeeper ephemeral znodes to store topic ownership. "
+ "Check your configuration as this could lead to scalability issues.");
}
tm = new ZkTopicManager(zk, conf, scheduler);
}
} catch (PubSubException e) {
logger.error("Could not instantiate TopicOwnershipManager based topic manager", e);
throw new IOException(e);
}