Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/18971#discussion_r135382368
--- Diff:
core/src/test/scala/org/apache/spark/scheduler/ReplayListenerSuite.scala ---
@@ -112,17 +112,19 @@ class ReplayListenerSuite extends SparkFunSuite with
BeforeAndAfter with LocalSp
// Verify the replay returns the events given the input maybe
truncated.
val logData = EventLoggingListener.openEventLog(logFilePath,
fileSystem)
- val failingStream = new EarlyEOFInputStream(logData, buffered.size -
10)
- replayer.replay(failingStream, logFilePath.toString, true)
+ Utils.tryWithResource(new EarlyEOFInputStream(logData, buffered.size -
10)) { failingStream =>
--- End diff --
Here `EarlyEOFInputStream` was not being closed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]