Skip to content

Conversation

@ankuriitg
Copy link
Contributor

@ankuriitg ankuriitg commented Oct 2, 2018

What changes were proposed in this pull request?

Cause: Recently test_glr_summary failed for PR of SPARK-25118, which enables
spark-shell to run with default log level. It failed because this logdebug was
called for GeneralizedLinearRegressionTrainingSummary which invoked its toString
method, which started a Spark Job and ended up running into an infinite loop.

Fix: Remove logDebug statement for outer objects as closures aren't implemented
with outerclasses in Scala 2.12 and this debug statement looses its purpose

How was this patch tested?

Ran python pyspark-ml tests on top of PR for SPARK-25118 and ClosureCleaner unit
tests

ClosureCleaner

Cause: Recently a test_glr_summary failed for PR of SPARK-25118, which enables
spark-shell to run with default log level. It failed because this logdebug was
called for GeneralizedLinearRegressionTrainingSummary which invoked its toString
method, which started a Spark Job and ended up running into an infinite loop.

Fix: Remove logDebug statement for outer objects, as in Scala 2.12, closures
aren't implemented with outerclasses and this debug statement looses its purpose

Testing Done:
Ran python pyspark-ml tests on top of PR for SPARK-25118 and ClosureCleaner unit
tests
@ankuriitg
Copy link
Contributor Author

@srowen @yanboliang

@vanzin
Copy link
Contributor

vanzin commented Oct 2, 2018

ok to test

Copy link
Contributor

@vanzin vanzin left a comment

Choose a reason for hiding this comment

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

Move ClosureCleaner back to the PR title line. But really what you're doing is avoiding to call toString on objects from the closure cleaner, not just remove those log lines (which could even stay there, especially if it still makes sense in 2.11).

@ankuriitg ankuriitg changed the title [SPARK-25586][Core] Remove logdebug statement for outer objects from [SPARK-25586][Core] Remove logdebug statement for outer objects from ClosureCleaner Oct 2, 2018
@ankuriitg ankuriitg changed the title [SPARK-25586][Core] Remove logdebug statement for outer objects from ClosureCleaner [SPARK-25586][Core] Remove outer objects from logdebug statements in ClosureCleaner Oct 2, 2018
@SparkQA
Copy link

SparkQA commented Oct 3, 2018

Test build #96875 has finished for PR 22616 at commit cc8926d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • logDebug(s\" + cloning the object of class $

@SparkQA
Copy link

SparkQA commented Oct 3, 2018

Test build #96876 has finished for PR 22616 at commit 2723b47.

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

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

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

Looks good, just a few nits

@SparkQA
Copy link

SparkQA commented Oct 3, 2018

Test build #96898 has finished for PR 22616 at commit dd08905.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • logDebug(s\" + cloning instance of class $

@vanzin
Copy link
Contributor

vanzin commented Oct 3, 2018

Known flaky test. Merging to master.

@asfgit asfgit closed this in 075dd62 Oct 3, 2018
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
…ClosureCleaner

## What changes were proposed in this pull request?

Cause: Recently test_glr_summary failed for PR of SPARK-25118, which enables
spark-shell to run with default log level. It failed because this logdebug was
called for GeneralizedLinearRegressionTrainingSummary which invoked its toString
method, which started a Spark Job and ended up running into an infinite loop.

Fix: Remove logDebug statement for outer objects as closures aren't implemented
with outerclasses in Scala 2.12 and this debug statement looses its purpose

## How was this patch tested?

Ran python pyspark-ml tests on top of PR for SPARK-25118 and ClosureCleaner unit
tests

Closes apache#22616 from ankuriitg/ankur/SPARK-25586.

Authored-by: ankurgupta <[email protected]>
Signed-off-by: Marcelo Vanzin <[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.

4 participants