spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andrewor14 <>
Subject [GitHub] spark pull request: [MESOS] Fix master url prefix stripping in spa...
Date Sat, 30 May 2015 01:35:37 GMT
Github user andrewor14 commented on a diff in the pull request:
    --- Diff: core/src/main/scala/org/apache/spark/deploy/rest/RestSubmissionClient.scala
    @@ -277,8 +277,8 @@ private[spark] class RestSubmissionClient(master: String) extends
Logging {
       private def getBaseUrl(master: String): String = {
         var masterUrl = master
         supportedMasterPrefixes.foreach { prefix =>
    -      if (master.startsWith(prefix)) {
    -        masterUrl = master.stripPrefix(prefix)
    +      if (masterUrl.startsWith(prefix)) {
    +        masterUrl = masterUrl.stripPrefix(prefix)
    --- End diff --
    Actually, why is this an issue? If we assume that the master URL matches only one of the
`supportedMasterPrefixes`, then this change doesn't actually do anything, since we set `masterUrl
= master` up there.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message