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: Dont double up badger file path #1299

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

AndrewSisley
Copy link
Contributor

Relevant issue(s)

Resolves #1293

Description

Previously if $HOME/.defradb is empty, the first time defradb start is run it will create and run defra from the correct folder. If you close down the server and re-run defradb start, it will create and run defra from $HOME/.defradb/$HOME/.defradb/data, but load the config from the correct location.

Might be worth someone giving this one a quick test from windows.

Specify the platform(s) on which this was tested:

  • Debian Linux

@AndrewSisley AndrewSisley added bug Something isn't working action/no-benchmark Skips the action that runs the benchmark. area/cli Related to the CLI binary labels Apr 5, 2023
@AndrewSisley AndrewSisley added this to the DefraDB v0.5 milestone Apr 5, 2023
@AndrewSisley AndrewSisley requested a review from a team April 5, 2023 20:54
@AndrewSisley AndrewSisley self-assigned this Apr 5, 2023
@codecov
Copy link

codecov bot commented Apr 5, 2023

Codecov Report

Merging #1299 (3a527f2) into develop (4f64feb) will decrease coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1299      +/-   ##
===========================================
- Coverage    70.47%   70.38%   -0.09%     
===========================================
  Files          184      184              
  Lines        17825    17825              
===========================================
- Hits         12562    12546      -16     
- Misses        4311     4323      +12     
- Partials       952      956       +4     
Impacted Files Coverage Δ
config/config.go 74.42% <100.00%> (ø)

... and 6 files with indirect coverage changes

@jsimnz
Copy link
Member

jsimnz commented Apr 5, 2023

Might be worth someone giving this one a quick test from windows.

tbh there are no tests (manual) from the Windows perspective 😬. Both Shahzad and I who run windows develop soley via WSL.

@jsimnz
Copy link
Member

jsimnz commented Apr 5, 2023

Tested on an actual windows build (powershell). Looking good!

Copy link
Member

@jsimnz jsimnz left a comment

Choose a reason for hiding this comment

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

LGTM

@AndrewSisley
Copy link
Contributor Author

Cheers John!

Config magic means that these are not nessecarily the same values, and that checking the wrong one can double up the path value.
@AndrewSisley AndrewSisley force-pushed the sisley/fix/I1293-server-dump-2 branch from 3ab939b to 3a527f2 Compare April 6, 2023 14:23
@AndrewSisley AndrewSisley merged commit 50870ab into develop Apr 6, 2023
@AndrewSisley AndrewSisley deleted the sisley/fix/I1293-server-dump-2 branch April 6, 2023 14:33
shahzadlone pushed a commit that referenced this pull request Apr 13, 2023
* Check the path in the config, not the result

Config magic means that these are not nessecarily the same values, and that checking the wrong one can double up the path value.

* Correctly document config file magic
shahzadlone pushed a commit to shahzadlone/defradb that referenced this pull request Feb 23, 2024
* Check the path in the config, not the result

Config magic means that these are not nessecarily the same values, and that checking the wrong one can double up the path value.

* Correctly document config file magic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/no-benchmark Skips the action that runs the benchmark. area/cli Related to the CLI binary bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

defradb start doubles up badger file path on restart
2 participants