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

[badger] Make default dirs work in Windows #1653

Merged
merged 1 commit into from
Jul 4, 2019

Conversation

burmanm
Copy link
Contributor

@burmanm burmanm commented Jul 4, 2019

Which problem is this PR solving?

Resolves #1652 (Windows default directories do not work), but also ensures that the directories are created successfully since badger only creates the last directory - not the missing parent directories. This is why default directory does not work unless data is created first.

Short description of the changes

Use os.pathSeparator instead of hardcoded / and create directories if possible.

Windows also, fixes issue jaegertracing#1652

Signed-off-by: Michael Burman <yak@iki.fi>
@burmanm
Copy link
Contributor Author

burmanm commented Jul 4, 2019

I don't think travis test failures are because of changes in this PR

@yurishkuro yurishkuro changed the title Badger, make default dirs work in Windows [badger] Make default dirs work in Windows Jul 4, 2019
@yurishkuro yurishkuro added the storage/badger Issues related to badger storage label Jul 4, 2019
@yurishkuro
Copy link
Member

restarting

@codecov
Copy link

codecov bot commented Jul 4, 2019

Codecov Report

Merging #1653 into master will increase coverage by <.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #1653      +/-   ##
=========================================
+ Coverage    98.7%   98.7%   +<.01%     
=========================================
  Files         193     193              
  Lines        9219    9224       +5     
=========================================
+ Hits         9100    9105       +5     
+ Misses         92      91       -1     
- Partials       27      28       +1
Impacted Files Coverage Δ
plugin/storage/badger/options.go 100% <100%> (ø) ⬆️
plugin/storage/badger/factory.go 97.22% <60%> (-2.78%) ⬇️
...lugin/sampling/strategystore/adaptive/processor.go 100% <0%> (+0.78%) ⬆️

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 ce31531...c137280. Read the comment docs.

@yurishkuro yurishkuro merged commit c36a281 into jaegertracing:master Jul 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
storage/badger Issues related to badger storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Badger can't create default directories under Windows
2 participants