-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
storage/engine: add version number in rocksdb directory #2718
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
Milestone
Comments
BramGruneir
added a commit
to BramGruneir/cockroach
that referenced
this issue
Mar 29, 2016
This adds a new file VERSION to all store directories. To facilitate this, I've added a new proto to keep track the format. This has a tiny bit of future proofing to allow us to have multiple database types with different data versions as well as a minimum value we support. When needed, having this file will allow us to automatically perform migrations during the call to rocksDB.Open(). Fixes cockroachdb#2718.
BramGruneir
added a commit
to BramGruneir/cockroach
that referenced
this issue
Mar 29, 2016
This adds a new file VERSION to all store directories. This has a tiny bit of future proofing to allow us to have multiple databases with different data versions as well as a minimum value we support. When needed, having this file will allow us to automatically perform migrations during the call to rocksDB.Open(). Fixes cockroachdb#2718.
BramGruneir
added a commit
to BramGruneir/cockroach
that referenced
this issue
Mar 29, 2016
This adds a new file VERSION to all store directories. This has a tiny bit of future proofing to allow us to have multiple databases with different data versions as well as a minimum value we support. When needed, having this file will allow us to automatically perform migrations during the call to rocksDB.Open(). Fixes cockroachdb#2718.
BramGruneir
added a commit
to BramGruneir/cockroach
that referenced
this issue
Mar 30, 2016
This adds a new file COCKROACHDB_VERSION to all store directories. When needed, having this file will allow us to automatically perform migrations during the call to rocksDB.Open(). Fixes cockroachdb#2718.
BramGruneir
added a commit
to BramGruneir/cockroach
that referenced
this issue
Mar 30, 2016
This adds a new file COCKROACHDB_VERSION to all store directories. When needed, having this file will allow us to automatically perform migrations during the call to rocksDB.Open(). Fixes cockroachdb#2718.
BramGruneir
added a commit
to BramGruneir/cockroach
that referenced
this issue
Mar 30, 2016
This adds a new file COCKROACHDB_VERSION to all store directories. When needed, having this file will allow us to automatically perform migrations during the call to rocksDB.Open(). Fixes cockroachdb#2718.
BramGruneir
added a commit
to BramGruneir/cockroach
that referenced
this issue
Mar 30, 2016
This adds a new file COCKROACHDB_VERSION to all store directories. When needed, having this file will allow us to automatically perform migrations during the call to rocksDB.Open(). Fixes cockroachdb#2718.
BramGruneir
added a commit
to BramGruneir/cockroach
that referenced
this issue
Mar 31, 2016
This adds a new file COCKROACHDB_VERSION to all store directories. When needed, having this file will allow us to automatically perform migrations during the call to rocksDB.Open(). Fixes cockroachdb#2718.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
We should store a version number alongside the rocksdb data and refuse to open newer versions.
The text was updated successfully, but these errors were encountered: