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

camel-spring-boot - When camel start graceful shutdown, it still receive new request during graceful shutdown.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.20.4
    • 3.21.0, 4.0-RC1, 4.0.0
    • None
    • None
    • I use the DefaultShutdownStrategy.

      < the module is camel-base-engine 3.20.4 >

    • Moderate
    • Important

    Description

      < 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

      Attachments

        1. 2023-05-16 10 24 30.jpg
          254 kB
          adam chen
        2. 2023-05-16 10 26 23.jpg
          254 kB
          adam chen
        3. 2023-05-16 10 27 58.jpg
          523 kB
          adam chen
        4. 2023-05-16 15 13 59.jpg
          31 kB
          adam chen
        5. 截圖 2023-05-22 20.23.23.png
          105 kB
          adam chen

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              chen19980 adam chen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 120h
                  120h
                  Remaining:
                  Remaining Estimate - 120h
                  120h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified