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 the bug that Upgrading from rocksdb-4.13 to rocksdb-6.12.6 failed…(#10) #29

Closed
wants to merge 6 commits into from

Conversation

lylth
Copy link
Contributor

@lylth lylth commented Jun 19, 2022

… initialization

Fix the bug that the initialization failed when upgrading from rocksdb-4.13 to rocksdb-6.12.6...(#10)
During initialization, the MANIFEST file of rocksdb is checked to obtain the column family name, but the CURENT file that stores the MANIFEST log in the initial state does not exist, and the error code of IOERROR is returned. The corresponding subcode of IOERROR returned by rocksdb4.13 is kNone, rocksdb6.4.6 Version IOERROR adds a subcode of kPathNotFound.
Stonedb judged that there is only kNone, so it did not go through the process of creating the default column family, resulting in "Default column family not specified" and subsequent errors. Add the "rocksdb::Status::kPathNotFound" judgment process of subcode to create a default column family file to solve the problem of initialization failure

Summary about this PR

Issue Number: close #10

Tests Check List

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Changelog

  • New Feature
  • Bug Fix
  • Improvement
  • Performance Improvement
  • Build/Testing/CI/CD
  • Documentation
  • Not for changelog (changelog entry is not required)

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR-bug bug for pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: Upgrading from rocksdb-4.13 to rocksdb-6.12.6 failed initialization
2 participants