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 — Investigate novel pub/sub system test failures · Issue #1085 · googleapis/google-cloud-python

Investigate novel pub/sub system test failures #1085

New issue
Copy link
New issue
Copy link
Closed
Closed
Investigate novel pub/sub system test failures#1085
Copy link
Assignees
tseaver
Labels
api: pubsubIssues related to the Pub/Sub API.testing

Description

@dhermes
dhermes
opened on Aug 25, 2015
Issue body actions
  1. Subscription.pull(return_immedately=False, max_messages=2) returns immediately (See 'Subscription.pull(return_immedately=False, max_messages=2)' returns immediately :( #893)
  2. Missing ACK ID
======================================================================
ERROR: test_message_pull_mode_e2e (pubsub.TestPubsub)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/pubsub.py", line 123, in test_message_pull_mode_e2e
    subscription.acknowledge(ack_ids)
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/pubsub/subscription.py", line 230, in acknowledge
    method='POST', path='%s:acknowledge' % (self.path,), data=data)
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/connection.py", line 419, in api_request
    error_info=method + ' ' + url)
gcloud.exceptions.BadRequest: 400 You have not specified an ack ID in the request. (POST https://pubsub.googleapis.com/v1/projects/precise-truck-742/subscriptions/subscribing-now:acknowledge)
----------------------------------------------------------------------

From:

  1. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/75334450
  2. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/77188348
  3. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/77564743
  4. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/94920686
  5. Only one message returned
======================================================================
ERROR: test_message_pull_mode_e2e (pubsub.TestPubsub)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/pubsub.py", line 129, in test_message_pull_mode_e2e
    message1, message2 = sorted(messages, key=_by_timestamp)
ValueError: need more than 1 value to unpack
----------------------------------------------------------------------

From:

  1. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/77052107
  2. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/98407178
  3. Eventual Consistency Error
======================================================================
FAIL: test_list_subscriptions (pubsub.TestPubsub)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/pubsub.py", line 100, in test_list_subscriptions
    self.assertEqual(len(created), len(subscriptions_to_create))
AssertionError: 2 != 3
======================================================================
FAIL: test_list_topics (pubsub.TestPubsub)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/pubsub.py", line 62, in test_list_topics
    self.assertEqual(len(created), len(topics_to_create))
AssertionError: 2 != 3
----------------------------------------------------------------------
Ran 5 tests in 66.301s
FAILED (failures=2)

From:

  1. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/77600321
  2. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/78109143

Activity

Next
  1. dhermes
    added
    testing
    api: pubsubIssues related to the Pub/Sub API.
    on Aug 25, 2015
  2. dhermes
    assigned
    tseaver
    on Aug 25, 2015
  3. dhermes
    changed the title [-]Investigate novel test failure (missing ACK ID)[/-] [+]Investigate novel pub/sub system test failure (missing ACK ID)[/+] on Aug 27, 2015
  4. dhermes commented on Aug 27, 2015

    @dhermes
    dhermes
    on Aug 27, 2015
    ContributorAuthor
    More actions

    Same issue in https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/75334450 (build was from #1060, previously reported in #1062)

  5. dhermes
    changed the title [-]Investigate novel pub/sub system test failure (missing ACK ID)[/-] [+]Investigate novel pub/sub system test failures[/+] on Aug 27, 2015
  6. dhermes commented on Dec 4, 2015

    @dhermes
    dhermes
    on Dec 4, 2015
    ContributorAuthor
    More actions

    @tseaver @tmatsuo The 1st error occurred again today.

    @tmatsuo Not sure if there is a place to report this internally, but we are hitting this with a tiny amount of load and we've see this server-side flakiness 4 times now. 99% of the time it works (i.e. it knows there is an Ack ID in the request) but for some reason it doesn't always pick it up.

  7. tmatsuo commented on Dec 4, 2015

    @tmatsuo
    tmatsuo
    on Dec 4, 2015
    Contributor
    More actions

    @dhermes
    99%, I think it matches the end-to-end message delivery latency expectations at this point.

    The tail latency is mainly caused by server crashes, disk crashes, or network cut etc (but we never lost any messages so far, that's great), as you can imagine, and it's almost inevitable.

    Only thing I can think of is longer wait time (and more pull calls) for the tests. Is it possible to have a time limit, and pulls again and again until it reaches the time limit?

  8. dhermes commented on Dec 4, 2015

    @dhermes
    dhermes
    on Dec 4, 2015
    ContributorAuthor
    More actions

    Ah I see. So in the source

    ack_ids = [recv[0] for recv in received]
    subscription.acknowledge(ack_ids)

    we should check that received / ack_ids is not empty and then never send the acknowledge request?

  9. tmatsuo commented on Dec 4, 2015

    @tmatsuo
    tmatsuo
    on Dec 4, 2015
    Contributor
    More actions

    The response can be contain 0 message, 1 message, or 2 messages. You can repeatedly call pull until you get the right amount of messages. sg?

  10. dhermes commented on Dec 4, 2015

    @dhermes
    dhermes
    on Dec 4, 2015
    ContributorAuthor
    More actions

    can be contain message

    You mean 0 messages?

  11. dhermes commented on Dec 4, 2015

    @dhermes
    dhermes
    on Dec 4, 2015
    ContributorAuthor
    More actions

    Also

    repeatedly call pull until you get the right amount of messages

    does sound good

  12. tmatsuo commented on Dec 4, 2015

    @tmatsuo
    tmatsuo
    on Dec 4, 2015
    Contributor
    More actions

    @dhermes

    You mean 0 messages?
    Yes, I corrected my comment :)

  13. dhermes commented on Dec 4, 2015

    @dhermes
    dhermes
    on Dec 4, 2015
    ContributorAuthor
    More actions

    👍

  14. daspecster commented on Aug 3, 2016

    @daspecster
    daspecster
    on Aug 3, 2016
    Contributor
    More actions

    @dhermes, for point 4, I tried playing with @Retry in those methods and retrying didn't seem to work.

    test_create_subscription_defaults (pubsub.TestPubsub) ... ok
    test_create_subscription_w_ack_deadline (pubsub.TestPubsub) ... ok
    test_create_topic (pubsub.TestPubsub) ... ok
    test_fetch_delete_subscription_w_deleted_topic (pubsub.TestPubsub) ... 0 != 1, Trying again in 30 seconds...
    0 != 1, Trying again in 60 seconds...
    
    0 != 1, Trying again in 120 seconds...
    FAIL
    test_list_subscriptions (pubsub.TestPubsub) ... 2 != 3, Trying again in 30 seconds...
    2 != 3, Trying again in 60 seconds...
    2 != 3, Trying again in 120 seconds...
    2 != 3, Trying again in 30 seconds...
    True is not false, Trying again in 60 seconds...
    True is not false, Trying again in 120 seconds...
    FAIL
    test_list_topics (pubsub.TestPubsub) ... 2 != 3, Trying again in 30 seconds...
    2 != 3, Trying again in 60 seconds...
    2 != 3, Trying again in 120 seconds...
    FAIL
    test_message_pull_mode_e2e (pubsub.TestPubsub) ... ok
    test_subscription_iam_policy (pubsub.TestPubsub) ... ok
    test_topic_iam_policy (pubsub.TestPubsub) ... ok
  15. 2 remaining items

  16. daspecster commented on Aug 3, 2016

    @daspecster
    daspecster
    on Aug 3, 2016
    Contributor
    More actions

    @dhermes just the asserts actually.

    @tseaver fantastic! I'm excited for master to turn green again.

  17. tseaver commented on Aug 9, 2016

    @tseaver
    tseaver
    on Aug 9, 2016
    Contributor
    More actions

    Point 3) now tracked in #2077. Point 1) is really the same issue, with the failure in parsing the empty response already fixed in #899. Point 2) is also a symptom of #2077.

  18. tseaver
    closed this as completedon Aug 9, 2016
  19. dhermes
    added
    flaky
    on Aug 11, 2016
  20. gcf-owl-bot
    added a commit that references this issue on Aug 7, 2025

    feat: Update Compute Engine v1 API to revision 20250729 (#1085)

    31ab1a8
  21. parthea
    added 2 commits that reference this issue on Aug 8, 2025

    feat: [google-cloud-compute] Update Compute Engine v1 API to revision…

    17c935f

    chore: release main (#14197)

    ef5a6d7
  22. parthea
    added 4 commits that reference this issue on Nov 22, 2025

    fix: re-add py-typed file for bigtable package (#1085)

    153ade1

    feat: forward compatible diregapic LRO support (#1085)

    0acbf6f

    chore: release 0.57.0 (#1090)

    0a32992

    fix: async certificate decoding (#1085)

    b353c7b
  23. parthea
    added a commit that references this issue on Feb 20, 2026

    chore: remove 3.9 from kokoro tests (#1085)

    77b5713
  24. parthea
    added a commit that references this issue on Mar 2, 2026

    fix: re-add py-typed file for bigtable package (#1085)

    e157a3f
  25. parthea
    added 2 commits that reference this issue on Mar 9, 2026

    build(deps): [autoapprove] bump pygments from 2.13.0 to 2.15.0 (#1085)

    a31df70

    fix: Few fixes in DBAPI (#1085)

    36c6f5c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

api: pubsubIssues related to the Pub/Sub API.testing

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.