Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14968

Configurable shutdownAwaitTermination on Kafka Consumer Graceful Shutdown

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.0
    • Fix Version/s: 3.3.0
    • Component/s: camel-kafka
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Shutdown is forced when RouteController.stopRoute is called and the current batch of pulled messages from KafkaConsumer takes longer than 10 seconds to finish processing, logging lots of InterruptedExceptions from different points inside KafkaConsumer.

      KafkaConsumer.doStop method does not provide the shutdownAwaitTermination parameter to BaseExecutorServiceManager.shutdownGraceful. The default value is then set to 10 seconds.

      It would be nice to set in KafkaConsumer the shutdownAwaitTermination value so we dont have those exceptions in a controlled shutdown.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              LeonardoZV Leonardo Vasconcellos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: