Skip to content

Topic Not Present

Errors

Source
bash
[open-telemetry-trace-id:,span-id:] 2025-03-31 17:01:32.553 ERROR 7 --- [at-handler-2591] o.s.k.support.LoggingProducerListener    : Exception thrown when sending a message with key='null' and payload='{"notifyRole":"user","internal":{"isHtml":false,"content":"新代码库通知 repo02","url":"http://anta.dev.git...' to topic sendCommonMessage-prod:

org.apache.kafka.common.errors.TimeoutException: Topic sendCommonMessage-prod not present in metadata after 15000 ms.

[open-telemetry-trace-id:,span-id:] 2025-03-31 17:01:32.554 ERROR 7 --- [at-handler-2591] c.o.b.exception.CustomExceptionHandler   : 服务器异常

org.springframework.kafka.KafkaException: Send failed
        at org.springframework.kafka.core.KafkaTemplate.doSend(KafkaTemplate.java:816)
        at org.springframework.kafka.core.KafkaTemplate.observeSend(KafkaTemplate.java:773)
        at org.springframework.kafka.core.KafkaTemplate.send(KafkaTemplate.java:550)
        at cn.oschina.notification.service.impl.NotificationServiceImpl.sendCommonMessage(NotificationServiceImpl.java:641)
        at cn.oschina.notification.service.impl.NotificationServiceImpl.send(NotificationServiceImpl.java:601)
        at cn.oschina.controller.NotificationController.send(NotificationController.java:143)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
Key Error
bash
Topic sendCommonMessage-prod not present in metadata after 15000 ms.

References

https://stackoverflow.com/questions/63714401/org-apache-kafka-common-errors-timeoutexception-topic-not-present-in-metadata-a