Skip to content

Commit 596c7ae

Browse files
committed
review comments - 2
1 parent 1144440 commit 596c7ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
111111

112112
// The modification time of the newest log detected during the last scan. Currently only
113113
// used for logging msgs (logs are re-scanned based on file size, rather than modtime)
114-
private val lastScanTime = new java.util.concurrent.atomic.AtomicLong (-1)
114+
private val lastScanTime = new java.util.concurrent.atomic.AtomicLong(-1)
115115

116116
// Mapping of application IDs to their metadata, in descending end time order. Apps are inserted
117117
// into the map in order, so the LinkedHashMap maintains the correct ordering.
@@ -123,7 +123,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
123123
// List of application logs to be deleted by event log cleaner.
124124
private var attemptsToClean = new mutable.ListBuffer[FsApplicationAttemptInfo]
125125

126-
private val pendingReplayTasksCount = new java.util.concurrent.atomic.AtomicInteger (0)
126+
private val pendingReplayTasksCount = new java.util.concurrent.atomic.AtomicInteger(0)
127127

128128
/**
129129
* Return a runnable that performs the given operation on the event logs.
@@ -352,7 +352,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
352352
logError(s"Exception while submitting event log for replay", e)
353353
}
354354

355-
pendingReplayTasksCount.addAndGet (tasks.size)
355+
pendingReplayTasksCount.addAndGet(tasks.size)
356356

357357
tasks.foreach { task =>
358358
try {

0 commit comments

Comments
 (0)