GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix performance regression on Cloud Pub/Sub publish by kamalaboulhosn · Pull Request #6076 · googleapis/google-cloud-java

Conversation

@kamalaboulhosn

@kamalaboulhosn kamalaboulhosn commented Aug 14, 2019

Copy link
Copy Markdown
Contributor

With the refactor to support ordering keys, we moved away from publishing on an executor in the unordered case. This causes too many threads to build up and we end up with a lot of timeouts for publish. This PR restores to the way the code was prior to this refactor.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
kamalaboulhosn added 3 commits July 16, 2019 12:20
@kamalaboulhosn
Mark ordering keys APIs public
a0fc98f
@kamalaboulhosn
Merge branch 'master' of https://github.com/kamalaboulhosn/google-clo…
3e174d3
…ud-java
@kamalaboulhosn
Go back to calling publish on the exectuor, which is what we did befo…
173adc5
…re the updates to support ordering keys. Without it, we end up with a lot of publishes hanging for long periods of time.
@kamalaboulhosn
kamalaboulhosn requested a review from hannahrogers-google August 14, 2019 16:29
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 14, 2019
hannahrogers-google
hannahrogers-google approved these changes Aug 14, 2019
View reviewed changes

@hannahrogers-google hannahrogers-google left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@codecov

codecov Bot commented Aug 14, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #6076 into master will increase coverage by 0.31%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #6076      +/-   ##
============================================
+ Coverage     47.11%   47.43%   +0.31%     
  Complexity    27195    27195              
============================================
  Files          2522     2522              
  Lines        274268   274271       +3     
  Branches      31326    31350      +24     
============================================
+ Hits         129235   130102     +867     
+ Misses       134602   134559      -43     
+ Partials      10431     9610     -821
Impacted Files Coverage Δ Complexity Δ
...ain/java/com/google/cloud/pubsub/v1/Publisher.java 89.11% <100%> (+0.11%) 40 <0> (ø) ⬇️
...m/google/cloud/bigquery/QueryJobConfiguration.java 75.15% <0%> (+0.31%) 50% <0%> (ø) ⬇️
...om/google/cloud/bigquery/LoadJobConfiguration.java 88.73% <0%> (+0.45%) 46% <0%> (ø) ⬇️
...ogle/cloud/bigquery/WriteChannelConfiguration.java 86.12% <0%> (+0.47%) 44% <0%> (ø) ⬇️
...n/java/com/google/cloud/bigquery/BigQueryImpl.java 66.78% <0%> (+0.52%) 57% <0%> (ø) ⬇️
...java/com/google/cloud/firestore/FirestoreImpl.java 83.42% <0%> (+0.57%) 22% <0%> (ø) ⬇️
...main/java/com/google/cloud/storage/BucketInfo.java 84.86% <0%> (+0.57%) 81% <0%> (ø) ⬇️
...ud/spanner/jdbc/AbstractJdbcPreparedStatement.java 90.85% <0%> (+0.6%) 52% <0%> (ø) ⬇️
.../com/google/cloud/compute/deprecated/DiskInfo.java 96.5% <0%> (+0.69%) 29% <0%> (ø) ⬇️
.../cloud/scheduler/v1beta1/CloudSchedulerClient.java 55% <0%> (+1%) 35% <0%> (ø) ⬇️
... and 139 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7441cce...173adc5. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kamalaboulhosn
kamalaboulhosn merged commit ab193fa into googleapis:master Aug 14, 2019
@kolea2 kolea2 mentioned this pull request Aug 14, 2019
Release google-cloud-java v0.105.0 #6077
Merged
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
@kamalaboulhosn
Fix performance regression on Cloud Pub/Sub publish (#6076)
a3f68ed
* Mark ordering keys APIs public

* Go back to calling publish on the exectuor, which is what we did before the updates to support ordering keys. Without it, we end up with a lot of publishes hanging for long periods of time.
meltsufin pushed a commit that referenced this pull request May 1, 2026
@kamalaboulhosn
Fix performance regression on Cloud Pub/Sub publish (#6076)
0472156
* Mark ordering keys APIs public

* Go back to calling publish on the exectuor, which is what we did before the updates to support ordering keys. Without it, we end up with a lot of publishes hanging for long periods of time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@hannahrogers-google hannahrogers-google hannahrogers-google approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@kamalaboulhosn @hannahrogers-google @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.