Title: Pub/Sub Subscriber.stopAsync() is not asynchronous · Issue #3134 · googleapis/google-cloud-java · GitHub
Open Graph Title: Pub/Sub Subscriber.stopAsync() is not asynchronous · Issue #3134 · googleapis/google-cloud-java
X Title: Pub/Sub Subscriber.stopAsync() is not asynchronous · Issue #3134 · googleapis/google-cloud-java
Description: The javadocs for Subscriber.stopAsync() (really from AbstractApiService) read: ... this initiates a service shutdown and returns immediately. This does not seem to be how it is implemented in Pub/Sub. The doStop() calls into the MessageD...
Open Graph Description: The javadocs for Subscriber.stopAsync() (really from AbstractApiService) read: ... this initiates a service shutdown and returns immediately. This does not seem to be how it is implemented in Pub/S...
X Description: The javadocs for Subscriber.stopAsync() (really from AbstractApiService) read: ... this initiates a service shutdown and returns immediately. This does not seem to be how it is implemented in Pub/S...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/3134
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pub/Sub Subscriber.stopAsync() is not asynchronous","articleBody":"The javadocs for `Subscriber.stopAsync()` (really from `AbstractApiService`) read:\r\n\r\n\u003e ... this initiates a service shutdown and returns immediately.\r\n\r\nThis does not seem to be how it is implemented in Pub/Sub. The `doStop()` calls into the `MessageDispatcher.stop()` then into the `MessageWaiter.waitNoMessages()`, etc..\r\n\r\nMaybe the method name needs to be changed or the functionality updated? What I've had to do outside is to fork a thread that calls `stopAsync()`, dequeue messages from the receiver queues in other thread(s) so they can be nack'd in a ~spin loop, notice when the `subscriber.state()` gets to TERMINATED, and then join with the stopping thread.\r\n\r\nA simple way to test this is to receive a message, don't ack or nack it reply-consumer, and the call `stopAsync()`.\r\n\r\nMaybe I am missing a configuration option or something? Thanks.","author":{"url":"https://github.com/j256","@type":"Person","name":"j256"},"datePublished":"2018-04-06T14:54:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3134/google-cloud-java/issues/3134"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f4405159-3a39-5e6a-2ed5-0bd44d390a34 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC90:39C8F0:2176724:2F2B272:6A4CDA87 |
| html-safe-nonce | 75ec140489cf328996136136a38e3021b5143baa2ccd44003f2493a61e383807 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzkwOjM5QzhGMDoyMTc2NzI0OjJGMkIyNzI6NkE0Q0RBODciLCJ2aXNpdG9yX2lkIjoiMjcxNDAwMzI3OTM3MzQ1ODA1NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6bfec75c4c57f4bee0ad08d143ae090c8350c052d951f60c6c7cfd36edf2d878 |
| hovercard-subject-tag | issue:312007124 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/3134/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a56c7a0fdcb47c091c67fa76acb2088340019c3dff985c3ec6bc40bdd2a31e11/googleapis/google-cloud-java/issues/3134 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a56c7a0fdcb47c091c67fa76acb2088340019c3dff985c3ec6bc40bdd2a31e11/googleapis/google-cloud-java/issues/3134 |
| og:image:alt | The javadocs for Subscriber.stopAsync() (really from AbstractApiService) read: ... this initiates a service shutdown and returns immediately. This does not seem to be how it is implemented in Pub/S... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | j256 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3eeb74f55ccd8a31bdaec6839577c592bbf7844c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width