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

Race condition when using update-strategy="reload" and referring the same config file from multiple bundles.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • Karaf
    • None
    • % %
    • Hide

      Attached Sample bundle with steps.

      Show
      Attached Sample bundle with steps.

    Description

      Race condition when using update-strategy="reload" and referring the same config file from multiple bundles.

      This issue is not consistent but can be replicated frequently with the restart.

      Sample logs, camel context restarted multiple times.

      2017-01-03 06:34:21,779 | INFO | rint Extender: 3 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Route: BundleA started and consuming from: Endpoint[timer://TimerBundleA?fixedRate=true&period=60000]
      2017-01-03 06:34:21,779 | INFO | rint Extender: 3 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Total 1 routes, of which 1 is started.
      2017-01-03 06:34:21,779 | INFO | rint Extender: 3 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) started in 0.016 seconds
      2017-01-03 06:34:21,783 | INFO | Thread-525 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is shutting down
      2017-01-03 06:34:21,784 | INFO | Thread-525 | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
      2017-01-03 06:34:21,785 | INFO | 8 - ShutdownTask | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Route: BundleA shutdown complete, was consuming from: Endpoint[timer://TimerBundleA?fixedRate=true&period=60000]
      2017-01-03 06:34:21,785 | INFO | Thread-525 | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Graceful shutdown of 1 routes completed in 0 seconds
      2017-01-03 06:34:21,786 | INFO | Thread-525 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) uptime 0.023 seconds
      2017-01-03 06:34:21,786 | INFO | Thread-525 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is shutdown in 0.003 seconds
      2017-01-03 06:34:21,805 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is starting
      2017-01-03 06:34:21,805 | INFO | rint Extender: 2 | ManagedManagementStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | JMX is enabled
      2017-01-03 06:34:21,818 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
      2017-01-03 06:34:21,818 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
      2017-01-03 06:34:21,821 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Route: BundleA started and consuming from: Endpoint[timer://TimerBundleA?fixedRate=true&period=60000]
      2017-01-03 06:34:21,821 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Total 1 routes, of which 1 is started.
      2017-01-03 06:34:21,821 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) started in 0.017 seconds
      2017-01-03 06:34:21,823 | INFO | Thread-528 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is shutting down
      2017-01-03 06:34:21,824 | INFO | Thread-528 | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
      2017-01-03 06:34:21,825 | INFO | 0 - ShutdownTask | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Route: BundleA shutdown complete, was consuming from: Endpoint[timer://TimerBundleA?fixedRate=true&period=60000]
      2017-01-03 06:34:21,825 | INFO | Thread-528 | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Graceful shutdown of 1 routes completed in 0 seconds
      2017-01-03 06:34:21,826 | INFO | Thread-528 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) uptime 0.022 seconds
      2017-01-03 06:34:21,827 | INFO | Thread-528 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is shutdown in 0.003 seconds
      2017-01-03 06:34:21,844 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is starting
      2017-01-03 06:34:21,844 | INFO | rint Extender: 2 | ManagedManagementStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | JMX is enabled
      2017-01-03 06:34:21,854 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
      2017-01-03 06:34:21,854 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
      2017-01-03 06:34:21,857 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Route: BundleA started and consuming from: Endpoint[timer://TimerBundleA?fixedRate=true&period=60000]
      2017-01-03 06:34:21,857 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Total 1 routes, of which 1 is started.
      2017-01-03 06:34:21,857 | INFO | rint Extender: 2 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) started in 0.013 seconds
      2017-01-03 06:34:21,860 | INFO | Thread-531 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is shutting down
      2017-01-03 06:34:21,861 | INFO | Thread-531 | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
      2017-01-03 06:34:21,861 | INFO | 2 - ShutdownTask | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Route: BundleA shutdown complete, was consuming from: Endpoint[timer://TimerBundleA?fixedRate=true&period=60000]
      2017-01-03 06:34:21,861 | INFO | Thread-531 | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Graceful shutdown of 1 routes completed in 0 seconds
      2017-01-03 06:34:21,863 | INFO | Thread-531 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) uptime 0.019 seconds
      2017-01-03 06:34:21,863 | INFO | Thread-531 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is shutdown in 0.003 seconds
      2017-01-03 06:34:21,886 | INFO | rint Extender: 1 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is starting
      2017-01-03 06:34:21,886 | INFO | rint Extender: 1 | ManagedManagementStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | JMX is enabled
      2017-01-03 06:34:21,897 | INFO | rint Extender: 1 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | AllowUseOriginalMessage is enabled. If access to the original message is not needed, then its recommended to turn this option off as it may improve performance.
      2017-01-03 06:34:21,898 | INFO | rint Extender: 1 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html
      2017-01-03 06:34:21,901 | INFO | rint Extender: 1 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Route: BundleA started and consuming from: Endpoint[timer://TimerBundleA?fixedRate=true&period=60000]
      2017-01-03 06:34:21,901 | INFO | rint Extender: 1 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Total 1 routes, of which 1 is started.
      2017-01-03 06:34:21,901 | INFO | rint Extender: 1 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) started in 0.015 seconds
      2017-01-03 06:34:21,904 | INFO | Thread-534 | BlueprintCamelContext | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Apache Camel 2.15.1.redhat-621159 (CamelContext: camelContext-BundleA) is shutting down
      2017-01-03 06:34:21,905 | INFO | Thread-534 | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Starting to graceful shutdown 1 routes (timeout 300 seconds)
      2017-01-03 06:34:21,905 | INFO | 4 - ShutdownTask | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Route: BundleA shutdown complete, was consuming from: Endpoint[timer://TimerBundleA?fixedRate=true&period=60000]
      2017-01-03 06:34:21,905 | INFO | Thread-534 | DefaultShutdownStrategy | 205 - org.apache.camel.camel-core - 2.15.1.redhat-621159 | Graceful shutdown of 1 routes completed in 0 seconds
      

      Attachments

        Issue Links

          Activity

            People

              pantinor@redhat.com Paolo Antinori
              rhn-support-shsingh Shailendra Singh
              Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: