Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
6ed71390
Commit
6ed71390
authored
11 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Plain Diff
Merge pull request #626 from stephenh/remove-add-if-no-port
Remove unused addIfNoPort.
parents
41d230cc
4fe1fbdd
No related branches found
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/main/scala/spark/Utils.scala
+0
-11
0 additions, 11 deletions
core/src/main/scala/spark/Utils.scala
with
0 additions
and
11 deletions
core/src/main/scala/spark/Utils.scala
+
0
−
11
View file @
6ed71390
...
...
@@ -403,17 +403,6 @@ private object Utils extends Logging {
hostPortParseResults
.
get
(
hostPort
)
}
def
addIfNoPort
(
hostPort
:
String
,
port
:
Int
)
:
String
=
{
if
(
port
<=
0
)
throw
new
IllegalArgumentException
(
"Invalid port specified "
+
port
)
// This is potentially broken - when dealing with ipv6 addresses for example, sigh ... but then hadoop does not support ipv6 right now.
// For now, we assume that if port exists, then it is valid - not check if it is an int > 0
val
indx
:
Int
=
hostPort
.
lastIndexOf
(
':'
)
if
(-
1
!=
indx
)
return
hostPort
hostPort
+
":"
+
port
}
private
[
spark
]
val
daemonThreadFactory
:
ThreadFactory
=
new
ThreadFactoryBuilder
().
setDaemon
(
true
).
build
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment