[
https://issues.apache.org/jira/browse/CAMEL-19359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17724892#comment-17724892
]
Claus Ibsen commented on CAMEL-19359:
-------------------------------------
so spring boot graceful shutdown is only its own http server.
In camel you always have graceful shutdown, and Camel takes care of processing
inflight in graceful manner.
So if you turn of spring boot graceful shutdown, then SB will stop HTTP server
quickly, and Camel will let inflight messages complete and shutdown gracefully.
So it only makes sense to use SB graceful if you use other non Camel HTTP
services with SB and want those to graceful shutdown.
> camel-spring-boot - When camel start graceful shutdown, it still receive new
> request during graceful shutdown.
> --------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-19359
> URL: https://issues.apache.org/jira/browse/CAMEL-19359
> Project: Camel
> Issue Type: Bug
> Affects Versions: 3.20.4
> Environment: I use the DefaultShutdownStrategy.
> < the module is camel-base-engine 3.20.4 >
> Reporter: adam chen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.0-RC1, 4.0
>
> Attachments: 2023-05-16 10 24 30.jpg, 2023-05-16 10 26 23.jpg,
> 2023-05-16 10 27 58.jpg, 2023-05-16 15 13 59.jpg
>
> Original Estimate: 120h
> Remaining Estimate: 120h
>
> < camel graceful shutdown time = 20s, the service thread.sleep = 10s >
> In my test case, at first I started the application, send the first request
> and then stop the JVM to run the camel graceful shutdown, in the console show
> that there have 2 infilght messages pending to complete, after about 4 sec, I
> send the second request, in theroy, camel shouldn't accept the second
> request, unfortunately, it still receive new request.
> [TestCode|https://github.com/chen19980/GracefulShutdown-test]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)