Skip to content

Conversation

@heary-cao
Copy link
Contributor

What changes were proposed in this pull request?

When build hash Map with one row of data and run out of memory, we should throw a SparkOutOfMemoryError exception, which is more accurate than SparkException. this PR fix it.

How was this patch tested?

N / A

@heary-cao
Copy link
Contributor Author

cc @cloud-fan @gatorsmile @kiszk

@SparkQA
Copy link

SparkQA commented Dec 1, 2018

Test build #99534 has finished for PR 23190 at commit 8046944.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@heary-cao heary-cao force-pushed the throwUnsafeHashedRelation branch from 8046944 to 92eb086 Compare December 1, 2018 05:54
@SparkQA
Copy link

SparkQA commented Dec 1, 2018

Test build #99540 has finished for PR 23190 at commit 92eb086.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@heary-cao heary-cao force-pushed the throwUnsafeHashedRelation branch from 92eb086 to 3376524 Compare December 1, 2018 06:02
@SparkQA
Copy link

SparkQA commented Dec 1, 2018

Test build #99541 has finished for PR 23190 at commit 3376524.

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

@heary-cao heary-cao force-pushed the throwUnsafeHashedRelation branch from 3376524 to 5b39ed3 Compare December 1, 2018 10:59
@SparkQA
Copy link

SparkQA commented Dec 1, 2018

Test build #99548 has finished for PR 23190 at commit 5b39ed3.

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

@heary-cao
Copy link
Contributor Author

retest this please

@SparkQA
Copy link

SparkQA commented Dec 1, 2018

Test build #99554 has finished for PR 23190 at commit 5b39ed3.

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

@heary-cao heary-cao force-pushed the throwUnsafeHashedRelation branch from 5b39ed3 to 87c567d Compare December 1, 2018 20:47
@SparkQA
Copy link

SparkQA commented Dec 1, 2018

Test build #99557 has finished for PR 23190 at commit 87c567d.

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

@cloud-fan
Copy link
Contributor

retest this please

@cloud-fan
Copy link
Contributor

LGTM

@kiszk
Copy link
Member

kiszk commented Dec 3, 2018

retest this please

@kiszk
Copy link
Member

kiszk commented Dec 3, 2018

Is this follow-up of #23084?

Copy link
Member

Choose a reason for hiding this comment

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

Is it better to use _?

@kiszk
Copy link
Member

kiszk commented Dec 3, 2018

LGTM except two comments

@heary-cao heary-cao force-pushed the throwUnsafeHashedRelation branch from 87c567d to 44b9e03 Compare December 3, 2018 01:41
@heary-cao heary-cao changed the title [MINOR][SQL]throw SparkOutOfMemoryError intead of SparkException in UnsafeHashedRelation [MINOR][ FOLLOW-UP][SQL]throw SparkOutOfMemoryError intead of SparkException in UnsafeHashedRelation Dec 3, 2018
@SparkQA
Copy link

SparkQA commented Dec 3, 2018

Test build #99582 has finished for PR 23190 at commit 87c567d.

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

@SparkQA
Copy link

SparkQA commented Dec 3, 2018

Test build #99584 has finished for PR 23190 at commit 44b9e03.

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

Copy link
Member

@gatorsmile gatorsmile left a comment

Choose a reason for hiding this comment

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

Please change the PR title to [SPARK-26117] [FOLLOW-UP][SQL]throw SparkOutOfMemoryError intead of SparkException in UnsafeHashedRelation

@heary-cao heary-cao changed the title [MINOR][ FOLLOW-UP][SQL]throw SparkOutOfMemoryError intead of SparkException in UnsafeHashedRelation [SPARK-26117] [FOLLOW-UP][SQL]throw SparkOutOfMemoryError intead of SparkException in UnsafeHashedRelation Dec 3, 2018
@heary-cao heary-cao changed the title [SPARK-26117] [FOLLOW-UP][SQL]throw SparkOutOfMemoryError intead of SparkException in UnsafeHashedRelation [SPARK-26117][FOLLOW-UP][SQL]throw SparkOutOfMemoryError intead of SparkException in UnsafeHashedRelation Dec 3, 2018
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@asfgit asfgit closed this in bfa3d32 Dec 3, 2018
@heary-cao
Copy link
Contributor Author

thanks, @cloud-fan @gatorsmile @kiszk.

jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…parkException in UnsafeHashedRelation

## What changes were proposed in this pull request?

When build hash Map with one row of data and run out of memory, we should throw a SparkOutOfMemoryError exception, which is more accurate than SparkException. this PR fix it.

## How was this patch tested?

N / A

Closes apache#23190 from heary-cao/throwUnsafeHashedRelation.

Authored-by: caoxuewen <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
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