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 datastore system test failures · Issue #1089 · googleapis/google-cloud-python

Investigate novel datastore system test failures #1089

New issue
Copy link
New issue
Copy link
Closed
Closed
Investigate novel datastore system test failures#1089
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.testing

Description

@dhermes
dhermes
opened on Aug 25, 2015
Issue body actions
  1. 502 on RPC

    ======================================================================
    ERROR: test_allocate_ids (datastore.TestDatastoreAllocateIDs)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/datastore.py", line 47, in test_allocate_ids
        allocated_keys = CLIENT.allocate_ids(CLIENT.key('Kind'), num_ids)
      File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/client.py", line 418, in allocate_ids
        incomplete_key_pbs)
      File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/connection.py", line 372, in allocate_ids
        datastore_pb.AllocateIdsResponse)
      File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/connection.py", line 115, in _rpc
        data=request_pb.SerializeToString())
      File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/connection.py", line 92, in _request
        raise make_exception(headers, content, use_json=False)
    gcloud.exceptions.GCloudError: 502 <!DOCTYPE html>
    <html lang=en>
      <meta charset=utf-8>
      <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
      <title>Error 502 (Server Error)!!1</title>
      <style>
        *{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/errors/logo_sm_2.png) no-repeat}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/errors/logo_sm_2_hr.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/errors/logo_sm_2_hr.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:55px;width:150px}
      </style>
      <a href=//www.google.com/><span id=logo aria-label=Google></span></a>
      <p><b>502.</b> <ins>That’s an error.</ins>
      <p>The server encountered a temporary error and could not complete your request.<p>Please try again in 30 seconds.  <ins>That’s all we know.</ins>

    From

    1. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/77234688
    2. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/100902340
  2. Query results eventually consistent (this shouldn't occur because we use entity groups)

From: https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/77772358
3. 503 Backend Error

======================================================================
ERROR: test_ancestor_query (datastore.TestDatastoreQuery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/datastore.py", line 40, in tearDown
    CLIENT.delete_multi(keys)
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/gcloud/datastore/batch.py", line 228, in __exit__
    self.commit()
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/gcloud/datastore/transaction.py", line 170, in commit
    super(Transaction, self).commit()
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/gcloud/datastore/batch.py", line 203, in commit
    self.dataset_id, self.mutation, self._id)
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/gcloud/datastore/connection.py", line 329, in commit
    datastore_pb.CommitResponse)
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/gcloud/datastore/connection.py", line 113, in _rpc
    data=request_pb.SerializeToString())
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests3/lib/python3.4/site-packages/gcloud/datastore/connection.py", line 90, in _request
    raise make_exception(headers, content, use_json=False)
gcloud.exceptions.ServiceUnavailable: 503 Backend Error

From: https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/78109143
4. 500 Internal Error

ERROR: test_query_group_by (datastore.TestDatastoreQuery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/datastore.py", line 322, in test_query_group_by
    entities = list(query.fetch(limit=expected_matches + 1))
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/query.py", line 444, in __iter__
    self.next_page()
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/query.py", line 408, in next_page
    transaction_id=transaction and transaction.id,
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/connection.py", line 266, in run_query
    _datastore_pb2.RunQueryResponse)
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/connection.py", line 117, in _rpc
    data=request_pb.SerializeToString())
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/datastore/connection.py", line 94, in _request
    raise make_exception(headers, content, use_json=False)
gcloud.exceptions.InternalServerError: 500 Internal Error

From: https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/98468887


This could be solved by reviving #535

Activity

  1. dhermes
    added
    api: datastoreIssues related to the Datastore API.
    testing
    on Aug 25, 2015
  2. dhermes
    self-assigned this
    on Aug 25, 2015
  3. dhermes
    changed the title [-]Investigate novel test failure (missing ACK ID)[/-] [+]Investigate novel test failure (502 on allocate IDs)[/+] on Aug 25, 2015
  4. dhermes
    changed the title [-]Investigate novel test failure (502 on allocate IDs)[/-] [+]Investigate novel datastore system test failure (502 on allocate IDs)[/+] on Aug 27, 2015
  5. dhermes
    changed the title [-]Investigate novel datastore system test failure (502 on allocate IDs)[/-] [+]Investigate novel datastore system test failures[/+] on Aug 27, 2015
  6. dhermes commented on Aug 31, 2015

    @dhermes
    dhermes
    on Aug 31, 2015
    ContributorAuthor
    More actions

    @jgeewax I just added a 503 error (just happened) to accompany our 502 error from last week.

  7. pcostell commented on Nov 8, 2015

    @pcostell
    pcostell
    on Nov 8, 2015
    Contributor
    More actions

    In 2. the only failure I see is test_empty_kind. Note that it is possible that your delete from another test fails, which would then result in this test failing. Perhaps it makes more sense to randomly choose a kind here and assert that the result is empty?

    For 1. and 3., the next time it happens can you grab the logs from the Datastore service task (the version ah-builtin-datastoreservice in your test project)? Note that you may need to view this using the old App Engine Admin Console and not the Developers Console. Or just shoot me an email and I can look into it.

  8. dhermes commented on Nov 8, 2015

    @dhermes
    dhermes
    on Nov 8, 2015
    ContributorAuthor
    More actions

    Will do! Thanks for taking a look.

    ISTM that the failed delete should also fail the previous test, but we see all successes except for test_empty_kind.

    From the mismatched output:

    - [{'author': 'Silvano',
    -   'isDraft': False,
    -   'publishedAt': datetime.datetime(2001, 1, 1, 0, 0, tzinfo=<UTC>),
    -   'rating': 4.5,
    -   'tags': ['pasta', 'homemade'],
    -   'title': 'How to make the perfect homemade pasta',
    -   'wordCount': 450},
    -  {'author': 'Silvano',
    -   'isDraft': False,
    -   'publishedAt': datetime.datetime(2001, 1, 1, 0, 0, tzinfo=<UTC>),
    -   'rating': 5.0,
    -   'tags': ['pizza', 'grill'],
    -   'title': 'How to make the perfect pizza in your grill',
    -   'wordCount': 400}]
    

    the failed delete would have been after test_save_multiple.

    Am I missing something here?

  9. dhermes
    added
    flaky
    on Aug 11, 2016
  10. dhermes commented on Aug 11, 2016

    @dhermes
    dhermes
    on Aug 11, 2016
    ContributorAuthor
    More actions

    @tseaver Closing this until we see more in the wild

  11. dhermes
    closed this as completedon Aug 11, 2016
  12. parthea
    added 2 commits that reference this issue on Nov 24, 2025

    fix: fix resource path args for paths with =** (#1089)

    de0eaf9

    chore: release 0.58.0 (#1097)

    ca4054b
  13. parthea
    added 2 commits that reference this issue on Mar 6, 2026

    chore(deps): update all dependencies (#1089)

    8a5d18b

    chore(deps): update dependency google-cloud-spanner to v3.42.0 (#1089)

    09490e7
  14. parthea
    added a commit that references this issue on Sep 8, 2026

    docs: migrate code from googleapis/python-bigquery (#18303)

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

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: datastoreIssues related to the Datastore 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.