mongo 2.10.2 → 2.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/mongo/collection/view/readable.rb +2 -2
  5. data/lib/mongo/cursor/builder/get_more_command.rb +4 -1
  6. data/lib/mongo/cursor/builder/kill_cursors_command.rb +16 -5
  7. data/lib/mongo/cursor/builder/op_get_more.rb +2 -2
  8. data/lib/mongo/cursor/builder/op_kill_cursors.rb +17 -5
  9. data/lib/mongo/error/operation_failure.rb +3 -3
  10. data/lib/mongo/protocol/get_more.rb +2 -1
  11. data/lib/mongo/protocol/kill_cursors.rb +6 -13
  12. data/lib/mongo/protocol/serializers.rb +10 -4
  13. data/lib/mongo/retryable.rb +34 -9
  14. data/lib/mongo/version.rb +1 -1
  15. data/mongo.gemspec +1 -1
  16. data/spec/integration/cursor_reaping_spec.rb +1 -1
  17. data/spec/integration/get_more_spec.rb +32 -0
  18. data/spec/integration/retryable_errors_spec.rb +265 -0
  19. data/spec/integration/retryable_writes_spec.rb +36 -36
  20. data/spec/mongo/bulk_write_spec.rb +2 -2
  21. data/spec/mongo/cursor/builder/get_more_command_spec.rb +4 -2
  22. data/spec/mongo/cursor/builder/op_get_more_spec.rb +4 -2
  23. data/spec/mongo/cursor_spec.rb +3 -3
  24. data/spec/mongo/retryable_spec.rb +31 -52
  25. data/spec/runners/sdam/verifier.rb +88 -0
  26. data/spec/spec_tests/retryable_reads_spec.rb +31 -0
  27. data/spec/spec_tests/sdam_monitoring_spec.rb +9 -4
  28. data/spec/support/cluster_tools.rb +4 -3
  29. data/spec/support/command_monitoring.rb +5 -0
  30. data/spec/support/event_subscriber.rb +7 -0
  31. data/spec/support/sdam_monitoring.rb +0 -115
  32. data/spec/support/spec_config.rb +1 -1
  33. data/spec/support/utils.rb +1 -1
  34. metadata +10 -4
  35. metadata.gz.sig +0 -0
@@ -328,7 +328,7 @@ EOT
328
328
  end
329
329
 
330
330
  def retry_writes_options
331
- {retry_writes: retry_writes}
331
+ {retry_writes: retry_writes?}
332
332
  end
333
333
 
334
334
  # Base test options.
@@ -70,7 +70,7 @@ module Utils
70
70
  # Convert txnNumber field from a BSON integer to an extended JSON int64
71
71
  if command['txnNumber']
72
72
  command['txnNumber'] = {
73
- '$numberLong' => command['txnNumber'].instance_variable_get(:@integer).to_s
73
+ '$numberLong' => command['txnNumber'].value.to_s
74
74
  }
75
75
  end
76
76
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.2
4
+ version: 2.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Brock
@@ -31,7 +31,7 @@ cert_chain:
31
31
  bMYVwXXhV8czdzgkQB/ZPWHSbEWXnmkze1mzvqWBCPOVXYrcnL9cnEl/RoxtS1hr
32
32
  Db6Ac6mCUSYfYHBWpWqxjc45n70i5Xi1
33
33
  -----END CERTIFICATE-----
34
- date: 2019-09-23 00:00:00.000000000 Z
34
+ date: 2019-11-15 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bson
@@ -39,7 +39,7 @@ dependencies:
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 4.4.2
42
+ version: 4.6.0
43
43
  - - "<"
44
44
  - !ruby/object:Gem::Version
45
45
  version: 5.0.0
@@ -49,7 +49,7 @@ dependencies:
49
49
  requirements:
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 4.4.2
52
+ version: 4.6.0
53
53
  - - "<"
54
54
  - !ruby/object:Gem::Version
55
55
  version: 5.0.0
@@ -451,6 +451,7 @@ files:
451
451
  - spec/integration/cursor_reaping_spec.rb
452
452
  - spec/integration/docs_examples_spec.rb
453
453
  - spec/integration/error_detection_spec.rb
454
+ - spec/integration/get_more_spec.rb
454
455
  - spec/integration/heartbeat_events_spec.rb
455
456
  - spec/integration/mmapv1_spec.rb
456
457
  - spec/integration/mongos_pinning_spec.rb
@@ -458,6 +459,7 @@ files:
458
459
  - spec/integration/read_concern_spec.rb
459
460
  - spec/integration/read_preference_spec.rb
460
461
  - spec/integration/reconnect_spec.rb
462
+ - spec/integration/retryable_errors_spec.rb
461
463
  - spec/integration/retryable_writes_errors_spec.rb
462
464
  - spec/integration/retryable_writes_spec.rb
463
465
  - spec/integration/sdam_error_handling_spec.rb
@@ -638,6 +640,7 @@ files:
638
640
  - spec/mongo/write_concern/acknowledged_spec.rb
639
641
  - spec/mongo/write_concern/unacknowledged_spec.rb
640
642
  - spec/mongo/write_concern_spec.rb
643
+ - spec/runners/sdam/verifier.rb
641
644
  - spec/spec_helper.rb
642
645
  - spec/spec_tests/change_streams_spec.rb
643
646
  - spec/spec_tests/cmap_spec.rb
@@ -1190,6 +1193,7 @@ test_files:
1190
1193
  - spec/support/lite_constraints.rb
1191
1194
  - spec/README.md
1192
1195
  - spec/integration/ssl_uri_options_spec.rb
1196
+ - spec/integration/get_more_spec.rb
1193
1197
  - spec/integration/step_down_spec.rb
1194
1198
  - spec/integration/read_concern_spec.rb
1195
1199
  - spec/integration/server_description_spec.rb
@@ -1206,6 +1210,7 @@ test_files:
1206
1210
  - spec/integration/client_construction_spec.rb
1207
1211
  - spec/integration/server_selector_spec.rb
1208
1212
  - spec/integration/retryable_writes_spec.rb
1213
+ - spec/integration/retryable_errors_spec.rb
1209
1214
  - spec/integration/change_stream_examples_spec.rb
1210
1215
  - spec/integration/transactions_examples_spec.rb
1211
1216
  - spec/integration/command_monitoring_spec.rb
@@ -1787,3 +1792,4 @@ test_files:
1787
1792
  - spec/spec_tests/sdam_monitoring_spec.rb
1788
1793
  - spec/spec_tests/transactions_spec.rb
1789
1794
  - spec/spec_tests/dns_seedlist_discovery_spec.rb
1795
+ - spec/runners/sdam/verifier.rb
metadata.gz.sig CHANGED
Binary file