Skip to content

Commit

Permalink
Fix test compilation in streaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Mar 16, 2016
1 parent de62f0d commit 0a347fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class ReceivedBlockHandlerSuite

storeAndVerify(blocks.map { b => IteratorBlock(b.toIterator) })
storeAndVerify(blocks.map { b => ArrayBufferBlock(new ArrayBuffer ++= b) })
storeAndVerify(blocks.map { b => ByteBufferBlock(dataToByteBuffer(b)) })
storeAndVerify(blocks.map { b => ByteBufferBlock(dataToByteBuffer(b).toByteBuffer) })
}

/** Test error handling when blocks that cannot be stored */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class WriteAheadLogBackedBlockRDDSuite
require(blockData.size === blockIds.size)
val writer = new FileBasedWriteAheadLogWriter(new File(dir, "logFile").toString, hadoopConf)
val segments = blockData.zip(blockIds).map { case (data, id) =>
writer.write(blockManager.dataSerialize(id, data.iterator))
writer.write(blockManager.dataSerialize(id, data.iterator).toByteBuffer)
}
writer.close()
segments
Expand Down

0 comments on commit 0a347fd

Please sign in to comment.