Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/4771#discussion_r25376288
--- Diff:
core/src/main/scala/org/apache/spark/scheduler/EventLoggingListener.scala ---
@@ -132,7 +132,9 @@ private[spark] class EventLoggingListener(
writer.foreach(_.println(compact(render(eventJson))))
if (flushLogger) {
writer.foreach(_.flush())
- hadoopDataStream.foreach(hadoopFlushMethod.invoke(_))
+ if (!Utils.inShutdown()) {
--- End diff --
A recent discussion noted that this method is kind of hacky. Maybe it's
necessary. But is there really no way to test whether the `FileSystem` is
closed directly? Really this could be avoided in all eventualities if these
operations aren't invoked when the FS is closed, even outside shutdown. +
@sryza who might know the API better than I
---
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]