Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/8818#discussion_r40259197
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/scheduler/BatchInfo.scala
---
@@ -36,8 +38,21 @@ case class BatchInfo(
streamIdToInputInfo: Map[Int, StreamInputInfo],
submissionTime: Long,
processingStartTime: Option[Long],
- processingEndTime: Option[Long]
- ) {
+ processingEndTime: Option[Long],
+ private[streaming] val failureReasons: Map[Int, String]) {
--- End diff --
You are exposing two public constructors now, that's not cool either. I
think the best approach is to
preserve the case class constructor, and add another private[streaming]
field failureReason, which can be assigned with private[streaming] methods.
---
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]