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

Correct rocksdb path -- ensure we use KAVA_HOME/data/application.db #1767

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

nddeluca
Copy link
Member

@nddeluca nddeluca commented Nov 7, 2023

No description provided.

and not a nested application.db within that path
@@ -90,7 +90,8 @@ func OpenDB(appOpts types.AppOptions, home string, backendType dbm.BackendType)
// openRocksdb loads existing options, overrides some of them with appOpts and opens database
// option will be overridden only in case if it explicitly specified in appOpts
func openRocksdb(dir string, appOpts types.AppOptions) (dbm.DB, error) {
dbOpts, cfOpts, err := loadLatestOptions(dir)
optionsPath := filepath.Join(dir, "application.db")
Copy link
Contributor

Choose a reason for hiding this comment

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

should we move this to being sourced from config.yml?

Copy link
Member Author

Choose a reason for hiding this comment

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

ya agree, we can implement a better fix on master w/ an integration test to ensure path doesn't change in the future

@pirtleshell pirtleshell merged commit 72063dd into release/v0.25.x Nov 7, 2023
@pirtleshell pirtleshell deleted the nd-fix-testnet-rocksdb branch November 7, 2023 01:06
pirtleshell pushed a commit that referenced this pull request Nov 20, 2023
pirtleshell pushed a commit that referenced this pull request Nov 20, 2023
ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path
pirtleshell added a commit that referenced this pull request Nov 20, 2023
* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
mergify bot pushed a commit that referenced this pull request Nov 20, 2023
* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Nov 20, 2023
* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Nov 20, 2023
* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Nov 20, 2023
* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Nov 20, 2023
* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md
mergify bot pushed a commit that referenced this pull request Nov 20, 2023
* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)
pirtleshell added a commit that referenced this pull request Nov 20, 2023
…#1777)

* fix(rocksdb): correctly resolve rocksdb path (#1767) (#1776)

* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md

* update changelog

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Nov 20, 2023
…#1778)

* fix(rocksdb): correctly resolve rocksdb path (#1767) (#1776)

* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md

* update changelog

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Nov 21, 2023
…#1782)

* fix(rocksdb): correctly resolve rocksdb path (#1767) (#1776)

* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

* update changelog

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Nov 21, 2023
…#1779)

* fix(rocksdb): correctly resolve rocksdb path (#1767) (#1776)

* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md

* update changelog

* disable remote proto braking ci check

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
galxy25 pushed a commit that referenced this pull request Dec 5, 2023
…#1782)

* fix(rocksdb): correctly resolve rocksdb path (#1767) (#1776)

* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

* update changelog

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
galxy25 pushed a commit that referenced this pull request Dec 5, 2023
…#1782)

* fix(rocksdb): correctly resolve rocksdb path (#1767) (#1776)

* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

* update changelog

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Jan 4, 2024
…#1780)

* fix(rocksdb): correctly resolve rocksdb path (#1767) (#1776)

* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md

* update changelog

* update golangci-lint job

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
pirtleshell added a commit that referenced this pull request Jan 4, 2024
…#1781)

* fix(rocksdb): correctly resolve rocksdb path (#1767) (#1776)

* fix(rocksdb): correctly resolve rocksdb path (#1767)

ensure we use KAVA_HOME/data/application.db and not a nested
application.db within that path

* update changelog

---------

Co-authored-by: Nick DeLuca <nickdeluca08@gmail.com>
(cherry picked from commit aca738f)

# Conflicts:
#	CHANGELOG.md

* update changelog

* update golangci-lint job

---------

Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
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