Github user kayousterhout commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17140#discussion_r104016148
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/TaskDescription.scala ---
    @@ -86,7 +86,10 @@ private[spark] object TaskDescription {
         dataOut.writeInt(taskDescription.properties.size())
         taskDescription.properties.asScala.foreach { case (key, value) =>
           dataOut.writeUTF(key)
    -      dataOut.writeUTF(value)
    +      // SPARK-19796 -- writeUTF doesn't work for long strings, which can 
happen for property values
    +      val bytes = value.getBytes("utf-8")
    +      dataOut.writeInt(bytes.length)
    +      dataOut.write(bytes)
    --- End diff --
    
    (here's the code: 
http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/io/ObjectOutputStream.java#1160.
 I guess one downside of that is that it's more time-consuming because it does 
some extra steps, but I'm not sure that is a huge issue)


---
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]

Reply via email to