Skip to content

KYLIN-4826 fix kylin.source.hive.warehouse-dir can't found#1489

Merged
hit-lacus merged 2 commits intoapache:masterfrom
wolfboys:master
Nov 30, 2020
Merged

KYLIN-4826 fix kylin.source.hive.warehouse-dir can't found#1489
hit-lacus merged 2 commits intoapache:masterfrom
wolfboys:master

Conversation

@wolfboys
Copy link
Copy Markdown
Member

Proposed changes

when using kylin 3.1.1's global dictionary, building the global dictionary failed because it could not be found "kylin.source.hive.warehouse-dir", resulting input path error.

After kylin is started for the first time, when it is started again, ${dir}/cached-hive-dependency.sh will be used, now " kylin.source.hive.warehouse-dir" is not in cached-hive- dependency.sh, the parameter is null, causing a bug

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...

@codecov-io
Copy link
Copy Markdown

codecov-io commented Nov 27, 2020

Codecov Report

Merging #1489 (b547491) into master (3e12b6d) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1489      +/-   ##
============================================
- Coverage     25.51%   25.49%   -0.03%     
+ Complexity     6764     6763       -1     
============================================
  Files          1505     1505              
  Lines         93618    93621       +3     
  Branches      13111    13112       +1     
============================================
- Hits          23884    23866      -18     
- Misses        67357    67372      +15     
- Partials       2377     2383       +6     
Impacted Files Coverage Δ Complexity Δ
.../java/org/apache/kylin/common/KylinConfigBase.java 12.51% <0.00%> (-0.05%) 51.00 <0.00> (ø)
...he/kylin/dict/lookup/cache/RocksDBLookupTable.java 72.97% <0.00%> (-5.41%) 6.00% <0.00%> (-1.00%)
.../apache/kylin/tool/query/ProbabilityGenerator.java 71.05% <0.00%> (-5.27%) 11.00% <0.00%> (ø%)
...rg/apache/kylin/cube/inmemcubing/MemDiskStore.java 66.56% <0.00%> (-4.56%) 7.00% <0.00%> (ø%)
...he/kylin/job/impl/threadpool/DefaultScheduler.java 73.25% <0.00%> (-2.33%) 12.00% <0.00%> (ø%)
...ream/core/storage/columnar/ColumnarStoreCache.java 55.68% <0.00%> (+3.40%) 8.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e12b6d...b547491. Read the comment docs.

@coveralls
Copy link
Copy Markdown

coveralls commented Nov 27, 2020

Pull Request Test Coverage Report for Build 6588

  • 0 of 4 (0.0%) changed or added relevant lines in 1 file are covered.
  • 12 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.007%) to 28.042%

Changes Missing Coverage Covered Lines Changed/Added Lines %
core-common/src/main/java/org/apache/kylin/common/KylinConfigBase.java 0 4 0.0%
Files with Coverage Reduction New Missed Lines %
core-dictionary/src/main/java/org/apache/kylin/dict/lookup/cache/RocksDBLookupTable.java 1 81.08%
core-job/src/main/java/org/apache/kylin/job/impl/threadpool/DefaultScheduler.java 2 79.07%
core-cube/src/main/java/org/apache/kylin/cube/inmemcubing/MemDiskStore.java 9 76.29%
Totals Coverage Status
Change from base Build 6578: -0.007%
Covered Lines: 26253
Relevant Lines: 93621

💛 - Coveralls

Copy link
Copy Markdown
Member

@hit-lacus hit-lacus left a comment

Choose a reason for hiding this comment

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

Approved

@hit-lacus hit-lacus merged commit fffc3e9 into apache:master Nov 30, 2020
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