Skip to content

SPARK-4147 [CORE] Reduce log4j dependency#4190

Closed
srowen wants to merge 1 commit intoapache:masterfrom
srowen:SPARK-4147
Closed

SPARK-4147 [CORE] Reduce log4j dependency#4190
srowen wants to merge 1 commit intoapache:masterfrom
srowen:SPARK-4147

Conversation

@srowen
Copy link
Member

@srowen srowen commented Jan 24, 2015

Defer use of log4j class until it's known that log4j 1.2 is being used. This may avoid dealing with log4j dependencies for callers that reroute slf4j to another logging framework. The only change is to push one half of the check in the original if condition inside. This is a trivial change, may or may not actually solve a problem, but I think it's all that makes sense to do for SPARK-4147.

…d. This may avoid dealing with log4j dependencies for callers that reroute slf4j to another logging framework.
@SparkQA
Copy link

SparkQA commented Jan 24, 2015

Test build #26052 has started for PR 4190 at commit 4e99942.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 24, 2015

Test build #26052 has finished for PR 4190 at commit 4e99942.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26052/
Test PASSed.

@pwendell
Copy link
Contributor

LGTM. We should have written it this way in the first place (think that might have been my bad) - good catch.

asfgit pushed a commit that referenced this pull request Jan 26, 2015
Defer use of log4j class until it's known that log4j 1.2 is being used. This may avoid dealing with log4j dependencies for callers that reroute slf4j to another logging framework. The only change is to push one half of the check in the original `if` condition inside. This is a trivial change, may or may not actually solve a problem, but I think it's all that makes sense to do for SPARK-4147.

Author: Sean Owen <sowen@cloudera.com>

Closes #4190 from srowen/SPARK-4147 and squashes the following commits:

4e99942 [Sean Owen] Defer use of log4j class until it's known that log4j 1.2 is being used. This may avoid dealing with log4j dependencies for callers that reroute slf4j to another logging framework.

(cherry picked from commit 54e7b45)
Signed-off-by: Patrick Wendell <patrick@databricks.com>
@asfgit asfgit closed this in 54e7b45 Jan 26, 2015
@srowen srowen deleted the SPARK-4147 branch January 27, 2015 13:15
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