Skip to content

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Feb 17, 2017

Also the mocked-up versions used to test pools.

Rationale: Some pools store them in priority queues, with a leading timestamp: if two entries have the same timestamp, then the sessions need to be orderable.

Closes #3011.

@tseaver tseaver added the api: spanner Issues related to the Spanner API. label Feb 17, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 17, 2017
def __init__(self, database):
self._database = database

def __lt__(self, other):

This comment was marked as spam.

@daspecster
Copy link
Contributor

daspecster commented Feb 17, 2017

I'm sorry @tseaver! I converted the _makeOne's to _make_one in #3039. If you rebase master in and switch to _make_one, it should clear up Travis and CircleCI.

@dhermes
Copy link
Contributor

dhermes commented Feb 18, 2017

@tseaver You are red on Travis CI (indicates docs or lint is failing, they don't yet run on CircleCI)

Some pools store them in priority queues, with a leading timestamp:
if two entries have the same timestamp, then the sessions need to be
orderable.
Add a test for the two-entries-have-the-same-timestamp race which
underlies the Appveyor failure in #3011.

Closes #3011.
@tseaver tseaver merged commit c29fd6d into googleapis:master Feb 18, 2017
@tseaver tseaver deleted the 3011-spanner-heappush-timestamp-race branch February 18, 2017 16:44
richkadel pushed a commit to richkadel/google-cloud-python that referenced this pull request May 6, 2017
…-timestamp-race

Ensure that 'Session' instances are orderable.
parthea pushed a commit that referenced this pull request Oct 21, 2023
…gleCloudPlatform/python-docs-samples#3042)

* automl: move video classification samples out of branch

* fix uuid and create test

* fix project

* use global for testing

* Update video_classification_create_model.py

Co-authored-by: Leah E. Cole <6719667+leahecole@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants