Thanks to visit codestin.com
Credit goes to github.com

Skip to content

samples.snippets.subscriber_test: test_receive_synchronously_with_lease failed #341

@flaky-bot

Description

@flaky-bot

Note: #288 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 0a662a6
buildURL: Build Status, Sponge
status: failed

Test output
args = (subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.8-67e8d2e8a0694...GMOEgRQE1B0XlsRDXptXFcnUwwRcnxmdm1dFgIGR1F6XHOSwM2p4pzYYhclSsjBp9hsM6SJgNJPZho9XxJLLD5-NTBFQV5AEkw-BURJUytDCypYEU4E"
,)
kwargs = {'metadata': [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-te...nc-3.8-67e8d2e8a0694699941f982bd11daedd'), ('x-goog-api-client', 'gl-python/3.8.8 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-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:73:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fbb3c7c50d0>
request = subscription: "projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.8-67e8d2e8a06946...pcGMOEgRQE1B0XlsRDXptXFcnUwwRcnxmdm1dFgIGR1F6XHOSwM2p4pzYYhclSsjBp9hsM6SJgNJPZho9XxJLLD5-NTBFQV5AEkw-BURJUytDCypYEU4E"

timeout = None
metadata = [('x-goog-request-params', 'subscription=projects/python-docs-samples-tests/subscriptions/subscription-test-subscripti...ync-3.8-67e8d2e8a0694699941f982bd11daedd'), ('x-goog-api-client', 'gl-python/3.8.8 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-8/lib/python3.8/site-packages/grpc/_channel.py:923:


state = <grpc._channel._RPCState object at 0x7fbb3c7727c0>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fbb3c775fc0>
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":"@1616414726.271814232","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-8/lib/python3.8/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 0x7fbb3f0cb4c0>
topic = 'projects/python-docs-samples-tests/topics/subscription-test-topic-3.8-67e8d2e8a0694699941f982bd11daedd'
subscription_sync = 'projects/python-docs-samples-tests/subscriptions/subscription-test-subscription-sync-3.8-67e8d2e8a0694699941f982bd11daedd'
capsys = <_pytest.capture.CaptureFixture object at 0x7fbb3f0d03a0>

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:567: in synchronous_pull_with_lease_management
subscriber.modify_ack_deadline(
../../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:913: in modify_ack_deadline
rpc(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:281: in retry_wrapped_func
return retry_target(
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/retry.py:184: in retry_target
return target()
.nox/py-3-8/lib/python3.8/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

Metadata

Metadata

Assignees

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