Skip to content

Commit fd1f774

Browse files
LuciferYangdongjoon-hyun
authored andcommitted
[MINOR][CORE] Remove unused private[executor] var httpUrlConnectionTimeoutMillis from ExecutorClassLoader
### What changes were proposed in this pull request? This pr aims to remove unused `private[executor] var httpUrlConnectionTimeoutMillis` from `ExecutorClassLoader`. The definition of `httpUrlConnectionTimeoutMillis` was introduced in SPARK-6209 (#4944) and was used by the function `getClassFileInputStreamFromHttpServer`. After SPARK-23538(#20723), the function `getClassFileInputStreamFromHttpServer` was removed from `ExecutorClassLoader`, and `httpUrlConnectionTimeoutMillis` is no longer used either. ### Why are the changes needed? Code cleanup ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Action ### Was this patch authored or co-authored using generative AI tooling? No Closes #50152 from LuciferYang/minor-ExecutorClassLoader-var. Authored-by: yangjie01 <yangjie01@baidu.com> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 8f0ac3b commit fd1f774

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

core/src/main/scala/org/apache/spark/executor/ExecutorClassLoader.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ class ExecutorClassLoader(
5959

6060
val parentLoader = new ParentClassLoader(parent)
6161

62-
// Allows HTTP connect and read timeouts to be controlled for testing / debugging purposes
63-
private[executor] var httpUrlConnectionTimeoutMillis: Int = -1
64-
6562
private val fetchFn: (String) => InputStream = uri.getScheme() match {
6663
case "spark" => getClassFileInputStreamFromSparkRPC
6764
case _ =>

0 commit comments

Comments
 (0)