Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-1825

Avro-cient command with -F always drops 16% lines

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0, 1.3.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Avro-client(AvroCLIClient) command with -F option always fails to send data which is 1 line per 6 lines.

      If the text-file with -F contains 1,2,3,4,5,6,7, ... in each line,
      however, the data sent by AvroCLIClient (and recieved in Avro source) are [1,2,3,4,5], [7,8,9,10,11], [12,13,14,15,16], ...

      This behavior is inescapable even if option change.

      My idea is as follows.

      # org.apache.flume.client.avro.BufferedLineReader.java(54)
      -    while((line = readLine()) != null && out.size() < n) {
      +    while(out.size() < n && (line = readLine()) != null) {
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stakai Shinya Takai
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: