Skip to content

Conversation

@MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Jan 20, 2020

What changes were proposed in this pull request?

In the PR, I propose to output additional msg from the tests where a log appender is added. The message is printed as a part of IllegalStateException in the case of reaching the limit of maximum number of logged events.

Why are the changes needed?

If a log appender is not removed from the log4j appenders list. the caller message could help to investigate the problem and find the test which doesn't remove the log appender.

Does this PR introduce any user-facing change?

No

How was this patch tested?

By running the modified test suites AvroSuite, CSVSuite, ResolveHintsSuite and etc.

@MaxGekk
Copy link
Member Author

MaxGekk commented Jan 20, 2020

@HyukjinKwon This could help in the investigation of #27287 (comment)

@SparkQA
Copy link

SparkQA commented Jan 20, 2020

Test build #117130 has finished for PR 27296 at commit 8f738da.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • class LogAppender(msg: String = \"\", maxEvents: Int = 100) extends AppenderSkeleton

@HyukjinKwon
Copy link
Member

Merged to master.

@MaxGekk MaxGekk deleted the assign-name-to-log-appender branch June 5, 2020 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants