googleapis / python-pubsub

Apache License 2.0
392 stars 205 forks source link

tests.system: test_subscriber_not_leaking_open_sockets[grpc-grpc-grpc] failed #1225

Closed flaky-bot[bot] closed 1 month ago

flaky-bot[bot] commented 4 months ago

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


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

flaky-bot[bot] commented 4 months ago

Looks like this issue is flaky. :worried:

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

A human should fix and close this.


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

mukund-ananthu commented 1 month ago

Error occurred due to a deadline exceed:

args = (name: "projects/precise-truck-742/subscriptions/s-1720989760038-not-leaking-open-sockets"
topic: "projects/precise-truck-742/topics/t-1720989760036-not-leaking-open-sockets"
,)
kwargs = {'metadata': [('x-goog-request-params', 'name=projects/precise-truck-742/subscriptions/s-1720989760038-not-leaking-open-sockets'), ('x-goog-api-client', 'gl-python/3.12.0 grpc/1.65.0rc2 gax/2.19.1 gccl/2.22.0')], 'timeout': 60.0}

    @functools.wraps(callable_)
    def error_remapped_callable(*args, **kwargs):
        try:
            return callable_(*args, **kwargs)
        except grpc.RpcError as exc:
>           raise exceptions.from_grpc_error(exc) from exc
E           google.api_core.exceptions.DeadlineExceeded: 504 Deadline Exceeded

[.nox/system-3-12/lib/python3.12/site-packages/google/api_core/grpc_helpers.py:78](https://cs.corp.google.com/piper///depot/google3/.nox/system-3-12/lib/python3.12/site-packages/google/api_core/grpc_helpers.py?l=78): DeadlineExceeded
----------------------------- Captured stderr call -----------------------------

which is a retryable error code: https://cloud.google.com/pubsub/docs/reference/error-codes