Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-20518][CORE]Supplement the new blockidsuite unit tests #17794

Closed
wants to merge 1 commit into from

Conversation

heary-cao
Copy link
Contributor

What changes were proposed in this pull request?

This PR adds the new unit tests to support ShuffleDataBlockId , ShuffleIndexBlockId , TempShuffleBlockId , TempLocalBlockId

How was this patch tested?

The new unit test.

@heary-cao heary-cao changed the title Supplement the new blockidsuite unit tests [SPARK-20518]Supplement the new blockidsuite unit tests Apr 28, 2017
@@ -19,6 +19,8 @@ package org.apache.spark.storage

import org.apache.spark.SparkFunSuite

import java.util.UUID
Copy link
Contributor

Choose a reason for hiding this comment

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

The import ordering is not correct, it should be:

java packages

scala packages

third-party packages

spark packages

@@ -101,6 +129,30 @@ class BlockIdSuite extends SparkFunSuite {
assertSame(id, BlockId(id.toString))
}

test("temp local") {
val id = TempLocalBlockId(new UUID(5,2))
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: space after comma.

@jerryshao
Copy link
Contributor

Would you please update the title to add [core] like other PRs.

@heary-cao heary-cao changed the title [SPARK-20518]Supplement the new blockidsuite unit tests [SPARK-20518][CORE]Supplement the new blockidsuite unit tests May 3, 2017
@heary-cao
Copy link
Contributor Author

@jerryshao
I have been updated it.
please review it again.
thanks.

@jerryshao
Copy link
Contributor

The change LGTM, I think test PRs are always welcome. CC @srowen to see committer's comment.

@SparkQA
Copy link

SparkQA commented May 5, 2017

Test build #3691 has finished for PR 17794 at commit a2bd89e.

  • This patch fails from timeout after a configured wait of `250m`.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gatorsmile
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented May 5, 2017

Test build #76499 has finished for PR 17794 at commit a2bd89e.

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

@srowen
Copy link
Member

srowen commented May 7, 2017

Merged to master

@asfgit asfgit closed this in 37f963a May 7, 2017
liyichao pushed a commit to liyichao/spark that referenced this pull request May 24, 2017
## What changes were proposed in this pull request?

This PR adds the new unit tests to support ShuffleDataBlockId , ShuffleIndexBlockId , TempShuffleBlockId , TempLocalBlockId

## How was this patch tested?

The new unit test.

Author: caoxuewen <cao.xuewen@zte.com.cn>

Closes apache#17794 from heary-cao/blockidsuite.
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