Details
Description
If a Spark job's job description contains a single quote (') then the driver UI's job event timeline will fail to render due to Javascript errors. To reproduce these symptoms, run
sc.setJobDescription("double quote: \" ") sc.parallelize(1 to 10).count() sc.setJobDescription("single quote: ' ") sc.parallelize(1 to 10).count()
and browse to the driver UI. This will currently result in an "Uncaught SyntaxError" because the single quote is not escaped and ends up closing a Javascript string literal too early.
I think that a simple fix may be to change the relevant JS to use double quotes and then to use the existing XML escaping logic to escape the string's contents.