[
https://issues.apache.org/jira/browse/KYLIN-5330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17645191#comment-17645191
] ASF GitHub Bot commented on KYLIN-5330: --------------------------------------- sonarcloud[bot] commented on PR #2042: URL: https://github.com/apache/kylin/pull/2042#issuecomment-1344029132 SonarCloud Quality Gate failed. [](https://sonarcloud.io/dashboard?id=apache_kylin&pullRequest=2042) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=BUG) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=VULNERABILITY) [](https://sonarcloud.io/project/security_hotspots?id=apache_kylin&pullRequest=2042&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/security_hotspots?id=apache_kylin&pullRequest=2042&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_kylin&pullRequest=2042&resolved=false&types=SECURITY_HOTSPOT) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=CODE_SMELL) [7 Code Smells](https://sonarcloud.io/project/issues?id=apache_kylin&pullRequest=2042&resolved=false&types=CODE_SMELL) [](https://sonarcloud.io/component_measures?id=apache_kylin&pullRequest=2042&metric=new_coverage&view=list) [69.8% Coverage](https://sonarcloud.io/component_measures?id=apache_kylin&pullRequest=2042&metric=new_coverage&view=list) [](https://sonarcloud.io/component_measures?id=apache_kylin&pullRequest=2042&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=apache_kylin&pullRequest=2042&metric=new_duplicated_lines_density&view=list) > During the initialization process of the log thread, the SparkEnv is empty, > which leads to failure > -------------------------------------------------------------------------------------------------- > > Key: KYLIN-5330 > URL: https://issues.apache.org/jira/browse/KYLIN-5330 > Project: Kylin > Issue Type: Bug > Affects Versions: 5.0-alpha > Reporter: sibing.zhang > Priority: Major > Fix For: 5.0-alpha > > Attachments: image-2022-12-05-16-26-36-021.png > > > There is a null pointer exception in the yarn application log file: > !image-2022-12-05-16-26-36-021.png|width=897,height=163! > *root cause* > When SparkEnv has not been initialized, the log thread executes the > SparkEnv.get operation first, causing NPE problems. > *fix design* > When SparkEnv.get is executed, it will cause a null pointer exception. If > SparkEnv cannot be obtained, the new org.apache.hadoop.conf.Configuration > object will be used. -- This message was sent by Atlassian Jira (v8.20.10#820010)
