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 — samples.snippets.subscriber_test: test_receive_synchronously_with_lease failed · Issue #288 · googleapis/python-pubsub

This repository was archived by the owner on Oct 13, 2026. It is now read-only.
This repository was archived by the owner on Oct 13, 2026. It is now read-only.

samples.snippets.subscriber_test: test_receive_synchronously_with_lease failed #288

Copy link
Copy link
Closed
#304
#298
Closed
samples.snippets.subscriber_test: test_receive_synchronously_with_lease failed#288
#304
#298
Copy link
Assignees
tmatsuo
Labels
api: pubsubIssues related to the googleapis/python-pubsub API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@flaky-bot
flaky-bot
bot
opened on Feb 10, 2021
Issue body actions

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: a8c8f53
buildURL: Build Status, Sponge
status: failed

Test output
args = (subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.6-8ab05006868a4...aSc5XxEAU0VZfFtRGx9ZXH5VBlgEEXV5ZnZvUhAEA0dRfHfTtJ20vNiDNEsxIbrd3sRcernfwO9hZhs9XBJLLD5-NTBFQV5AEkw-BURJUytDCypYEU4"
,)
kwargs = {'metadata': [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-te...c-3.6-8ab05006868a4f46bddd415f7708ed69'), ('x-goog-api-client', 'gl-python/3.6.12 grpc/1.35.0 gax/1.26.0 gccl/2.3.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:73:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f42781dd2e8>
request = subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.6-8ab05006868a4f...V6aSc5XxEAU0VZfFtRGx9ZXH5VBlgEEXV5ZnZvUhAEA0dRfHfTtJ20vNiDNEsxIbrd3sRcernfwO9hZhs9XBJLLD5-NTBFQV5AEkw-BURJUytDCypYEU4"

timeout = None
metadata = [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-test-subscripti...nc-3.6-8ab05006868a4f46bddd415f7708ed69'), ('x-goog-api-client', 'gl-python/3.6.12 grpc/1.35.0 gax/1.26.0 gccl/2.3.0')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request,
             timeout=None,
             metadata=None,
             credentials=None,
             wait_for_ready=None,
             compression=None):
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:923:


state = <grpc._channel._RPCState object at 0x7f427816a0b8>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f42781d6648>
with_call = False, deadline = None

def _end_unary_response_blocking(state, call, with_call, deadline):
    if state.code is grpc.StatusCode.OK:
        if with_call:
            rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
            return state.response, rendezvous
        else:
            return state.response
    else:
      raise _InactiveRpcError(state)

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNKNOWN
E details = "Stream removed"
E debug_error_string = "{"created":"@1612957817.425078466","description":"Error received from peer ipv4:74.125.142.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"
E >

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:826: _InactiveRpcError

The above exception was the direct cause of the following exception:

publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7f42791f2518>
topic = 'projects/python-docs-samples-tests/topics/subscription-test-topic-3.6-8ab05006868a4f46bddd415f7708ed69'
subscription_sync = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.6-8ab05006868a4f46bddd415f7708ed69'
capsys = <_pytest.capture.CaptureFixture object at 0x7f427920cb38>

def test_receive_synchronously_with_lease(
    publisher_client, topic, subscription_sync, capsys
):
    _publish_messages(publisher_client, topic)
  subscriber.synchronous_pull_with_lease_management(PROJECT_ID, SUBSCRIPTION_SYNC)

subscriber_test.py:397:


subscriber.py:572: in synchronous_pull_with_lease_management
"ack_deadline_seconds": 15,
../../google/cloud/pubsub_v1/_gapic.py:40: in
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
../../google/pubsub_v1/services/subscriber/client.py:914: in modify_ack_deadline
request, retry=retry, timeout=timeout, metadata=metadata,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:286: in retry_wrapped_func
on_error=on_error,
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:75: in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)


value = None
from_value = <InactiveRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "Stream removed"
debug_error
....142.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"

???
E google.api_core.exceptions.Unknown: None Stream removed

:3: Unknown

Activity

  1. flaky-bot
    added
    flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 10, 2021
  2. product-auto-label
    added
    api: pubsubIssues related to the googleapis/python-pubsub API.
    samplesIssues that are directly related to samples.
    on Feb 10, 2021
  3. flaky-bot
    added
    flakybot: flakyTells the Flaky Bot not to close or comment on this issue.
    on Feb 10, 2021
  4. flaky-bot commented on Feb 10, 2021

    @flaky-bot
    flaky-botBot
    on Feb 10, 2021
    Author
    More actions

    Looks like this issue is flaky. 😟

    I'm going to leave this open and stop commenting.

    A human should fix and close this.


    When run at the same commit (a8c8f53), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

  5. yoshi-automation
    added
    🚨This issue needs some love.
    and removed
    🚨This issue needs some love.
    on Feb 15, 2021
  6. meredithslota
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    and removed
    🚨This issue needs some love.
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    on Feb 17, 2021
  7. anguillanneuf
    closed this as completedin #298on Feb 25, 2021
  8. flaky-bot
    reopened this on Mar 1, 2021
  9. flaky-bot commented on Mar 1, 2021

    @flaky-bot
    flaky-botBot
    on Mar 1, 2021
    Author
    More actions

    Oops! Looks like this issue is still flaky. It failed again. 😬

    I reopened the issue, but a human will need to close it again.


    commit: bfe37dd
    buildURL: Build Status, Sponge
    status: failed

    Test output
    args = (subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.7-c33f5634b4c34...BUwGKw5eEQ9qVlxnNlEvOXB9aHRjWRYGCkNXeFddGQ9As9SZ9_z28kFnWk2A_NCwNGWOou4GZic9XhJLLD5-NSxFQV5AEkw-GURJUytDCypYEU4EISE"
    ,)
    kwargs = {'metadata': [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-te...nc-3.7-c33f5634b4c34675b44eab3660293773'), ('x-goog-api-client', 'gl-python/3.7.9 grpc/1.36.0 gax/1.26.0 gccl/2.4.0')]}
    
    @six.wraps(callable_)
    def error_remapped_callable(*args, **kwargs):
        try:
    
          return callable_(*args, **kwargs)
    

    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:73:


    self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f0d2be8c050>
    request = subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.7-c33f5634b4c346...ZVBUwGKw5eEQ9qVlxnNlEvOXB9aHRjWRYGCkNXeFddGQ9As9SZ9_z28kFnWk2A_NCwNGWOou4GZic9XhJLLD5-NSxFQV5AEkw-GURJUytDCypYEU4EISE"

    timeout = None
    metadata = [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-test-subscripti...ync-3.7-c33f5634b4c34675b44eab3660293773'), ('x-goog-api-client', 'gl-python/3.7.9 grpc/1.36.0 gax/1.26.0 gccl/2.4.0')]
    credentials = None, wait_for_ready = None, compression = None

    def __call__(self,
                 request,
                 timeout=None,
                 metadata=None,
                 credentials=None,
                 wait_for_ready=None,
                 compression=None):
        state, call, = self._blocking(request, timeout, metadata, credentials,
                                      wait_for_ready, compression)
    
      return _end_unary_response_blocking(state, call, False, None)
    

    .nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py:923:


    state = <grpc._channel._RPCState object at 0x7f0d29808b50>
    call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f0d29810460>
    with_call = False, deadline = None

    def _end_unary_response_blocking(state, call, with_call, deadline):
        if state.code is grpc.StatusCode.OK:
            if with_call:
                rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
                return state.response, rendezvous
            else:
                return state.response
        else:
    
          raise _InactiveRpcError(state)
    

    E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    E status = StatusCode.UNKNOWN
    E details = "Stream removed"
    E debug_error_string = "{"created":"@1614596955.222838245","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"
    E >

    .nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py:826: _InactiveRpcError

    The above exception was the direct cause of the following exception:

    publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7f0d2bf33350>
    topic = 'projects/python-docs-samples-tests/topics/subscription-test-topic-3.7-c33f5634b4c34675b44eab3660293773'
    subscription_sync = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.7-c33f5634b4c34675b44eab3660293773'
    capsys = <_pytest.capture.CaptureFixture object at 0x7f0d2bf3ead0>

    def test_receive_synchronously_with_lease(
        publisher_client, topic, subscription_sync, capsys
    ):
        _publish_messages(publisher_client, topic)
    
      subscriber.synchronous_pull_with_lease_management(PROJECT_ID, SUBSCRIPTION_SYNC)
    

    subscriber_test.py:397:


    subscriber.py:572: in synchronous_pull_with_lease_management
    "ack_deadline_seconds": 15,
    ../../google/cloud/pubsub_v1/_gapic.py:40: in
    fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
    ../../google/pubsub_v1/services/subscriber/client.py:914: in modify_ack_deadline
    request, retry=retry, timeout=timeout, metadata=metadata,
    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py:145: in call
    return wrapped_func(*args, **kwargs)
    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:286: in retry_wrapped_func
    on_error=on_error,
    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:184: in retry_target
    return target()
    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:75: in error_remapped_callable
    six.raise_from(exceptions.from_grpc_error(exc), exc)


    value = None
    from_value = <InactiveRpcError of RPC that terminated with:
    status = StatusCode.UNKNOWN
    details = "Stream removed"
    debug_error
    ....195.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"

    ???
    E google.api_core.exceptions.Unknown: None Stream removed

    :3: Unknown

  10. tmatsuo
    self-assigned this
    on Mar 1, 2021
  11. tmatsuo
    added a commit that references this issue on Mar 2, 2021

    fix(sample): mitigate flakiness in subscriber_test

    This issue will close once commit 55377df is merged into the 'master' branch.
    55377df
  12. anguillanneuf
    closed this as completedin #304on Mar 2, 2021
  13. anguillanneuf
    added a commit that references this issue on Mar 2, 2021

    fix(sample): mitigate flakiness in subscriber_test (#304)

    This issue will close once commit 271a385 is merged into the 'main' branch.
    271a385
  14. flaky-bot
    reopened this on Mar 5, 2021
  15. flaky-bot commented on Mar 5, 2021

    @flaky-bot
    flaky-botBot
    on Mar 5, 2021
    Author
    More actions

    Oops! Looks like this issue is still flaky. It failed again. 😬

    I reopened the issue, but a human will need to close it again.


    commit: ad85202
    buildURL: Build Status, Sponge
    status: failed

    Test output
    args = (subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.7-7d5838c1a7b94...SBlBGVy9VWR8HaE5tdSVxDxhye2F8algbCAJDU3heWjPIg7_4m9q_PgNORYrg0uglIbeWu7ttZiU9XxJLLD5-NTJFQV5AEkw-B0RJUytDCypYEU4EIQ"
    ,)
    kwargs = {'metadata': [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-te...nc-3.7-7d5838c1a7b94ee5a0f1f327ddf1294d'), ('x-goog-api-client', 'gl-python/3.7.9 grpc/1.36.1 gax/1.26.1 gccl/2.4.0')]}
    
    @six.wraps(callable_)
    def error_remapped_callable(*args, **kwargs):
        try:
    
          return callable_(*args, **kwargs)
    

    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:73:


    self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f83ac0fe510>
    request = subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.7-7d5838c1a7b94e...lgSBlBGVy9VWR8HaE5tdSVxDxhye2F8algbCAJDU3heWjPIg7_4m9q_PgNORYrg0uglIbeWu7ttZiU9XxJLLD5-NTJFQV5AEkw-B0RJUytDCypYEU4EIQ"

    timeout = None
    metadata = [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-test-subscripti...ync-3.7-7d5838c1a7b94ee5a0f1f327ddf1294d'), ('x-goog-api-client', 'gl-python/3.7.9 grpc/1.36.1 gax/1.26.1 gccl/2.4.0')]
    credentials = None, wait_for_ready = None, compression = None

    def __call__(self,
                 request,
                 timeout=None,
                 metadata=None,
                 credentials=None,
                 wait_for_ready=None,
                 compression=None):
        state, call, = self._blocking(request, timeout, metadata, credentials,
                                      wait_for_ready, compression)
    
      return _end_unary_response_blocking(state, call, False, None)
    

    .nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py:923:


    state = <grpc._channel._RPCState object at 0x7f83a9a76c50>
    call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f83a9a79280>
    with_call = False, deadline = None

    def _end_unary_response_blocking(state, call, with_call, deadline):
        if state.code is grpc.StatusCode.OK:
            if with_call:
                rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
                return state.response, rendezvous
            else:
                return state.response
        else:
    
          raise _InactiveRpcError(state)
    

    E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
    E status = StatusCode.UNKNOWN
    E details = "Stream removed"
    E debug_error_string = "{"created":"@1614942940.798384291","description":"Error received from peer ipv4:173.194.203.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"
    E >

    .nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py:826: _InactiveRpcError

    The above exception was the direct cause of the following exception:

    publisher_client = <google.cloud.pubsub_v1.PublisherClient object at 0x7f83ac1bacd0>
    topic = 'projects/python-docs-samples-tests/topics/subscription-test-topic-3.7-7d5838c1a7b94ee5a0f1f327ddf1294d'
    subscription_sync = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.7-7d5838c1a7b94ee5a0f1f327ddf1294d'
    capsys = <_pytest.capture.CaptureFixture object at 0x7f83ac0fe750>

    def test_receive_synchronously_with_lease(
        publisher_client, topic, subscription_sync, capsys
    ):
        _publish_messages(publisher_client, topic)
    
      subscriber.synchronous_pull_with_lease_management(PROJECT_ID, SUBSCRIPTION_SYNC)
    

    subscriber_test.py:397:


    subscriber.py:572: in synchronous_pull_with_lease_management
    "ack_deadline_seconds": 15,
    ../../google/cloud/pubsub_v1/_gapic.py:40: in
    fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
    ../../google/pubsub_v1/services/subscriber/client.py:914: in modify_ack_deadline
    request, retry=retry, timeout=timeout, metadata=metadata,
    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py:145: in call
    return wrapped_func(*args, **kwargs)
    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:286: in retry_wrapped_func
    on_error=on_error,
    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:184: in retry_target
    return target()
    .nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:75: in error_remapped_callable
    six.raise_from(exceptions.from_grpc_error(exc), exc)


    value = None
    from_value = <InactiveRpcError of RPC that terminated with:
    status = StatusCode.UNKNOWN
    details = "Stream removed"
    debug_error
    ....203.95:443","file":"src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Stream removed","grpc_status":2}"

    ???
    E google.api_core.exceptions.Unknown: None Stream removed

    :3: Unknown

  16. tmatsuo commented on Mar 5, 2021

    @tmatsuo
    tmatsuo
    on Mar 5, 2021
    Contributor
    More actions

    Interesting bits in the log:

    --------------------------- Captured stderr teardown ---------------------------
    E0305 11:15:57.762006851     157 ssl_transport_security.cc:510] Corruption detected.
    E0305 11:15:57.762073939     157 ssl_transport_security.cc:486] error:1e000065:Cipher functions:OPENSSL_internal:BAD_DECRYPT
    E0305 11:15:57.762084589     157 ssl_transport_security.cc:486] error:1000008b:SSL routines:OPENSSL_internal:DECRYPTION_FAILED_OR_BAD_RECORD_MAC
    E0305 11:15:57.762090955     157 secure_endpoint.cc:208]     Decryption error: TSI_DATA_CORRUPTED
    E0305 11:15:57.762160253     157 ssl_transport_security.cc:537] SSL_write failed with error SSL_ERROR_SSL.
    =================================== FAILURES ===================================
    
    Reacted by Tianzi Cai
  17. tmatsuo commented on Mar 5, 2021

    @tmatsuo
    tmatsuo
    on Mar 5, 2021
    Contributor
    More actions

    Similar stackoverflow entry:
    https://stackoverflow.com/questions/63075251/ssl-error-in-python-when-submit-a-message-to-a-pubsub-topic

    Reacted by Tianzi Cai
  18. tmatsuo commented on Mar 5, 2021

    @tmatsuo
    tmatsuo
    on Mar 5, 2021
    Contributor
    More actions

    Another user suffered from this:
    https://gitter.im/grpc/grpc?at=5aaa3786bb1018b37ae7b718

  19. tmatsuo commented on Mar 5, 2021

    @tmatsuo
    tmatsuo
    on Mar 5, 2021
    Contributor
    More actions

    I'm thinking to upgrade our test docker image to ubuntu 20.04.

  20. tmatsuo commented on Mar 5, 2021

    @tmatsuo
    tmatsuo
    on Mar 5, 2021
    Contributor
    More actions

    We decided to upgrade our test docker image to Ubuntu 20.04 because we suspect that the failure is due to old OpenSSL library in the old docker image which is on Ubuntu 18.04.

  21. tmatsuo commented on Mar 5, 2021

    @tmatsuo
    tmatsuo
    on Mar 5, 2021
    Contributor
    More actions

    The docker image is updated. Let's close this and how it goes with the new image.

  22. tmatsuo
    closed this as completedon Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tmatsuo
    tmatsuo

Labels

api: pubsubIssues related to the googleapis/python-pubsub API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.