Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #7702 into v1.68.x #7791

Closed
wants to merge 39 commits into from

Conversation

purnesh42H
Copy link
Contributor

Original PR: #7702

RELEASE NOTES:

  • mem: use slice capacity instead of length, to determine whether to pool buffers or directly allocate them

purnesh42H and others added 30 commits October 16, 2024 11:14
* Update gRPC-Go's dependency versions on master

* update protos

* disabled redefines-builtin-id lint rule
…ol buffers or directly allocate them (grpc#7702)

* Address grpc#7631 by correctly pooling large-capacity buffers

As the issue states, `mem.NewBuffer` would not pool buffers with a length below
the pooling threshold but whose capacity is actually larger than the pooling
threshold. This can lead to buffers being leaked.

---------

Co-authored-by: Purnesh Dixit <purneshdixit@google.com>
Co-authored-by: Easwar Swaminathan <easwars@google.com>
…pc#7775)

* Replace the gRFC pull request with the permanent link.

* add ALTSPerRPCCreds in DefaultCredentialsOptions to support channel aware RPC creds

* go vet

* address comment
refactor GRPCTraceBinPropagator to be exported externally

Use context instead of metadata in CustomCarrier
purnesh42H and others added 9 commits October 29, 2024 10:38
…ol buffers or directly allocate them (grpc#7702)

* Address grpc#7631 by correctly pooling large-capacity buffers

As the issue states, `mem.NewBuffer` would not pool buffers with a length below
the pooling threshold but whose capacity is actually larger than the pooling
threshold. This can lead to buffers being leaked.

---------

Co-authored-by: Purnesh Dixit <purneshdixit@google.com>
Co-authored-by: Easwar Swaminathan <easwars@google.com>
@purnesh42H purnesh42H requested review from easwars and dfawley October 29, 2024 15:48
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

Attention: Patch coverage is 68.57923% with 345 lines in your changes missing coverage. Please review.

Project coverage is 81.92%. Comparing base (54841ef) to head (c039978).

Files with missing lines Patch % Lines
xds/internal/xdsclient/transport/ads/ads_stream.go 72.76% 104 Missing and 21 partials ⚠️
xds/internal/xdsclient/transport/lrs/lrs_stream.go 38.74% 111 Missing and 6 partials ⚠️
xds/internal/xdsclient/channel.go 78.76% 24 Missing and 7 partials ⚠️
.../grpc_testing_not_regenerated/simple_message_v1.go 29.16% 17 Missing ⚠️
...s/opentelemetry/internal/tracing/custom_carrier.go 82.75% 7 Missing and 3 partials ⚠️
...xdsclient/transport/grpctransport/grpctransport.go 83.33% 7 Missing and 2 partials ⚠️
xds/internal/resolver/xds_resolver.go 33.33% 6 Missing ⚠️
credentials/google/google.go 70.58% 4 Missing and 1 partial ⚠️
...pentelemetry/internal/grpc_trace_bin_propagator.go 90.38% 4 Missing and 1 partial ⚠️
balancer/rls/config.go 0.00% 2 Missing and 1 partial ⚠️
... and 6 more
Additional details and impacted files
@@             Coverage Diff             @@
##           v1.68.x    #7791      +/-   ##
===========================================
- Coverage    82.24%   81.92%   -0.32%     
===========================================
  Files          362      376      +14     
  Lines        28116    38259   +10143     
===========================================
+ Hits         23123    31345    +8222     
- Misses        3815     5653    +1838     
- Partials      1178     1261      +83     
Files with missing lines Coverage Δ
clientconn.go 92.14% <100.00%> (-0.88%) ⬇️
credentials/tls.go 86.57% <100.00%> (+0.21%) ⬆️
internal/status/status.go 90.52% <100.00%> (+0.65%) ⬆️
internal/testutils/wrappers.go 87.50% <100.00%> (-2.98%) ⬇️
internal/transport/flowcontrol.go 96.49% <100.00%> (-0.39%) ⬇️
mem/buffers.go 88.18% <100.00%> (+4.34%) ⬆️
resolver/resolver.go 100.00% <100.00%> (ø)
testdata/grpc_testing_not_regenerated/testv3.go 6.86% <ø> (ø)
xds/googledirectpath/googlec2p.go 93.10% <100.00%> (+0.65%) ⬆️
xds/internal/xdsclient/authority.go 89.75% <100.00%> (+0.51%) ⬆️
... and 21 more

... and 300 files with indirect coverage changes

@purnesh42H purnesh42H closed this Oct 29, 2024
@purnesh42H purnesh42H deleted the cherry-pick-7702 branch October 29, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants