apache/spark — pull request #3650 by srowen (2014-12-09 22:51:21+00:00)
Title: SPARK-4805 [CORE] BlockTransferMessage.toByteArray() trips assertion

Allocate enough room for type byte as well as message, to avoid tripping assertion about capacity of the buffer