Skip to content

PYTHON-2308 Test that we exclusively depend on existence of logicalSessionsTimeoutMinutes for sessions support #499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 8, 2020

Conversation

ShaneHarvey
Copy link
Member

@ShaneHarvey ShaneHarvey commented Oct 6, 2020

This change resyncs the session spec tests and updates the prose tests to ensure we comply with the updated spec.

@@ -863,7 +866,6 @@ def _test_reads(self, op, exception=None):
'readConcern', {}).get('afterClusterTime')
self.assertEqual(operation_time, act)

@client_context.require_no_standalone
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made these changes because this line was removed from the prose tests:

The test plan SHOULD be run against both replica set and sharded cluster
topologies. It MUST NOT be run against a standalone server.

mongodb/specifications@cdbc6ca#diff-042f65298ff835d62143081f7356a4ceL981

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out we already run the session prose tests (TestSession) against standalone clusters. I reverted the changes I made here because they were for the TestCausalConsistency class which implements the Causal Consistency spec prose tests. The causal prose test plan still says to skip standalones so there's nothing to be done here.

Copy link
Contributor

@prashantmital prashantmital left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errors in evergreen seem to be related to this change on 4.2 standalone?

@ShaneHarvey ShaneHarvey merged commit d3e66a6 into mongodb:master Oct 8, 2020
@ShaneHarvey ShaneHarvey deleted the PYTHON-2308 branch October 8, 2020 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants