These are chat archives for spring-cloud/spring-cloud

17th
Apr 2019
Rajeev Jha
@rajeevjha2k4_twitter
Apr 17 09:17

Hi Spring-cloud Buddy, I am facing issue suddenly for eureka Client registry with eureka service discovery. It’s throwing below error-
c.netflix.discovery.TimedSupervisorTask : task supervisor timed out java.util.concurrent.TimeoutException: null

Similar issue mentioned at below link but not solution-
Netflix/eureka#1128

mlk5060
@mlk5060
Apr 17 09:54
Hi all. Can I ask if this will handle an error if one occurs and only produce the successful logmessage if an exception does not occur?
kafkaTemplate
            .send(parcelReceiptingKafkaConfiguration.getTopicName(), Json.toString(hhtParcelReceiptingEvent))
            .completable()
            .handle((completeableResult, exception) -> {
                LOGGER.info(PUBLISH_RECEIPTED_EVENT_FAILURE_LOG_MESSAGE, hhtParcelReceiptingEvent, exception.getMessage());
                return completeableResult;
            })
            .whenComplete(LOGGER.info(PUBLISH_RECEIPTED_EVENT_SUCCESSFUL_LOG_MESSAGE, hhtParcelReceiptingEvent)
        ;