Skip to content

[SPARK-4260] Httpbroadcast should set connection timeout. - #3122

Closed
sarutak wants to merge 1 commit into
apache:masterfrom
sarutak:httpbroadcast-timeout
Closed

sarutak wants to merge 1 commit into
apache:masterfrom
sarutak:httpbroadcast-timeout

Conversation

@sarutak

@sarutak sarutak commented Nov 6, 2014

Copy link
Copy Markdown
Member

Httpbroadcast sets read timeout but doesn't set connection timeout.

@SparkQA

SparkQA commented Nov 6, 2014

Copy link
Copy Markdown

Test build #22964 has finished for PR 3122 at commit dce0f5a.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • public final class JavaGradientBoostedTrees
    • case class Params(
    • public final class LimitedInputStream extends FilterInputStream
    • public class ShuffleSecretManager implements SecretKeyHolder
    • public class YarnShuffleService extends AuxiliaryService
    • public class HadoopConfigProvider extends ConfigProvider
    • case class AllocatedBlocks(streamIdToAllocatedBlocks: Map[Int, Seq[ReceivedBlockInfo]])
    • class ReceiverTracker(ssc: StreamingContext, skipReceiverLaunch: Boolean = false) extends Logging

@sarutak
sarutak force-pushed the httpbroadcast-timeout branch from dce0f5a to c7f3a56 Compare November 6, 2014 00:35
@SparkQA

SparkQA commented Nov 6, 2014

Copy link
Copy Markdown

Test build #22967 has finished for PR 3122 at commit c7f3a56.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@squito

squito commented Nov 9, 2014

Copy link
Copy Markdown
Contributor

This looks good, but could also explain what necessitates this change? Did you observe some error? If nothing else, just putting the error you observed in the JIRA would help somebody else find this patch if they run into the error as well.

@sarutak

sarutak commented Nov 10, 2014

Copy link
Copy Markdown
Member Author

Actually I don't hit any issues caused by not setting connection timeout but the host trying to connect to a host wait for establishing forever when server side is hang.
In fact, org.apache.spark.util.Utils#doFetchFile, URLConnection is set timeout.

@rxin

rxin commented Nov 15, 2014

Copy link
Copy Markdown
Contributor

Ok this makes sense. I'm merging in master & branch-1.2.

@rxin

rxin commented Nov 15, 2014

Copy link
Copy Markdown
Contributor

Thanks a lot!

@asfgit asfgit closed this in 60969b0 Nov 15, 2014
asfgit pushed a commit that referenced this pull request Nov 15, 2014
Httpbroadcast sets read timeout but doesn't set connection timeout.

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes #3122 from sarutak/httpbroadcast-timeout and squashes the following commits:

c7f3a56 [Kousuke Saruta] Added Connection timeout for Http Connection to HttpBroadcast.scala

(cherry picked from commit 60969b0)
Signed-off-by: Reynold Xin <rxin@databricks.com>
@sarutak
sarutak deleted the httpbroadcast-timeout branch April 11, 2015 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants