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-26289][CORE]cleanup enablePerfMetrics parameter from BytesToBytesMap #23244

Closed
wants to merge 1 commit into from

Conversation

heary-cao
Copy link
Contributor

What changes were proposed in this pull request?

enablePerfMetrics was originally designed in BytesToBytesMap to control getNumHashCollisions getTimeSpentResizingNs getAverageProbesPerLookup.

However, as the Spark version gradual progress. this parameter is only used for getAverageProbesPerLookup and always given to true when using BytesToBytesMap.

it is also dangerous to determine whether getAverageProbesPerLookup opens and throws an IllegalStateException exception.
So this pr will be remove enablePerfMetrics parameter from BytesToBytesMap. thanks.

How was this patch tested?

the existed test cases.

@heary-cao
Copy link
Contributor Author

cc @cloud-fan, @maropu, @kiszk

@SparkQA
Copy link

SparkQA commented Dec 6, 2018

Test build #99760 has finished for PR 23244 at commit 16d30ec.

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

@@ -209,23 +205,14 @@ public BytesToBytesMap(
TaskMemoryManager taskMemoryManager,
Copy link
Contributor

Choose a reason for hiding this comment

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

If this constructor is called, the enablePerfMetrics will be false. Where do we use this constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

review the current master branch, this constructor is called by HashedRelationSuite , AggregateBenchmark, UnsafeKVExternalSorterSuite, AbstractBytesToBytesMapSuite. thanks.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK all tests, then we are fine

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@asfgit asfgit closed this in bfc5569 Dec 7, 2018
@heary-cao
Copy link
Contributor Author

thanks, @cloud-fan

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

## What changes were proposed in this pull request?

`enablePerfMetrics `was originally designed in `BytesToBytesMap `to control `getNumHashCollisions  getTimeSpentResizingNs  getAverageProbesPerLookup`.

However, as the Spark version gradual progress.  this parameter is only used for `getAverageProbesPerLookup ` and always given to true when using `BytesToBytesMap`.

 it is also dangerous to determine whether `getAverageProbesPerLookup `opens and throws an `IllegalStateException `exception.
So this pr will be remove `enablePerfMetrics `parameter from `BytesToBytesMap`. thanks.

## How was this patch tested?

the existed test cases.

Closes apache#23244 from heary-cao/enablePerfMetrics.

Authored-by: caoxuewen <cao.xuewen@zte.com.cn>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
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