Github user ajbozarth commented on a diff in the pull request:
https://github.com/apache/spark/pull/11326#discussion_r57473060
--- Diff:
core/src/test/scala/org/apache/spark/deploy/history/HistoryServerSuite.scala ---
@@ -157,12 +157,14 @@ class HistoryServerSuite extends SparkFunSuite with
BeforeAndAfter with Matchers
// SPARK-10873 added the lastUpdated field for each application's
attempt,
// the REST API returns the last modified time of EVENT LOG file for
this field.
// It is not applicable to hard-code this dynamic field in a static
expected file,
- // so here we skip checking the lastUpdated field's value (setting
it as "").
+ // so here we skip checking the lastUpdated field's value (setting
it as 0).
val json = if (jsonOrg.indexOf("lastUpdated") >= 0) {
val subStrings = jsonOrg.split(",")
for (i <- subStrings.indices) {
- if (subStrings(i).indexOf("lastUpdated") >= 0) {
- subStrings(i) = "\"lastUpdated\":\"\""
+ if (subStrings(i).indexOf("lastUpdatedEpoch") >= 0) {
+ subStrings(i) = "\"lastUpdatedEpoch\":0"
+ } else if (subStrings(i).indexOf("lastUpdated") >= 0) {
+ subStrings(i) = "\"lastUpdated\":0"
--- End diff --
Oh, shoot, messed that up. I'll go fix it.
---
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]