Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/1758#issuecomment-51389637
I tried moving the field in the message header, but it didn't help; I still
see the same error.
```diff
diff --git
a/core/src/main/scala/org/apache/spark/network/MessageChunkHeader.scala
b/core/src/main/
index f3ecca5..02c2e8c 100644
--- a/core/src/main/scala/org/apache/spark/network/MessageChunkHeader.scala
+++ b/core/src/main/scala/org/apache/spark/network/MessageChunkHeader.scala
@@ -42,8 +42,8 @@ private[spark] class MessageChunkHeader(
putInt(totalSize).
putInt(chunkSize).
putInt(other).
- put(if (hasError) 1.asInstanceOf[Byte] else 0.asInstanceOf[Byte]).
putInt(securityNeg).
+ put(if (hasError) 1.asInstanceOf[Byte] else 0.asInstanceOf[Byte]).
putInt(ip.size).
put(ip).
putInt(port).
@@ -69,8 +69,8 @@ private[spark] object MessageChunkHeader {
val totalSize = buffer.getInt()
val chunkSize = buffer.getInt()
val other = buffer.getInt()
- val hasError = buffer.get() != 0
val securityNeg = buffer.getInt()
+ val hasError = buffer.get() != 0
val ipSize = buffer.getInt()
val ipBytes = new Array[Byte](ipSize)
buffer.get(ipBytes)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]