Uh oh!
There was an error while loading. Please reload this page.
pubsub: enable streaming pull - #2223
Conversation
Moving this to a branch. If nothing else, we should perf test this before declaring it release-ready. This commit re-enables streaming pull. Unlike previous implementation, it does not fall back to polling if streaming is unavailable, since the streaming pull endpoint should be working by the time this is released. This commit fixes a bug deadline modification code. Previously we record an Instant we receive a message, then call Instant::getNano to get the time in nanoseconds. This is incorrect since getNano returns the nanosecond from the beginning of that second, not since an epoch. The fix is to simply save the time since epoch instead of Instant. This commit also slightly changes how errors are logged, so that errors that occur after the service is being shut down don't spam the console.
coveralls
commented
Jul 10, 2017
garrettjonesgoogle
commented
Jul 13, 2017
LGTM |
| @Override | ||
| public void run() { | ||
| try { | ||
| // startPollingConnections(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| // stopAllStreamingConnections(); | ||
| stopAllPollingConnections(); | ||
| stopAllStreamingConnections(); | ||
| // stopAllPollingConnections(); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| // Starts polling connections. Blocks until all connections declare themselves running. | ||
| private void startPollingConnections() throws IOException { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| @Test | ||
| public void testGetSubscriptionOnce() throws Exception { | ||
| if (isStreamingTest) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
googlebot
commented
Jul 27, 2017
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
googlebot
commented
Jul 27, 2017
CLAs look good, thanks! |
pongad
commented
Jul 27, 2017
@davidtorres Sorry for the delay. PTAL |
coveralls
commented
Jul 27, 2017
Changes Unknown when pulling 4541df2 on pongad:pubsub-streaming-pull into ** on GoogleCloudPlatform:pubsub-streaming-pull**. |
coveralls
commented
Jul 27, 2017
Changes Unknown when pulling 4541df2 on pongad:pubsub-streaming-pull into ** on GoogleCloudPlatform:pubsub-streaming-pull**. |
garrettjonesgoogle
commented
Jul 28, 2017
Actually I don't want to nuke polling just yet... could we keep the code for the moment? |
pongad
commented
Jul 31, 2017
@garrettjonesgoogle Do you mean just keeping the Polling class around? I was thinking about the same thing, but then if we need to restore polling, we'll probably revert anyway right? This is also in a branch so we can test to make sure before releasing? Please let me know if you feel strongly about this. |
garrettjonesgoogle
commented
Jul 31, 2017
@pongad I want to see if there is demand for Pub/Sub on http/json first - my request isn't really about reverting. |
pongad
commented
Aug 1, 2017
@garrettjonesgoogle I'm not sure exactly what you want. I added back Polling class, but it's not tested as we removed the fallback logic. Is this good enough for you? |
garrettjonesgoogle
commented
Aug 1, 2017
The diff is now showing all of the diffs from master since the head of your branch doesn't have those commits, making it very hard to read. Could we add a package-private thing on the builder to trigger polling, and run all the relevant tests on both polling and streaming? |
pongad
commented
Aug 2, 2017
@garrettjonesgoogle PTAL |
garrettjonesgoogle
commented
Aug 2, 2017
re-LGTM |
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
…v1 to v2.75.0 (googleapis#2223) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.api.grpc:proto-google-cloud-trace-v1](https://redirect.github.com/googleapis/google-cloud-java) | `2.74.0` -> `2.75.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-spanner-jdbc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
…lose or executor shutdown (#2223)
🤖 I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Moving this to a branch.
If nothing else, we should perf test this before
declaring it release-ready.
This commit re-enables streaming pull.
Unlike previous implementation,
it does not fall back to polling if streaming is unavailable,
since the streaming pull endpoint should be working
by the time this is released.
This commit fixes a bug deadline modification code.
Previously we record an Instant we receive a message,
then call Instant::getNano to get the time in nanoseconds.
This is incorrect since getNano returns the nanosecond
from the beginning of that second, not since an epoch.
The fix is to simply save the time since epoch instead of Instant.
This commit also slightly changes how errors are logged,
so that errors that occur after the service is being shut down
don't spam the console.
cc @davidtorres