danielwegener / logback-kafka-appender

Logback appender for Apache Kafka
Apache License 2.0
644 stars 262 forks source link

When bootstrap.servers are not available, Thread Stuck on logger.warn #83

Open piyush2409 opened 5 years ago

piyush2409 commented 5 years ago
<appender name="ASYNC" class="ch.qos.logback.classic.AsyncAppender">
        <appender-ref ref="kafkaAppender" />
    </appender>

    <root level="INFO">
           <appender-ref ref="ASYNC" />
        <appender-ref ref="APPLICATION"/>

    </root>

   <dependency>
        <groupId>com.github.danielwegener</groupId>
        <artifactId>logback-kafka-appender</artifactId>
        <version>0.2.0-RC1</version>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.kafka</groupId>
        <artifactId>kafka-clients</artifactId>
        <version>2.0.0</version>
    </dependency>

    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>1.2.3</version>
    </dependency>
    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-core</artifactId>
        <version>1.2.3</version>
    </dependency>
mytopic x bootstrap.servers=wronghost:9092wronghost:9092,wronghost:9092 compression.type=gzip retries=2 request.timeout.ms=2500 max.block.ms=10000 reconnect.backoff.max.ms=1000 max.block.ms=800 metadata.fetch.timeout.ms=10

Application is hung or stuck whenever its step on LOGGER.WARN statement.

piyush2409 commented 5 years ago

any updates