Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sonar vulunerability issues #1363

Merged
merged 4 commits into from
Aug 18, 2020
Merged

Conversation

shaofengshi
Copy link
Contributor

Proposed changes

Another batch of fix for static code issues reported by sonar.

Types of changes

What types of changes does your code introduce to Kylin?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have create an issue on Kylin's jira, and have described the bug/feature there in detail
  • Commit messages in my PR start with the related jira ID, like "KYLIN-0000 Make Kylin project open-source"
  • Compiling and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • If this change need a document change, I will prepare another pr against the document branch
  • Any dependent changes have been merged

Further comments

If this is a relatively large or complex change, kick off the discussion at user@kylin or dev@kylin by explaining why you chose the solution you did and what alternatives you considered, etc...

@coveralls
Copy link

coveralls commented Aug 16, 2020

Pull Request Test Coverage Report for Build 6260

  • 13 of 89 (14.61%) changed or added relevant lines in 26 files are covered.
  • 13 unchanged lines in 6 files lost coverage.
  • Overall coverage decreased (-0.004%) to 28.023%

Changes Missing Coverage Covered Lines Changed/Added Lines %
core-common/src/main/java/org/apache/kylin/common/KylinConfig.java 0 1 0.0%
core-common/src/main/java/org/apache/kylin/common/metrics/perflog/PerfLoggerFactory.java 0 1 0.0%
core-common/src/main/java/org/apache/kylin/common/persistence/ResourceTool.java 0 1 0.0%
core-common/src/main/java/org/apache/kylin/common/util/Array.java 0 1 0.0%
core-common/src/main/java/org/apache/kylin/common/util/Dictionary.java 0 1 0.0%
core-common/src/main/java/org/apache/kylin/common/util/Primes.java 0 1 0.0%
core-common/src/main/java/org/apache/kylin/common/util/ServerMode.java 0 1 0.0%
core-dictionary/src/main/java/org/apache/kylin/dict/lookup/LookupTable.java 0 1 0.0%
storage-hbase/src/main/java/org/apache/kylin/storage/hbase/lookup/HBaseLookupTable.java 0 1 0.0%
core-common/src/main/java/org/apache/kylin/common/persistence/ResourceParallelCopier.java 0 3 0.0%
Files with Coverage Reduction New Missed Lines %
core-storage/src/main/java/org/apache/kylin/storage/translate/DerivedFilterTranslator.java 1 0%
tool/src/main/java/org/apache/kylin/tool/query/ProbabilityGenerator.java 1 83.33%
core-common/src/main/java/org/apache/kylin/common/persistence/AutoDeleteDirectory.java 2 56.0%
core-cube/src/main/java/org/apache/kylin/cube/cuboid/TreeCuboidScheduler.java 2 68.46%
core-job/src/main/java/org/apache/kylin/job/impl/threadpool/DefaultScheduler.java 2 80.23%
core-metrics/src/main/java/org/apache/kylin/metrics/lib/impl/MetricsSystem.java 5 66.67%
Totals Coverage Status
Change from base Build 6246: -0.004%
Covered Lines: 26240
Relevant Lines: 93637

💛 - Coveralls

@hit-lacus
Copy link
Member

LGTM , thank you.

@hit-lacus hit-lacus merged commit a032bce into apache:master Aug 18, 2020
hit-lacus pushed a commit to hit-lacus/kylin that referenced this pull request Oct 8, 2020
* minor, fix sonar reported potential vulnerability issues

* minor, fix sonar reported minor vulnerability issues

* minor, fix integration test

* minor, fix IT
hit-lacus pushed a commit that referenced this pull request Oct 12, 2020
* minor, fix sonar reported potential vulnerability issues

* minor, fix sonar reported minor vulnerability issues

* minor, fix integration test

* minor, fix IT
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.

3 participants