Skip to content

Commit

Permalink
rangefeed: remove LegacyProcessor
Browse files Browse the repository at this point in the history
The ScheduledProcessor has been in default use since 24.1,
substantially out performs the LegacyProcessor, and is the likely
place that new improvements will be implemented.

Here, we remove the LegacyProcessor, retiring the associated cluster
setting.

This is similar to cockroachdb#114410, but reconstructed from scratch.

Epic: none

Release note (ops change): The setting kv.rangefeed.scheduler.enabled
has been retired. The rangefeed scheduler is now unconditionally
enabled.

Co-authored-by: Erik Grinaker <[email protected]>

# Conflicts:
#	pkg/kv/kvserver/rangefeed/BUILD.bazel
#	pkg/kv/kvserver/rangefeed/bench_test.go
#	pkg/kv/kvserver/rangefeed/processor.go
#	pkg/kv/kvserver/rangefeed/processor_helpers_test.go
#	pkg/kv/kvserver/rangefeed/processor_test.go
#	pkg/kv/kvserver/replica_rangefeed.go
  • Loading branch information
stevendanna authored and wenyihu6 committed Oct 23, 2024
1 parent 3e17a3e commit 23fd996
Show file tree
Hide file tree
Showing 10 changed files with 1,782 additions and 2,462 deletions.
2,380 changes: 1,142 additions & 1,238 deletions pkg/kv/kvclient/rangefeed/rangefeed_external_test.go

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion pkg/kv/kvserver/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,6 @@ go_test(
"//pkg/kv",
"//pkg/kv/kvclient",
"//pkg/kv/kvclient/kvcoord",
"//pkg/kv/kvclient/rangefeed",
"//pkg/kv/kvclient/rangefeed/rangefeedcache",
"//pkg/kv/kvpb",
"//pkg/kv/kvserver/abortspan",
Expand Down
1 change: 0 additions & 1 deletion pkg/kv/kvserver/rangefeed/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ go_library(
"stream_manager.go",
"task.go",
"test_helpers.go",
"testutil.go",
"unbuffered_registration.go",
"unbuffered_sender.go",
],
Expand Down
Loading

0 comments on commit 23fd996

Please sign in to comment.