Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Conversation

@TBSliver
Copy link
Contributor

@TBSliver TBSliver commented Apr 6, 2018

Adds support for causal consistency on sessions. Note that from the Spec, tests 7, 11, and 12 are not implemented as the tests are either logically impossible, or are covered in tests from PERL-790.

Also note this includes a fix for session support in explain on a cursor.

@coveralls
Copy link

coveralls commented Apr 6, 2018

Coverage Status

Coverage decreased (-0.1%) to 79.678% when pulling 51a35f4 on shadow-dot-cat:TBSliver/PERL-793 into 9360ce5 on mongodb:master.

@TBSliver TBSliver force-pushed the TBSliver/PERL-793 branch from 8342452 to 51a35f4 Compare April 17, 2018 16:08
updated to this provided value.
Setting C<operation_time> with a manually crafted value may cause a server
error. It is reccomended to only use an C<operation_time> retreived from
Copy link
Contributor

Choose a reason for hiding this comment

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

s/reccomended/recommended/

# * count
# * distinct

subtest 'find' => sub {
Copy link
Contributor

Choose a reason for hiding this comment

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

These are a bit repetitive. How about setting up an array of method name + args tuples and then having the test logic in a loop?

# * ordered_bulk
# * unordered_bulk

subtest 'insert_one' => sub {
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto about setting up an array of methods and arguments and looping the test logic. (Except for bulk -- those can stay separate.)

@xdg
Copy link
Contributor

xdg commented May 11, 2018

Looks very good. Just a few minor changes in what I see here.

Also, however, please do the following:

  • rebase to master
  • move test from devel/ to t/
  • convert to using command monitoring

@TBSliver TBSliver force-pushed the TBSliver/PERL-793 branch from ae64614 to 442d007 Compare May 17, 2018 17:11
@xdg
Copy link
Contributor

xdg commented May 18, 2018

Looks good. Just waiting on the command monitoring bits. I'll take care of resolving the conflicts later before I merge it.

@TBSliver
Copy link
Contributor Author

Right, thats the command monitoring stuff in. Have also renamed the test to not have the ticket name as you mentioned in #159 for PERL-792

@xdg
Copy link
Contributor

xdg commented May 21, 2018

LGTM. I'll start working on getting it rebased and merged.

@xdg
Copy link
Contributor

xdg commented May 21, 2018

Rebased, fixed up and merged. Thanks!

@xdg xdg closed this May 21, 2018
@TBSliver TBSliver deleted the TBSliver/PERL-793 branch September 14, 2018 14:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants