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

perf: non-blocking sockets #1562

Draft
wants to merge 29 commits into
base: postgresql-dialect
Choose a base branch
from
Draft

Conversation

olavloite
Copy link
Collaborator

@olavloite olavloite commented Mar 19, 2024

Switch from blocking to non-blocking sockets. This reduces latency in low QPS use cases.

Copy link

codecov bot commented Mar 30, 2024

Codecov Report

Attention: Patch coverage is 84.69388% with 60 lines in your changes missing coverage. Please review.

Project coverage is 90.09%. Comparing base (eb822d8) to head (d65455a).
Report is 566 commits behind head on postgresql-dialect.

Files with missing lines Patch % Lines
...loud/spanner/pgadapter/NonBlockingProxyServer.java 80.82% 10 Missing and 4 partials ⚠️
...oud/spanner/pgadapter/NonBlockingSocketReader.java 91.80% 6 Missing and 4 partials ⚠️
...panner/pgadapter/NonBlockingConnectionHandler.java 80.95% 7 Missing and 1 partial ⚠️
...panner/pgadapter/metadata/ChannelOutputStream.java 58.82% 5 Missing and 2 partials ⚠️
...d/spanner/pgadapter/NonBlockingServerListener.java 89.58% 3 Missing and 2 partials ⚠️
...nner/pgadapter/metadata/ByteBufferInputStream.java 54.54% 4 Missing and 1 partial ⚠️
...nner/pgadapter/metadata/ForwardingInputStream.java 44.44% 4 Missing and 1 partial ⚠️
...spanner/pgadapter/wireprotocol/ControlMessage.java 55.55% 3 Missing and 1 partial ⚠️
...ava/com/google/cloud/spanner/pgadapter/Server.java 0.00% 1 Missing ⚠️
...apter/statements/ExtendedQueryProtocolHandler.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##             postgresql-dialect    #1562      +/-   ##
========================================================
- Coverage                 90.87%   90.09%   -0.78%     
- Complexity                 2705     2769      +64     
========================================================
  Files                       144      151       +7     
  Lines                      9257     9592     +335     
  Branches                   1345     1383      +38     
========================================================
+ Hits                       8412     8642     +230     
- Misses                      568      653      +85     
- Partials                    277      297      +20     
Flag Coverage Δ
all_tests 90.09% <84.69%> (-0.78%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant