Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1871

Kafka Producer constructor hungs in case of wrong 'serializer.class' property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.8.1.1
    • 0.8.1.1, 0.8.1.2
    • clients, producer
    • None
    • AWS Linux

    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

      Attachments

        Activity

          People

            junrao Jun Rao
            igor.quickblox Igor Khomenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: