Will JCSMPInboundChannelAdapter have configurable shutdownInterruptThresholdInMillis?

Options
Hello, we are experiencing an issue with graceful shutdown of an application. We are using spring cloud "com.solace.spring.cloud:spring-cloud-starter-stream-solace:4.1.0"
There is no awaiting for the termination and messages finish in the error queue.
Is there a better way to gracefully stop and resume? Will configuring shutdownInterruptThresholdInMillis help?

Answers

  • marc
    marc Member, Administrator, Moderator, Employee Posts: 921 admin
    Options

    Hi @Julija,

    I'm hoping to get a bit more info to get the the right answer. Can you elaborate on what you mean by this?

    There is no awaiting for the termination and messages finish in the error queue.

    Also, how are you triggering the graceful shutdown? Are you using/wanting to use one of these options or something else?

    https://www.baeldung.com/spring-boot-shutdown

    thank you!

  • Julija
    Julija Member Posts: 2
    Options

    hello @marc, sorry for the late response

    Thanks for your reply. We have graceful shutdown but we are configuring further Kubernetes and Spring with additional properties. In addition we were wondering about shutdownInterruptThresholdInMillis

    In the JCSMPInboundChannelAdapter, stopAllConsumers is awaiting termination awaitTermination for the hardcoded value shutdownInterruptThresholdInMillis . It is hardcoded to 500mills. Is it planned to be configurable?