Skip to content

Commit 736e041

Browse files
authored
Bump google.golang.org/grpc from 1.78.0 to 1.79.3 (#11641)
This is instead of #11618. There's a security fix that doesn't matter for us, but also a few performance improvements, and it picks up [my PR](grpc/grpc-go#8806) that lets us get rid of a patch.
1 parent 8fa2e70 commit 736e041

7 files changed

Lines changed: 48 additions & 59 deletions

File tree

buildpatches/org_golang_google_grpc_more_buffer_sizes.patch

Lines changed: 0 additions & 33 deletions
This file was deleted.

deps/bazel_dep.MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ single_version_override(
2929
)
3030

3131
bazel_dep(name = "rules_go", version = "0.60.0", repo_name = "io_bazel_rules_go")
32+
3233
# Carry bazel-contrib/rules_go#4564 until it lands in a release we can consume.
3334
single_version_override(
3435
module_name = "rules_go",

deps/go_deps.MODULE.bazel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,6 @@ go_deps.module_override(
6565
# server gracefully, it's safe for us to allow gRPC to wait for all
6666
# ongoing requests to finish.
6767
"@com_github_buildbuddy_io_buildbuddy//buildpatches:org_golang_google_grpc_remove_drain_panic.patch",
68-
# Add more buffer sizes to grpc mem buffer pool to reduce allocations.
69-
# This speeds up large reads/writes.
70-
"@com_github_buildbuddy_io_buildbuddy//buildpatches:org_golang_google_grpc_more_buffer_sizes.patch",
7168
],
7269
path = "google.golang.org/grpc",
7370
)

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ require (
150150
github.com/vishvananda/netlink v1.2.1-beta.2
151151
github.com/xiam/s-expr v0.0.0-20240311144413-9d7e25c9d7d1
152152
github.com/zeebo/blake3 v0.2.3
153-
go.opentelemetry.io/contrib/detectors/gcp v1.38.0
153+
go.opentelemetry.io/contrib/detectors/gcp v1.39.0
154154
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0
155155
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.62.0
156156
go.opentelemetry.io/otel v1.40.0
@@ -167,7 +167,7 @@ require (
167167
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546
168168
golang.org/x/mod v0.33.0
169169
golang.org/x/net v0.50.0
170-
golang.org/x/oauth2 v0.33.0
170+
golang.org/x/oauth2 v0.34.0
171171
golang.org/x/sync v0.19.0
172172
golang.org/x/sys v0.41.0
173173
golang.org/x/text v0.34.0
@@ -177,7 +177,7 @@ require (
177177
google.golang.org/genproto/googleapis/api v0.0.0-20260128011058-8636f8732409
178178
google.golang.org/genproto/googleapis/bytestream v0.0.0-20260128011058-8636f8732409
179179
google.golang.org/genproto/googleapis/rpc v0.0.0-20260128011058-8636f8732409
180-
google.golang.org/grpc v1.78.0
180+
google.golang.org/grpc v1.79.3
181181
google.golang.org/protobuf v1.36.11
182182
gopkg.in/yaml.v2 v2.4.0
183183
gopkg.in/yaml.v3 v3.0.1
@@ -197,7 +197,7 @@ require (
197197
buf.build/gen/go/open-feature/flagd/connectrpc/go v1.18.1-20250529171031-ebdc14163473.1 // indirect
198198
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2 // indirect
199199
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1 // indirect
200-
cel.dev/expr v0.24.0 // indirect
200+
cel.dev/expr v0.25.1 // indirect
201201
cloud.google.com/go v0.123.0 // indirect
202202
cloud.google.com/go/auth v0.17.0 // indirect
203203
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
@@ -254,7 +254,7 @@ require (
254254
github.com/clipperhouse/stringish v0.1.1 // indirect
255255
github.com/clipperhouse/uax29/v2 v2.5.0 // indirect
256256
github.com/cloudflare/circl v1.6.3 // indirect
257-
github.com/cncf/xds/go v0.0.0-20251022180443-0feb69152e9f // indirect
257+
github.com/cncf/xds/go v0.0.0-20251210132809-ee656c7534f5 // indirect
258258
github.com/cockroachdb/errors v1.11.3 // indirect
259259
github.com/cockroachdb/fifo v0.0.0-20240616162244-4768e80dfb9a // indirect
260260
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
@@ -279,8 +279,8 @@ require (
279279
github.com/dustin/go-humanize v1.0.1 // indirect
280280
github.com/emicklei/go-restful/v3 v3.13.0 // indirect
281281
github.com/emirpasic/gods v1.18.1 // indirect
282-
github.com/envoyproxy/go-control-plane/envoy v1.35.0 // indirect
283-
github.com/envoyproxy/protoc-gen-validate v1.2.1 // indirect
282+
github.com/envoyproxy/go-control-plane/envoy v1.36.0 // indirect
283+
github.com/envoyproxy/protoc-gen-validate v1.3.0 // indirect
284284
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
285285
github.com/felixge/httpsnoop v1.0.4 // indirect
286286
github.com/fsnotify/fsnotify v1.9.0 // indirect

go.sum

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2
88
buf.build/gen/go/open-feature/flagd/grpc/go v1.5.1-20250529171031-ebdc14163473.2/go.mod h1:4u0WLwfkLob3dC/F8qNctqhtiEv2Mlyi8YgCDDzgYDs=
99
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1 h1:LdC4xAuUaNdduzQr5VvhjsgrCfpW9IYxYsjyCF0ANs0=
1010
buf.build/gen/go/open-feature/flagd/protocolbuffers/go v1.36.6-20250529171031-ebdc14163473.1/go.mod h1:cCQ49+ttXE2MZ/ciRNb0tCG+F3kj2ZVbP+0/psbhrLY=
11-
cel.dev/expr v0.24.0 h1:56OvJKSH3hDGL0ml5uSxZmz3/3Pq4tJ+fb1unVLAFcY=
12-
cel.dev/expr v0.24.0/go.mod h1:hLPLo1W4QUmuYdA72RBX06QTs6MXw941piREPl3Yfiw=
11+
cel.dev/expr v0.25.1 h1:1KrZg61W6TWSxuNZ37Xy49ps13NUovb66QLprthtwi4=
12+
cel.dev/expr v0.25.1/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4=
1313
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
1414
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
1515
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
@@ -415,8 +415,8 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH
415415
github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
416416
github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
417417
github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
418-
github.com/cncf/xds/go v0.0.0-20251022180443-0feb69152e9f h1:Y8xYupdHxryycyPlc9Y+bSQAYZnetRJ70VMVKm5CKI0=
419-
github.com/cncf/xds/go v0.0.0-20251022180443-0feb69152e9f/go.mod h1:HlzOvOjVBOfTGSRXRyY0OiCS/3J1akRGQQpRO/7zyF4=
418+
github.com/cncf/xds/go v0.0.0-20251210132809-ee656c7534f5 h1:6xNmx7iTtyBRev0+D/Tv1FZd4SCg8axKApyNyRsAt/w=
419+
github.com/cncf/xds/go v0.0.0-20251210132809-ee656c7534f5/go.mod h1:KdCmV+x/BuvyMxRnYBlmVaq4OLiKW6iRQfvC62cvdkI=
420420
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
421421
github.com/cockroachdb/datadriven v0.0.0-20200714090401-bf6692d28da5/go.mod h1:h6jFvWxBdQXxjopDMZyH2UVceIRfR84bdzbkoKrsWNo=
422422
github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4=
@@ -676,15 +676,15 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.m
676676
github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ=
677677
github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0=
678678
github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE=
679-
github.com/envoyproxy/go-control-plane v0.13.5-0.20251024222203-75eaa193e329 h1:K+fnvUM0VZ7ZFJf0n4L/BRlnsb9pL/GuDG6FqaH+PwM=
680-
github.com/envoyproxy/go-control-plane v0.13.5-0.20251024222203-75eaa193e329/go.mod h1:Alz8LEClvR7xKsrq3qzoc4N0guvVNSS8KmSChGYr9hs=
681-
github.com/envoyproxy/go-control-plane/envoy v1.35.0 h1:ixjkELDE+ru6idPxcHLj8LBVc2bFP7iBytj353BoHUo=
682-
github.com/envoyproxy/go-control-plane/envoy v1.35.0/go.mod h1:09qwbGVuSWWAyN5t/b3iyVfz5+z8QWGrzkoqm/8SbEs=
679+
github.com/envoyproxy/go-control-plane v0.14.0 h1:hbG2kr4RuFj222B6+7T83thSPqLjwBIfQawTkC++2HA=
680+
github.com/envoyproxy/go-control-plane v0.14.0/go.mod h1:NcS5X47pLl/hfqxU70yPwL9ZMkUlwlKxtAohpi2wBEU=
681+
github.com/envoyproxy/go-control-plane/envoy v1.36.0 h1:yg/JjO5E7ubRyKX3m07GF3reDNEnfOboJ0QySbH736g=
682+
github.com/envoyproxy/go-control-plane/envoy v1.36.0/go.mod h1:ty89S1YCCVruQAm9OtKeEkQLTb+Lkz0k8v9W0Oxsv98=
683683
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0 h1:/G9QYbddjL25KvtKTv3an9lx6VBE2cnb8wp1vEGNYGI=
684684
github.com/envoyproxy/go-control-plane/ratelimit v0.1.0/go.mod h1:Wk+tMFAFbCXaJPzVVHnPgRKdUdwW/KdbRt94AzgRee4=
685685
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
686-
github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfUKS7KJ7spH3d86P8=
687-
github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU=
686+
github.com/envoyproxy/protoc-gen-validate v1.3.0 h1:TvGH1wof4H33rezVKWSpqKz5NXWg5VPuZ0uONDT6eb4=
687+
github.com/envoyproxy/protoc-gen-validate v1.3.0/go.mod h1:HvYl7zwPa5mffgyeTUHA9zHIH36nmrm7oCbo4YKoSWA=
688688
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4=
689689
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
690690
github.com/evanphx/json-patch v4.9.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk=
@@ -1768,8 +1768,8 @@ go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
17681768
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=
17691769
go.opentelemetry.io/auto/sdk v1.2.1/go.mod h1:KRTj+aOaElaLi+wW1kO/DZRXwkF4C5xPbEe3ZiIhN7Y=
17701770
go.opentelemetry.io/contrib v0.20.0/go.mod h1:G/EtFaa6qaN7+LxqfIAT3GiZa7Wv5DTBUzl5H4LY0Kc=
1771-
go.opentelemetry.io/contrib/detectors/gcp v1.38.0 h1:ZoYbqX7OaA/TAikspPl3ozPI6iY6LiIY9I8cUfm+pJs=
1772-
go.opentelemetry.io/contrib/detectors/gcp v1.38.0/go.mod h1:SU+iU7nu5ud4oCb3LQOhIZ3nRLj6FNVrKgtflbaf2ts=
1771+
go.opentelemetry.io/contrib/detectors/gcp v1.39.0 h1:kWRNZMsfBHZ+uHjiH4y7Etn2FK26LAGkNFw7RHv1DhE=
1772+
go.opentelemetry.io/contrib/detectors/gcp v1.39.0/go.mod h1:t/OGqzHBa5v6RHZwrDBJ2OirWc+4q/w2fTbLZwAKjTk=
17731773
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0/go.mod h1:oVGt1LRbBOBq1A5BQLlUg9UaU/54aiHw8cgjV3aWZ/E=
17741774
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.28.0/go.mod h1:vEhqr0m4eTc+DWxfsXoXue2GBgV2uUwVznkGIHW/e5w=
17751775
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.64.0 h1:RN3ifU8y4prNWeEnQp2kRRHz8UwonAEYZl8tUzHEXAk=
@@ -2011,8 +2011,8 @@ golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ
20112011
golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
20122012
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
20132013
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
2014-
golang.org/x/oauth2 v0.33.0 h1:4Q+qn+E5z8gPRJfmRy7C2gGG3T4jIprK6aSYgTXGRpo=
2015-
golang.org/x/oauth2 v0.33.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
2014+
golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=
2015+
golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
20162016
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
20172017
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
20182018
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -2404,8 +2404,8 @@ google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9K
24042404
google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
24052405
google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU=
24062406
google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk=
2407-
google.golang.org/grpc v1.78.0 h1:K1XZG/yGDJnzMdd/uZHAkVqJE+xIDOcmdSFZkBUicNc=
2408-
google.golang.org/grpc v1.78.0/go.mod h1:I47qjTo4OKbMkjA/aOOwxDIiPSBofUtQUI5EfpWvW7U=
2407+
google.golang.org/grpc v1.79.3 h1:sybAEdRIEtvcD68Gx7dmnwjZKlyfuc61Dyo9pGXXkKE=
2408+
google.golang.org/grpc v1.79.3/go.mod h1:KmT0Kjez+0dde/v2j9vzwoAScgEPx/Bw1CYChhHLrHQ=
24092409
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
24102410
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
24112411
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=

server/util/rpcutil/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ go_library(
1414
"@io_opentelemetry_go_otel_metric//:metric",
1515
"@io_opentelemetry_go_otel_metric//noop",
1616
"@io_opentelemetry_go_otel_sdk_metric//:metric",
17+
"@org_golang_google_grpc//experimental",
18+
"@org_golang_google_grpc//mem",
1719
],
1820
)
1921

server/util/rpcutil/rpcutil.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import (
1212
"go.opentelemetry.io/otel/exporters/prometheus"
1313
"go.opentelemetry.io/otel/metric"
1414
"go.opentelemetry.io/otel/metric/noop"
15+
"google.golang.org/grpc/experimental"
16+
"google.golang.org/grpc/mem"
1517

1618
sdkmetric "go.opentelemetry.io/otel/sdk/metric"
1719
)
@@ -20,6 +22,26 @@ const GRPCMaxSizeBytes = int64(4 * 1000 * 1000)
2022

2123
func init() {
2224
vtprotocodec.Register()
25+
26+
// Change the default buffer pool. This is like the normal default, but with
27+
// more tiers. This improves bytestream reads and writes by 10-20% in
28+
// benchmarks, while allocating 10% less.
29+
//
30+
// With the previous tiers, payloads of 32KiB+1byte would fall in the 1MiB
31+
// tier, so they would allocate a lot more memory, plus every time we would
32+
// get a 1MiB from the pool, we would clear the whole thing, even though we
33+
// only use a part of it.
34+
experimental.SetDefaultBufferPool(mem.NewTieredBufferPool(
35+
256,
36+
4<<10, // 4KiB
37+
16<<10, // 16KiB (max HTTP/2 frame size used by gRPC)
38+
32<<10, // 32KiB (default buffer size for io.Copy)
39+
64<<10, // 64KiB
40+
128<<10, // 128KiB
41+
256<<10, // 256KiB
42+
512<<10, // 512KiB
43+
1<<20, // 1MiB
44+
))
2345
}
2446

2547
type StreamMsg[T proto.Message] struct {

0 commit comments

Comments
 (0)