Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-11761

Graceful Shutdown property cannot be set on Karaf

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • fuse-7.5-ER1
    • Camel, Karaf
    • None
    • % %

    Description

      In Camel documentation is written when is set property org.apache.camel.impl.DefaultShutdownStrategy to DEBUG level it should log some inflight information. This property can't be set. Also inflight log information appears in log without any setting property.

      Test was used from jbossqe-camel-it testsuite
      As first it set property named above. Then send some data to route and try to stop it. Then it checks if is inflight data in log.

      You can try set this property on Karaf by this command and it fails on Karaf version fuse-karaf-7.5.0.fuse-750029:

      config:edit org.ops4j.pax.logging; config:property-append log4j2.logger.org.apache.camel.impl.DefaultShutdownStrategy "DEBUG"; config:update
      

      Camel routes from test:

      		<route startupOrder="1">
      			<from uri="direct:start"/>
      			<log message="GracefulShutdownTest: ${body}"/>
      			<to uri="file://graceful-shutdown-test/deferred"/>
      		</route>
      
      		<route startupOrder="2" shutdownRoute="Defer">
      			<from uri="file://graceful-shutdown-test/deferred"/>
      			<delay>
      				<constant>15000</constant>
      			</delay>
      			<to uri="mock:result"/>
      		</route>
      

      Attachments

        Activity

          People

            yfang@redhat.com Freeman(Yue) Fang
            tveskrna Tomas Veskrna
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: