-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bulkio: Implement
CREATE REPLICATION STREAM
.
Initial implementation of `CREATE REPLICATION STREAM`. The implementation uses changefeed distflow processing which has been refactor to accomodate this new use case. The replication stream expects to receive raw KVs. This is accomplished by implementing native encoding in changefeeds: this encoder emits raw bytes representing keys and values. The plan hook does a "core" style changefeeds -- that is, it expects the client to be connected to receive changed rows. Follow on work will implement replication stream resumer as well as replication stream sinks. Release Notes: None
- Loading branch information
Yevgeniy Miretskiy
committed
Feb 17, 2021
1 parent
0eecc47
commit fd9cde8
Showing
19 changed files
with
948 additions
and
169 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
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
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,19 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
go_library( | ||
name = "changefeeddist", | ||
srcs = ["distflow.go"], | ||
importpath = "github.com/cockroachdb/cockroach/pkg/ccl/changefeedccl/changefeeddist", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//pkg/jobs/jobspb", | ||
"//pkg/kv", | ||
"//pkg/roachpb", | ||
"//pkg/sql", | ||
"//pkg/sql/execinfrapb", | ||
"//pkg/sql/physicalplan", | ||
"//pkg/sql/sem/tree", | ||
"//pkg/sql/types", | ||
"//pkg/util/hlc", | ||
], | ||
) |
Oops, something went wrong.