Skip to content

Commit

Permalink
Updated SparkFlumeEvent to read the whole stream rather than the firs…
Browse files Browse the repository at this point in the history
…t X bytes.
  • Loading branch information
David Lemieux committed May 23, 2014
1 parent 6541ca2 commit a265673
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class SparkFlumeEvent() extends Externalizable {
def readExternal(in: ObjectInput) {
val bodyLength = in.readInt()
val bodyBuff = new Array[Byte](bodyLength)
in.read(bodyBuff)
in.readFully(bodyBuff)

val numHeaders = in.readInt()
val headers = new java.util.HashMap[CharSequence, CharSequence]
Expand Down

0 comments on commit a265673

Please sign in to comment.