forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
93901: kvstorage: add package r=pavelkalinnikov a=tbg We need a place for logic and testing of the engine interactions for the separate raft log to live. This is this place. Epic: CRDB-220 Co-authored-by: Tobias Grieger <[email protected]>
- Loading branch information
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
load("//build/bazelutil/unused_checker:unused.bzl", "get_x_data") | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "kvstorage", | ||
srcs = ["doc.go"], | ||
importpath = "github.com/cockroachdb/cockroach/pkg/kv/kvserver/kvstorage", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
get_x_data(name = "get_x_data") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2022 The Cockroach Authors. | ||
// | ||
// Use of this software is governed by the Business Source License | ||
// included in the file licenses/BSL.txt. | ||
// | ||
// As of the Change Date specified in that file, in accordance with | ||
// the Business Source License, use of this software will be governed | ||
// by the Apache License, Version 2.0, included in the file | ||
// licenses/APL.txt. | ||
|
||
// Package kvstorage houses the logic that manages the on-disk state for the | ||
// Replicas housed on a Store. Replicas store data in two storage.Engine | ||
// instances, which are optionally (and at the time of writing, always) | ||
// identical. One Engine, the "log storage", stores Raft-related state (such as | ||
// the raft log), while the other engine stores the replicated keyspace. | ||
// | ||
// The ability to separate log and state machine opens up performance | ||
// improvements, but results in a more complex lifecycle where operations that | ||
// need to update both the state machine and the raft state require more complex | ||
// recovery in the event of an ill-timed crash. Encapsulating and testing this | ||
// logic is the raison d'être for this package. | ||
package kvstorage |