Github user JoshRosen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10835#discussion_r50809333
  
    --- Diff: core/src/test/scala/org/apache/spark/util/JsonProtocolSuite.scala 
---
    @@ -273,14 +273,13 @@ class JsonProtocolSuite extends SparkFunSuite {
         assert(expectedFetchFailed === 
JsonProtocol.taskEndReasonFromJson(oldEvent))
       }
     
    -  test("ShuffleReadMetrics: Local bytes read and time taken backwards 
compatibility") {
    -    // Metrics about local shuffle bytes read and local read time were 
added in 1.3.1.
    +  test("ShuffleReadMetrics: Local bytes read backwards compatibility") {
    +    // Metrics about local shuffle bytes read were added in 1.3.1.
         val metrics = makeTaskMetrics(1L, 2L, 3L, 4L, 5, 6,
           hasHadoopInput = false, hasOutput = false, hasRecords = false)
         assert(metrics.shuffleReadMetrics.nonEmpty)
         val newJson = JsonProtocol.taskMetricsToJson(metrics)
         val oldJson = newJson.removeField { case (field, _) => field == "Local 
Bytes Read" }
    -      .removeField { case (field, _) => field == "Local Read Time" }
    --- End diff --
    
    Oh, I see: this test used to be testing for the absence of "Local Read 
Time", but that field is now assumed to always exist? Just wondering why this 
test had to change.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to