Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ class EventLoggingListenerSuite extends FunSuite with BeforeAndAfter with Loggin
val logPath = new Path(eventLogger.logPath + EventLoggingListener.IN_PROGRESS)
assert(fileSystem.exists(logPath))
val logStatus = fileSystem.getFileStatus(logPath)
assert(logStatus.isFile)
assert(!logStatus.isDir)

// Verify log is renamed after stop()
eventLogger.stop()
assert(fileSystem.getFileStatus(new Path(eventLogger.logPath)).isFile())
assert(!fileSystem.getFileStatus(new Path(eventLogger.logPath)).isDir)
}

test("Basic event logging") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class ReplayListenerSuite extends FunSuite with BeforeAndAfter {
val applications = fileSystem.listStatus(logDirPath)
assert(applications != null && applications.size > 0)
val eventLog = applications.sortBy(_.getModificationTime).last
assert(eventLog.isFile)
assert(!eventLog.isDir)

// Replay events
val (logData, version) = EventLoggingListener.openEventLog(eventLog.getPath(), fileSystem)
Expand Down