Skip to content

SPARK-4910 [CORE] build failed (use of FileStatus.isFile in Hadoop 1.x) #3754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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