aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2015-12-09 19:47:38 +0000
committerSean Owen <sowen@cloudera.com>2015-12-09 19:47:38 +0000
commit1eb7c22ce72a1b82ed194a51bbcf0da9c771605a (patch)
tree1cf44f265b210b56d38043f39c606ca98c3cf5dc /core
parentaec5ea000ebb8921f42f006b694ef26f5df67d83 (diff)
downloadspark-1eb7c22ce72a1b82ed194a51bbcf0da9c771605a.tar.gz
spark-1eb7c22ce72a1b82ed194a51bbcf0da9c771605a.tar.bz2
spark-1eb7c22ce72a1b82ed194a51bbcf0da9c771605a.zip
[SPARK-11824][WEBUI] WebUI does not render descriptions with 'bad' HTML, throws console error
Don't warn when description isn't valid HTML since it may properly be like "SELECT ... where foo <= 1" The tests for this code indicate that it's normal to handle strings like this that don't contain HTML as a string rather than markup. Hence logging every such instance as a warning is too noisy since it's not a problem. this is an issue for stages whose name contain SQL like the above CC tdas as author of this bit of code Author: Sean Owen <sowen@cloudera.com> Closes #10159 from srowen/SPARK-11824.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/ui/UIUtils.scala1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/ui/UIUtils.scala b/core/src/main/scala/org/apache/spark/ui/UIUtils.scala
index 1e8194f578..81a6f07ec8 100644
--- a/core/src/main/scala/org/apache/spark/ui/UIUtils.scala
+++ b/core/src/main/scala/org/apache/spark/ui/UIUtils.scala
@@ -448,7 +448,6 @@ private[spark] object UIUtils extends Logging {
new RuleTransformer(rule).transform(xml)
} catch {
case NonFatal(e) =>
- logWarning(s"Invalid job description: $desc ", e)
<span class="description-input">{desc}</span>
}
}