Skip to content

Commit 7da6ee1

Browse files
craig[bot]jbowens
andcommitted
Merge #143427
143427: go.mod: bump Pebble to b635c4cbebff r=RaduBerinde a=jbowens Changes: * [`b635c4cb`](cockroachdb/pebble@b635c4cb) sstable: remove WriterOptions.Parallelism * [`f19adee1`](cockroachdb/pebble@f19adee1) db: remove MaxWriterConcurrency and CPUWorkPermissionGranter Release note: none. Epic: none. Co-authored-by: Jackson Owens <[email protected]>
2 parents fd2f8d1 + da752fa commit 7da6ee1

File tree

7 files changed

+7
-31
lines changed

7 files changed

+7
-31
lines changed

DEPS.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,10 +1895,10 @@ def go_deps():
18951895
patches = [
18961896
"@com_github_cockroachdb_cockroach//build/patches:com_github_cockroachdb_pebble.patch",
18971897
],
1898-
sha256 = "4df0db2feef2d1e9cb3e19678c1a4fa1d73b638ad6c1de4eb9f816787b9e265f",
1899-
strip_prefix = "github.com/cockroachdb/[email protected]20250324192946-96302028f139",
1898+
sha256 = "a8901f53c4564b5f9de74cf014d3a19d5dbde194fe4f77c5e21cea71dceb8e91",
1899+
strip_prefix = "github.com/cockroachdb/[email protected]20250325151719-b635c4cbebff",
19001900
urls = [
1901-
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20250324192946-96302028f139.zip",
1901+
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20250325151719-b635c4cbebff.zip",
19021902
],
19031903
)
19041904
go_repository(

build/bazelutil/distdir_files.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ DISTDIR_FILES = {
361361
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/gostdlib/com_github_cockroachdb_gostdlib-v1.19.0.zip": "c4d516bcfe8c07b6fc09b8a9a07a95065b36c2855627cb3514e40c98f872b69e",
362362
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/logtags/com_github_cockroachdb_logtags-v0.0.0-20241215232642-bb51bb14a506.zip": "920068af09e3846d9ebb4e4a7787ff1dd10f3989c5f940ad861b0f6a9f824f6e",
363363
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/metamorphic/com_github_cockroachdb_metamorphic-v0.0.0-20231108215700-4ba948b56895.zip": "28c8cf42192951b69378cf537be5a9a43f2aeb35542908cc4fe5f689505853ea",
364-
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20250324192946-96302028f139.zip": "4df0db2feef2d1e9cb3e19678c1a4fa1d73b638ad6c1de4eb9f816787b9e265f",
364+
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/pebble/com_github_cockroachdb_pebble-v0.0.0-20250325151719-b635c4cbebff.zip": "a8901f53c4564b5f9de74cf014d3a19d5dbde194fe4f77c5e21cea71dceb8e91",
365365
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/redact/com_github_cockroachdb_redact-v1.1.6.zip": "018eccb5fb9ca52d43ec9eaf213539d01c1f2b94e0e822406ebfb2e9321ef6cf",
366366
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/returncheck/com_github_cockroachdb_returncheck-v0.0.0-20200612231554-92cdbca611dd.zip": "ce92ba4352deec995b1f2eecf16eba7f5d51f5aa245a1c362dfe24c83d31f82b",
367367
"https://storage.googleapis.com/cockroach-godeps/gomod/github.com/cockroachdb/stress/com_github_cockroachdb_stress-v0.0.0-20220803192808-1806698b1b7b.zip": "3fda531795c600daf25532a4f98be2a1335cd1e5e182c72789bca79f5f69fcc1",

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ require (
136136
github.com/cockroachdb/go-test-teamcity v0.0.0-20191211140407-cff980ad0a55
137137
github.com/cockroachdb/gostdlib v1.19.0
138138
github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506
139-
github.com/cockroachdb/pebble v0.0.0-20250324192946-96302028f139
139+
github.com/cockroachdb/pebble v0.0.0-20250325151719-b635c4cbebff
140140
github.com/cockroachdb/redact v1.1.6
141141
github.com/cockroachdb/returncheck v0.0.0-20200612231554-92cdbca611dd
142142
github.com/cockroachdb/stress v0.0.0-20220803192808-1806698b1b7b

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,8 @@ github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506 h1:ASDL+UJcILM
587587
github.com/cockroachdb/logtags v0.0.0-20241215232642-bb51bb14a506/go.mod h1:Mw7HqKr2kdtu6aYGn3tPmAftiP3QPX63LdK/zcariIo=
588588
github.com/cockroachdb/metamorphic v0.0.0-20231108215700-4ba948b56895 h1:XANOgPYtvELQ/h4IrmPAohXqe2pWA8Bwhejr3VQoZsA=
589589
github.com/cockroachdb/metamorphic v0.0.0-20231108215700-4ba948b56895/go.mod h1:aPd7gM9ov9M8v32Yy5NJrDyOcD8z642dqs+F0CeNXfA=
590-
github.com/cockroachdb/pebble v0.0.0-20250324192946-96302028f139 h1:M4OyhSDhrUnmVbjRhZT+BIgXChNdcnGIiJnCBza4tH4=
591-
github.com/cockroachdb/pebble v0.0.0-20250324192946-96302028f139/go.mod h1:08jsvr5vUySLPaDXKxg/jhKDWxzg9Hu27nhhi1z30os=
590+
github.com/cockroachdb/pebble v0.0.0-20250325151719-b635c4cbebff h1:Pj60B+NMfdKzLHPwNpJ2ULVrL079Ll4oFCiAIxxXoZg=
591+
github.com/cockroachdb/pebble v0.0.0-20250325151719-b635c4cbebff/go.mod h1:08jsvr5vUySLPaDXKxg/jhKDWxzg9Hu27nhhi1z30os=
592592
github.com/cockroachdb/redact v1.1.3/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
593593
github.com/cockroachdb/redact v1.1.6 h1:zXJBwDZ84xJNlHl1rMyCojqyIxv+7YUpQiJLQ7n4314=
594594
github.com/cockroachdb/redact v1.1.6/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=

pkg/cli/debug.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -956,11 +956,6 @@ func runDebugCompact(cmd *cobra.Command, args []string) error {
956956
storage.MustExist,
957957
storage.DisableAutomaticCompactions,
958958
storage.MaxConcurrentCompactions(debugCompactOpts.maxConcurrency),
959-
// Currently, any concurrency over 0 enables Writer parallelism.
960-
storage.MaxWriterConcurrency(1),
961-
// Force Writer Parallelism will allow Writer parallelism to
962-
// be enabled without checking the CPU.
963-
storage.ForceWriterParallelism,
964959
)
965960
if err != nil {
966961
return err

pkg/server/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,6 @@ func (cfg *Config) CreateEngines(ctx context.Context) (Engines, error) {
838838
addCfgOpt(storage.Caches(pebbleCache, fileCache))
839839
// TODO(radu): move up all remaining settings below so they apply to in-memory stores as well.
840840
addCfgOpt(storage.MaxOpenFiles(int(openFileLimitPerStore)))
841-
addCfgOpt(storage.MaxWriterConcurrency(2))
842841
addCfgOpt(storage.RemoteStorageFactory(cfg.EarlyBootExternalStorageAccessor))
843842
if sharedStorage != nil {
844843
addCfgOpt(storage.SharedStorage(sharedStorage))

pkg/storage/open.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ var DisableAutomaticCompactions ConfigOption = func(cfg *engineConfig) error {
5353
return nil
5454
}
5555

56-
// ForceWriterParallelism configures an engine to be opened with disabled
57-
// automatic compactions. Used primarily for debugCompactCmd.
58-
var ForceWriterParallelism ConfigOption = func(cfg *engineConfig) error {
59-
cfg.opts.Experimental.ForceWriterParallelism = true
60-
return nil
61-
}
62-
6356
// ForTesting configures the engine for use in testing. It may randomize some
6457
// config options to improve test coverage.
6558
var ForTesting ConfigOption = func(cfg *engineConfig) error {
@@ -141,17 +134,6 @@ func TargetFileSize(size int64) ConfigOption {
141134
}
142135
}
143136

144-
// MaxWriterConcurrency sets the concurrency of the sstable Writers. A concurrency
145-
// of 0 implies no parallelism in the Writer, and a concurrency of 1 or more implies
146-
// parallelism in the Writer. Currently, there's no difference between a concurrency
147-
// of 1 or more.
148-
func MaxWriterConcurrency(concurrency int) ConfigOption {
149-
return func(cfg *engineConfig) error {
150-
cfg.opts.Experimental.MaxWriterConcurrency = concurrency
151-
return nil
152-
}
153-
}
154-
155137
// MaxOpenFiles sets the maximum number of files an engine should open.
156138
func MaxOpenFiles(count int) ConfigOption {
157139
return func(cfg *engineConfig) error {

0 commit comments

Comments
 (0)