Details
Description
I have next code:
Properties props = new Properties(); props.put("metadata.broker.list", Services.getConfigInstance().getKafkaBrokerList()); props.put("serializer.class", "main.java.com.services.kafka.MessageEntityToJsonSerializer"); props.put("request.required.acks", "0"); ProducerConfig config = new ProducerConfig(props); if (log.isLoggable(Level.INFO)) { log.log(Level.INFO, "Connecting to Kafka...props: " + props); } producer = new Producer<String, MessageEntity>(config); if (log.isLoggable(Level.INFO)) { log.log(Level.INFO, "Connected to Kafka"); }
It just hungs on 'new Producer' in case of wrong 'serializer.class' property