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-28560][SQL][followup] resolve the remaining comments for PR#25295 #26157

Closed
wants to merge 2 commits into from

Conversation

JkSelf
Copy link
Contributor

@JkSelf JkSelf commented Oct 18, 2019

What changes were proposed in this pull request?

A followup of #25295.

  1. change the logWarning to logDebug in OptimizeLocalShuffleReader.
  2. update the test to check whether query stage reuse can work well with local shuffle reader.

Why are the changes needed?

make code robust

Does this PR introduce any user-facing change?

No

How was this patch tested?

existing tests

@JkSelf
Copy link
Contributor Author

JkSelf commented Oct 18, 2019

@maryannxue @cloud-fan Please help me review. Thanks.

@cloud-fan
Copy link
Contributor

ok to test

@@ -229,6 +229,8 @@ class AdaptiveQueryExecSuite
assert(smj.size == 3)
val bhj = findTopLevelBroadcastHashJoin(adaptivePlan)
assert(bhj.size == 2)
checkNumLocalShuffleReaders(adaptivePlan, 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

there are 2 broadcast joins, but we only have 1 local shuffle reader. Why is it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

checkNumLocalShuffleReaders method should call collect(plan) not call plan.collect. I have updated and check all the local shuffle reader number in existing test methods. Thanks.

@SparkQA
Copy link

SparkQA commented Oct 18, 2019

Test build #112256 has finished for PR 26157 at commit f17db39.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 18, 2019

Test build #112264 has finished for PR 26157 at commit 8b47b7c.

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

@cloud-fan cloud-fan closed this in c3a0d02 Oct 18, 2019
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@HeartSaVioR
Copy link
Contributor

Looks like this PR introduces flaky test for "AdaptiveQueryExecSuite.multiple joins".
https://issues.apache.org/jira/browse/SPARK-29538

The test hadn't been failing but started to fail around 3 days ago, and the failed assertion is added here. @JkSelf could you check this? Thanks in advance.

@HeartSaVioR
Copy link
Contributor

Another observation: the test fails consistently when the test is run alone. The test passes when the test suite is run, but still be flaky.

@JkSelf
Copy link
Contributor Author

JkSelf commented Oct 22, 2019

@HeartSaVioR Thanks for your great findings. I will research it later. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants