Skip to content

Conversation

@vanzin
Copy link
Contributor

@vanzin vanzin commented Feb 4, 2015

Clean up some test setup code to remove duplicate instantiation of the
provider. Also make sure unfinished apps are sorted correctly.

Clean up some test setup code to remove duplicate instantiation of the
provider. Also make sure unfinished apps are sorted correctly.
@SparkQA
Copy link

SparkQA commented Feb 4, 2015

Test build #26768 has started for PR 4370 at commit 298371c.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 4, 2015

Test build #26768 has finished for PR 4370 at commit 298371c.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26768/
Test FAILed.

@vanzin
Copy link
Contributor Author

vanzin commented Feb 4, 2015

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Feb 4, 2015

Test build #26779 has started for PR 4370 at commit 298371c.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 4, 2015

Test build #26779 has finished for PR 4370 at commit 298371c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26779/
Test PASSed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest LGTM, but, isn't this defining a different and inconsistent sort order? For example if the first argument's start and end time are after and before the other's start and times, respectively, then the method returns false both ways, when one has to be true. The existing logic is to sort by endTime descending, then startTime descending, so I think it's more like...

if (i1.endTime != i2.endTime) {
  i1.endTime > i2.endTime
} else {
  i1.startTime > i2.startTime
}

Marcelo Vanzin added 4 commits February 6, 2015 11:40
Rename variables / apps so that it's easier to follow which one
is which, and also tweak the app times so that they better test
the sorting code.
@SparkQA
Copy link

SparkQA commented Feb 6, 2015

Test build #26939 has started for PR 4370 at commit 0d048d5.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Feb 6, 2015

Test build #26939 has finished for PR 4370 at commit 0d048d5.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • "public class " + className + extendsText + " implements java.io.Serializable
    • case class RegisterExecutor(

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26939/
Test PASSed.

@andrewor14
Copy link
Contributor

LGTM I'm merging this into master 1.3 thanks @vanzin

asfgit pushed a commit that referenced this pull request Feb 6, 2015
Clean up some test setup code to remove duplicate instantiation of the
provider. Also make sure unfinished apps are sorted correctly.

Author: Marcelo Vanzin <vanzin@cloudera.com>

Closes #4370 from vanzin/SPARK-5600 and squashes the following commits:

0d048d5 [Marcelo Vanzin] Cleanup test code a bit.
2585119 [Marcelo Vanzin] Review feedback.
8b97544 [Marcelo Vanzin] Merge branch 'master' into SPARK-5600
be979e9 [Marcelo Vanzin] Merge branch 'master' into SPARK-5600
298371c [Marcelo Vanzin] [SPARK-5600] [core] Clean up FsHistoryProvider test, fix app sort order.

(cherry picked from commit 5687bab)
Signed-off-by: Andrew Or <andrew@databricks.com>
@asfgit asfgit closed this in 5687bab Feb 6, 2015
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't imagine it probably matters, but this should be > instead of >= I think? or else this says that two equal intervals should both precede the other. I bet it doesn't make the sort wrong, just might affect whether the sort is stable, but who cares here.

@vanzin vanzin deleted the SPARK-5600 branch February 12, 2015 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants