Polishing

This commit is contained in:
Soby Chacko
2018-12-12 21:34:22 -05:00
parent 6001136ec0
commit 67bcd0749a

View File

@@ -423,7 +423,7 @@ public class KafkaTopicProvisioner implements ProvisioningProvider<ExtendedConsu
}
catch (ExecutionException ex) {
if (ex.getCause() instanceof UnknownTopicOrPartitionException) {
throw new Exception(ex.getCause());
throw (UnknownTopicOrPartitionException)ex.getCause();
} else {
logger.warn("No partitions have been retrieved for the topic (" + topicName + "). This will affect the health check.");
}