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
3350ad0d
Commit
3350ad0d
authored
11 years ago
by
Shivaram Venkataraman
Browse files
Options
Downloads
Patches
Plain Diff
Catch RejectedExecution exception in Checkpoint handler.
parent
7d6d9e6a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
streaming/src/main/scala/spark/streaming/Checkpoint.scala
+7
-2
7 additions, 2 deletions
streaming/src/main/scala/spark/streaming/Checkpoint.scala
with
7 additions
and
2 deletions
streaming/src/main/scala/spark/streaming/Checkpoint.scala
+
7
−
2
View file @
3350ad0d
...
...
@@ -8,7 +8,7 @@ import org.apache.hadoop.conf.Configuration
import
java.io._
import
com.ning.compress.lzf.
{
LZFInputStream
,
LZFOutputStream
}
import
java.util.concurrent.Executors
import
java.util.concurrent.RejectedExecutionException
private
[
streaming
]
class
Checkpoint
(
@transient
ssc
:
StreamingContext
,
val
checkpointTime
:
Time
)
...
...
@@ -91,7 +91,12 @@ class CheckpointWriter(checkpointDir: String) extends Logging {
oos
.
writeObject
(
checkpoint
)
oos
.
close
()
bos
.
close
()
executor
.
execute
(
new
CheckpointWriteHandler
(
checkpoint
.
checkpointTime
,
bos
.
toByteArray
))
try
{
executor
.
execute
(
new
CheckpointWriteHandler
(
checkpoint
.
checkpointTime
,
bos
.
toByteArray
))
}
catch
{
case
rej
:
RejectedExecutionException
=>
logError
(
"Could not submit checkpoint task to the thread pool executor"
,
rej
)
}
}
def
stop
()
{
...
...
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