Skip to content

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR adds some test cases for #35001. Test cases were not added because there are related bugs but they are fixed now.

Why are the changes needed?

To avoid regressions.

Does this PR introduce any user-facing change?

No, dev-only.

How was this patch tested?

This PR adds test cases that were manually tested in #35001.

@HyukjinKwon
Copy link
Member Author

HyukjinKwon commented Dec 29, 2021

cc @cloud-fan, @AngersZhuuuu @yaooqinn FYI

@github-actions github-actions bot added the SQL label Dec 29, 2021
Copy link
Contributor

@AngersZhuuuu AngersZhuuuu left a comment

Choose a reason for hiding this comment

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

LGTM.

@yaooqinn
Copy link
Member

+1,LGTM

@HyukjinKwon
Copy link
Member Author

Wait .. the tests pass in IDE but fails in SBT shall command. Let me investigate this a bit more.

@github-actions github-actions bot added the CORE label Dec 29, 2021
if (level.isDefined) {
logger.setLevel(level.get)
logger.get().setLevel(level.get)
LogManager.getContext(false).asInstanceOf[LoggerContext].updateLoggers()
Copy link
Member Author

Choose a reason for hiding this comment

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

@viirya, I borrowed your fix from #35012 but TBH I have less background here. Do you mind reviewing this please? This change fixes the issue in withLogAppender where the logger level is not changed.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think the issue is the same. Once the log level is set, it doesn't get changed. That's why it passed in IDE when I run it individually, and it fails when I run them in batch via SBT.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't mind making this in a separate PR if you guys feel that's better.

Copy link
Member

Choose a reason for hiding this comment

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

lgtm. I thought we should update the loggers here too. I actually was wondering if this should be do the same, but as no test failure happens I thought it maybe fine. :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

@HyukjinKwon
Copy link
Member Author

Merged to master!

@HyukjinKwon HyukjinKwon deleted the SPARK-37727-followup branch January 4, 2022 00:51
asiunov pushed a commit to ascend-io/spark that referenced this pull request Aug 25, 2022
…Session.builder.getOrCreate

### What changes were proposed in this pull request?

This PR adds some test cases for apache#35001. Test cases were not added because there are related bugs but they are fixed now.

### Why are the changes needed?

To avoid regressions.

### Does this PR introduce _any_ user-facing change?

No, dev-only.

### How was this patch tested?

This PR adds test cases that were manually tested in apache#35001.

Closes apache#35048 from HyukjinKwon/SPARK-37727-followup.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants