-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Tests
-
Labels:None
Various tests in retryable reads spec tests are failing intermittently.
One run:
1) ./spec/spec_tests/retryable_reads_spec.rb[1:21:1:12:2]
Retryable reads spec tests gridfs-download-serverErrors.yml 4.0/single,replica_set Download fails after two NotMaster errors has the correct number of command_started events
RSpec::Expectations::ExpectationNotMetError: Expected 2 events, got 3 events.
Expected events: [{"command_started_event"=>
{"command"=>
{"find"=>"fs.files",
"filter"=>{"_id"=>
"database_name"=>"ruby-driver"}},
{"command_started_event"=>
{"command"=>
{"find"=>"fs.files",
"filter"=>{"_id"=>{"$oid"=>"000000000000000000000001"}
}},
"database_name"=>"ruby-driver"}}]
Actual events: [{"command_started_event"=>
{"command"=>
{"$clusterTime"=>
{"clusterTime"=>
#<BSON::Timestamp:0x000000002fab3298
@increment=447,
@seconds=1568670420>,
"signature"=>
{"hash"=>
<BSON::Binary:0x399874240 type=generic data=0x28e6e5bdcf5d1c59...>,
"keyId"=>6737385549352402945}},
"filter"=>{"_id"=>{"$oid"=>"000000000000000000000001"}},
"find"=>"fs.files",
"lsid"=>
{"id"=>
<BSON::Binary:0x440162520 type=uuid data=0x1a3d18d7dc0249af...>}},
"command_name"=>"find",
"database_name"=>"ruby-driver"}},
{"command_started_event"=>
{"command"=>
{"$clusterTime"=>
{"clusterTime"=>
#<BSON::Timestamp:0x000000002fae3128
@increment=449,
@seconds=1568670420>,
"signature"=>
{"hash"=>
<BSON::Binary:0x399972340 type=generic data=0x28e6e5bdcf5d1c59...>,
"keyId"=>6737385549352402945}},
"filter"=>{"_id"=>{"$oid"=>"000000000000000000000001"}},
"find"=>"fs.files",
"lsid"=>
{"id"=>
<BSON::Binary:0x440162520 type=uuid data=0x1a3d18d7dc0249af...>}},
"command_name"=>"find",
"database_name"=>"ruby-driver"}},
{"command_started_event"=>
{"command"=>
{"$clusterTime"=>
{"clusterTime"=>
#<BSON::Timestamp:0x000000002fae3128
@increment=449,
@seconds=1568670420>,
"signature"=>
{"hash"=>
<BSON::Binary:0x399972340 type=generic data=0x28e6e5bdcf5d1c59...>,
"keyId"=>6737385549352402945}},
"filter"=>{"files_id"=>{"$oid"=>"000000000000000000000001"}},
"find"=>"fs.chunks",
"lsid"=>
,
"sort"=>{"n"=>1}},
"command_name"=>"find",
"database_name"=>"ruby-driver"}}]
/data/mci/f29ab3913a860147683346f5a183cde3/src/spec/support/crud/verifier.rb:71:in `verify_command_started_event_count'
/data/mci/f29ab3913a860147683346f5a183cde3/src/spec/support/crud.rb:170:in `block (3 levels) in define_crud_spec_test_examples'
Another run:
1) ./spec/spec_tests/retryable_reads_spec.rb[1:23:1:12:2]
Retryable reads spec tests gridfs-downloadByName-serverErrors.yml 4.0/single,replica_set DownloadByName fails after two NotMaster errors has the correct number of command_started events
RSpec::Expectations::ExpectationNotMetError: Expected 2 events, got 3 events.
Expected events: [{"command_started_event"=>
{"command"=>{"find"=>"fs.files", "filter"=>{"filename"=>"abc"}},
"database_name"=>"ruby-driver"}},
{"command_started_event"=>
{"command"=>{"find"=>"fs.files", "filter"=>{"filename"=>"abc"}},
"database_name"=>"ruby-driver"}}]
Actual events: [{"command_started_event"=>
{"command"=>
{"$clusterTime"=>
{"clusterTime"=>
#<BSON::Timestamp:0x00000000305018f8
@increment=28,
@seconds=1568670351>,
"signature"=>
{"hash"=>
<BSON::Binary:0x405277680 type=generic data=0x0000000000000000...>,
"keyId"=>0}},
"filter"=>
"find"=>"fs.files",
"limit"=>1,
"lsid"=>
{"id"=><BSON::Binary:0x398247820 type=uuid data=0x4bb5b0e2c13a4941...>},
"singleBatch"=>true,
"skip"=>0,
"sort"=>{"uploadDate"=>-1}},
"command_name"=>"find",
"database_name"=>"ruby-driver"}},
{"command_started_event"=>
{"command"=>
{"$clusterTime"=>
{"clusterTime"=>
#<BSON::Timestamp:0x00000000305018f8
@increment=28,
@seconds=1568670351>,
"signature"=>
{"hash"=>
<BSON::Binary:0x405277680 type=generic data=0x0000000000000000...>,
"keyId"=>0}},
"filter"=>{"filename"=>"abc"}
,
"find"=>"fs.files",
"limit"=>1,
"lsid"=>
,
"singleBatch"=>true,
"skip"=>0,
"sort"=>{"uploadDate"=>-1}},
"command_name"=>"find",
"database_name"=>"ruby-driver"}},
{"command_started_event"=>
{"command"=>
{"$clusterTime"=>
{"clusterTime"=>
#<BSON::Timestamp:0x0000000030543320
@increment=100,
@seconds=1568670352>,
"signature"=>
{"hash"=>
<BSON::Binary:0x405412100 type=generic data=0x0000000000000000...>,
"keyId"=>0}},
"filter"=>{"files_id"=>{"$oid"=>"000000000000000000000001"}},
"find"=>"fs.chunks",
"lsid"=>
,
"sort"=>{"n"=>1}},
"command_name"=>"find",
"database_name"=>"ruby-driver"}}]
/data/mci/b633284180e99401df89c72c258feb46/src/spec/support/crud/verifier.rb:71:in `verify_command_started_event_count'
/data/mci/b633284180e99401df89c72c258feb46/src/spec/support/crud.rb:170:in `block (3 levels) in define_crud_spec_test_examples'