You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2015/07/22 22:19:05 UTC

[jira] [Created] (SPARK-9261) StreamingTab calls public APIs in Spark core that expose shaded classes

Marcelo Vanzin created SPARK-9261:
-------------------------------------

             Summary: StreamingTab calls public APIs in Spark core that expose shaded classes
                 Key: SPARK-9261
                 URL: https://issues.apache.org/jira/browse/SPARK-9261
             Project: Spark
          Issue Type: Bug
          Components: Streaming
    Affects Versions: 1.5.0
            Reporter: Marcelo Vanzin
            Priority: Minor


There's a minor issue in {{StreamingTab}} that has hit me a couple of times when building with maven.

It calls methods in {{JettyUtils}} and {{WebUI}} that expose Jetty types (namely {{ServletContextHandler}}). Since Jetty is now shaded, it's not safe to do that, since when running unit tests the spark-core jar will have the shaded version of the APIs while the streaming classes haven't been shaded yet.

This seems, at the lowest level, to be a bug in scalac (I've run into this issue in other modules before), since the code shouldn't compile at all, but we should avoid that kind of thing in the first place.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org