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

Camel Ruby integration fails with parallel processing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: jboss-fuse-6.1
    • Fix Version/s: jboss-fuse-6.2
    • Component/s: Camel
    • Labels:
      None
    • Environment:

      Red Hat JBoss Fuse 6.1.0 GA; Camel 2.12.0

    • Steps to Reproduce:
      Hide

      1. Download and unpack camel-ruby-test.zip
      2. cd camel-2.8.0-jruby-1.5.6
      3. mvn -Dtest=JRubyTest#testParallel test
      4. Test completes successfully (record time)
      5. Download and unpack camel-2.12.0-jruby-1.7.4.zip
      6 mvn -Dtest=JRubyTest#testParallelLocalContextScopeSingleton test
      7. Note many errors:

      Show
      1. Download and unpack camel-ruby-test.zip 2. cd camel-2.8.0-jruby-1.5.6 3. mvn -Dtest=JRubyTest#testParallel test 4. Test completes successfully (record time) 5. Download and unpack camel-2.12.0-jruby-1.7.4.zip 6 mvn -Dtest=JRubyTest#testParallelLocalContextScopeSingleton test 7. Note many errors:

      Description

      When a Camel route contains a Ruby invocation, of this form:

      .to("language:ruby:puts $request.body;result = $request.body")

      and this route is invoked in parallel from a SEDA parallel consumer:

      from("seda:parallel?concurrentConsumers=5")

      then the route fails intermittently with the following exception message:

      NoMethodError: undefined method `body' for nil:NilClass
      (root) at <script>:1

      The same route works correctly with Camel 2.8.0. In addition, execution of the route is 2-3 times slower with Camel 2.12.0 than it was with 2.8.0; it is not clear whether this reduction in throughput is associated with the errors or not.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  willem.jiang Willem Jiang
                  Reporter:
                  kboone Kevin Boone
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: