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

Flatpack skips 1 row every 2 rows when using split with streaming=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.11.3, 2.12.3, 2.13.0
    • camel-flatpack
    • None
    • Patch Available
    • Unknown

    Description

      When using a route with a streamed split of a Flatpack result, only halve of the rows are processed

      Using the repro case we get

      2013-12-13 19:51:17,438 [main] INFO route1 - Number of rows 6
      2013-12-13 19:51:17,442 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=1, Col2=A}]
      2013-12-13 19:51:17,443 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=3, Col2=C}]
      2013-12-13 19:51:17,443 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=5, Col2=E}]
      

      if streaming() is removed, all the lines are processed

      2013-12-13 19:52:37,471 [main] INFO route1 - Number of rows 6
      2013-12-13 19:52:37,475 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=1, Col2=A}]
      2013-12-13 19:52:37,476 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=2, Col2=B}]
      2013-12-13 19:52:37,476 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=3, Col2=C}]
      2013-12-13 19:52:37,476 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=4, Col2=D}]
      2013-12-13 19:52:37,479 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=5, Col2=E}]
      2013-12-13 19:52:37,479 [main] INFO test - Exchange[ExchangePattern: InOnly, BodyType: java.util.HashMap, Body: {Col1=6, Col2=F}]
      

      Attachments

        1. Camel7068Test.java
          1 kB
          Xavier Fournet
        2. Fix-CAMEL-7068.patch
          9 kB
          Xavier Fournet

        Activity

          People

            davsclaus Claus Ibsen
            xfournet Xavier Fournet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: