Skip to content

Conversation

@10110346
Copy link
Contributor

What changes were proposed in this pull request?

Create rpcEnv and run later needs shutdown. as #18226

How was this patch tested?

unit test

@srowen
Copy link
Member

srowen commented Jun 10, 2017

@10110346 do you know of other related changes? we should make them all at once.

@SparkQA
Copy link

SparkQA commented Jun 10, 2017

Test build #77873 has finished for PR 18259 at commit 77653f4.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class WorkerSuite extends SparkFunSuite with Matchers with BeforeAndAfter

Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be override def after(): Unit = {?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@srowen Because BeforeAndAfter is a trait,so we can simplify.
I referenced the 'MasterSuite.scala'

Copy link
Member

Choose a reason for hiding this comment

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

That's bad practice, and why override exists. For example if you wrote afer { you'd maybe never notice that your cleanup code was silently not being triggered.

The code doesn't do this consistently, but more often does write the full declaration, which is probably a good idea. I'd recommend changing this one.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@srowen I agree with you, i will change this one,thanks

Copy link
Contributor Author

@10110346 10110346 Jun 12, 2017

Choose a reason for hiding this comment

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

@srowen I have tried to change it, but after must write like this

@10110346
Copy link
Contributor Author

10110346 commented Jun 12, 2017

@srowen Thanks. I have checked the whole project,there are no more related changes

Copy link
Member

Choose a reason for hiding this comment

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

That's bad practice, and why override exists. For example if you wrote afer { you'd maybe never notice that your cleanup code was silently not being triggered.

The code doesn't do this consistently, but more often does write the full declaration, which is probably a good idea. I'd recommend changing this one.

Copy link
Member

Choose a reason for hiding this comment

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

Space before

Copy link
Member

Choose a reason for hiding this comment

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

Space before for readability

@SparkQA
Copy link

SparkQA commented Jun 12, 2017

Test build #77929 has finished for PR 18259 at commit d4ee0ce.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class WorkerSuite extends SparkFunSuite with Matchers with BeforeAndAfter

@SparkQA
Copy link

SparkQA commented Jun 13, 2017

Test build #77955 has finished for PR 18259 at commit 67913fd.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class WorkerSuite extends SparkFunSuite with Matchers with BeforeAndAfter

@SparkQA
Copy link

SparkQA commented Jun 13, 2017

Test build #77964 has started for PR 18259 at commit 4787b9b.

@10110346
Copy link
Contributor Author

Jenkins, retest this please

@SparkQA
Copy link

SparkQA commented Jun 13, 2017

Test build #77980 has finished for PR 18259 at commit 4787b9b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class WorkerSuite extends SparkFunSuite with Matchers with BeforeAndAfter

@srowen
Copy link
Member

srowen commented Jun 13, 2017

Merged to master

@asfgit asfgit closed this in 2aaed0a Jun 13, 2017
dataknocker pushed a commit to dataknocker/spark that referenced this pull request Jun 16, 2017
…kerSuite

## What changes were proposed in this pull request?

Create rpcEnv and run later needs shutdown. as apache#18226

## How was this patch tested?
unit test

Author: liuxian <[email protected]>

Closes apache#18259 from 10110346/wip-lx-0610.
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.

3 participants