From 8cf08fd882d1a8f8b3d6186fb3d9393a83e16bcb Mon Sep 17 00:00:00 2001 From: Kamil Dziedzic Date: Sun, 15 Oct 2017 04:14:21 +0200 Subject: [PATCH] support getmore; support find with sort; cleanups --- src/go/lib/tutil/util.go | 4 + src/go/mongolib/explain/explain_test.go | 9 + .../mongolib/fingerprinter/fingerprinter.go | 14 +- .../fingerprinter/fingerprinter_test.go | 25 +- src/go/mongolib/proto/system.profile.go | 57 +- src/go/mongolib/util/util.go | 34 -- src/go/pt-mongodb-query-digest/main.go | 3 +- src/go/pt-mongodb-query-digest/main_test.go | 55 +- src/go/tests/doc/out/aggregate_2.6.12 | 8 +- src/go/tests/doc/out/aggregate_3.0.15 | 4 +- src/go/tests/doc/out/aggregate_3.2.16 | 4 +- src/go/tests/doc/out/aggregate_3.4.7 | 2 +- src/go/tests/doc/out/aggregate_3.5.11 | 2 +- src/go/tests/doc/out/count_2.6.12 | 8 +- src/go/tests/doc/out/count_3.0.15 | 2 +- src/go/tests/doc/out/count_3.2.16 | 2 +- src/go/tests/doc/out/count_3.4.7 | 4 +- src/go/tests/doc/out/count_3.5.11 | 4 +- src/go/tests/doc/out/count_with_query_2.6.12 | 8 +- src/go/tests/doc/out/count_with_query_3.0.15 | 2 +- src/go/tests/doc/out/count_with_query_3.2.16 | 2 +- src/go/tests/doc/out/count_with_query_3.4.7 | 54 +- src/go/tests/doc/out/count_with_query_3.5.11 | 54 +- src/go/tests/doc/out/delete_2.6.12 | 6 +- src/go/tests/doc/out/delete_3.0.15 | 2 +- src/go/tests/doc/out/delete_3.2.16 | 2 +- src/go/tests/doc/out/delete_3.4.7 | 24 +- src/go/tests/doc/out/delete_3.5.11 | 26 +- src/go/tests/doc/out/delete_all_2.6.12 | 8 +- src/go/tests/doc/out/delete_all_3.0.15 | 8 +- src/go/tests/doc/out/delete_all_3.2.16 | 6 +- src/go/tests/doc/out/delete_all_3.4.7 | 44 +- src/go/tests/doc/out/delete_all_3.5.11 | 46 +- src/go/tests/doc/out/distinct_2.6.12 | 10 +- src/go/tests/doc/out/distinct_3.0.15 | 4 +- src/go/tests/doc/out/distinct_3.2.16 | 4 +- src/go/tests/doc/out/distinct_3.4.7 | 24 +- src/go/tests/doc/out/distinct_3.5.11 | 24 +- src/go/tests/doc/out/eval_2.6.12 | 14 +- src/go/tests/doc/out/eval_3.0.15 | 8 +- src/go/tests/doc/out/eval_3.2.16 | 8 +- src/go/tests/doc/out/eval_3.4.7 | 8 +- src/go/tests/doc/out/eval_3.5.11 | 8 +- src/go/tests/doc/out/explain_2.6.12 | 18 +- src/go/tests/doc/out/explain_3.0.15 | 2 +- src/go/tests/doc/out/explain_3.2.16 | 2 +- src/go/tests/doc/out/explain_3.4.7 | 2 +- src/go/tests/doc/out/explain_3.5.11 | 2 +- src/go/tests/doc/out/find_2.6.12 | 32 +- src/go/tests/doc/out/find_3.0.15 | 34 +- src/go/tests/doc/out/find_3.2.16 | 36 +- src/go/tests/doc/out/find_3.4.7 | 38 +- src/go/tests/doc/out/find_3.5.11 | 40 +- src/go/tests/doc/out/find_andrii_2.6.12 | 87 +--- src/go/tests/doc/out/find_andrii_3.0.15 | 163 +----- src/go/tests/doc/out/find_andrii_3.2.16 | 85 +-- src/go/tests/doc/out/find_andrii_3.4.7 | 87 +--- src/go/tests/doc/out/find_andrii_3.5.11 | 87 +--- src/go/tests/doc/out/find_empty_2.6.12 | 28 +- src/go/tests/doc/out/find_empty_3.0.15 | 25 +- src/go/tests/doc/out/find_empty_3.2.16 | 25 +- src/go/tests/doc/out/find_empty_3.4.7 | 24 +- src/go/tests/doc/out/find_empty_3.5.11 | 24 +- src/go/tests/doc/out/find_with_sort_2.6.12 | 102 ++++ src/go/tests/doc/out/find_with_sort_3.0.15 | 124 +++++ src/go/tests/doc/out/find_with_sort_3.2.16 | 123 +++++ src/go/tests/doc/out/find_with_sort_3.4.7 | 127 +++++ src/go/tests/doc/out/find_with_sort_3.5.11 | 128 +++++ src/go/tests/doc/out/findandmodify_2.6.12 | 8 +- src/go/tests/doc/out/findandmodify_3.0.15 | 2 +- src/go/tests/doc/out/findandmodify_3.2.16 | 4 +- src/go/tests/doc/out/findandmodify_3.4.7 | 4 +- src/go/tests/doc/out/findandmodify_3.5.11 | 4 +- src/go/tests/doc/out/geonear_2.6.12 | 8 +- src/go/tests/doc/out/geonear_3.0.15 | 4 +- src/go/tests/doc/out/geonear_3.2.16 | 4 +- src/go/tests/doc/out/geonear_3.4.7 | 10 +- src/go/tests/doc/out/geonear_3.5.11 | 6 +- src/go/tests/doc/out/getmore_2.6.12 | 33 ++ src/go/tests/doc/out/getmore_3.0.15 | 46 ++ src/go/tests/doc/out/getmore_3.2.16 | 44 ++ src/go/tests/doc/out/getmore_3.4.7 | 103 ++++ src/go/tests/doc/out/getmore_3.5.11 | 106 ++++ src/go/tests/doc/out/group_2.6.12 | 10 +- src/go/tests/doc/out/group_3.0.15 | 4 +- src/go/tests/doc/out/group_3.2.16 | 4 +- src/go/tests/doc/out/group_3.4.7 | 6 +- src/go/tests/doc/out/group_3.5.11 | 6 +- src/go/tests/doc/out/insert_2.6.12 | 6 +- src/go/tests/doc/out/insert_3.0.15 | 20 +- src/go/tests/doc/out/insert_3.2.16 | 14 +- src/go/tests/doc/out/insert_3.4.7 | 15 +- src/go/tests/doc/out/insert_3.5.11 | 15 +- src/go/tests/doc/out/mapreduce_2.6.12 | 10 +- src/go/tests/doc/out/mapreduce_3.0.15 | 4 +- src/go/tests/doc/out/mapreduce_3.2.16 | 4 +- src/go/tests/doc/out/mapreduce_3.4.7 | 22 +- src/go/tests/doc/out/mapreduce_3.5.11 | 4 +- src/go/tests/doc/out/update_2.6.12 | 10 +- src/go/tests/doc/out/update_3.0.15 | 6 +- src/go/tests/doc/out/update_3.2.16 | 4 +- src/go/tests/doc/out/update_3.4.7 | 2 +- src/go/tests/doc/out/update_3.5.11 | 2 +- src/go/tests/doc/script/profile/aggregate.js | 6 +- src/go/tests/doc/script/profile/count.js | 5 +- .../doc/script/profile/count_with_query.js | 5 +- src/go/tests/doc/script/profile/delete.js | 8 +- src/go/tests/doc/script/profile/delete_all.js | 8 +- src/go/tests/doc/script/profile/distinct.js | 6 +- src/go/tests/doc/script/profile/eval.js | 2 +- src/go/tests/doc/script/profile/explain.js | 4 +- src/go/tests/doc/script/profile/find.js | 13 +- .../tests/doc/script/profile/find_andrii.js | 9 +- src/go/tests/doc/script/profile/find_empty.js | 4 +- .../doc/script/profile/find_with_sort.js | 9 + .../tests/doc/script/profile/findandmodify.js | 2 +- src/go/tests/doc/script/profile/geonear.js | 5 +- src/go/tests/doc/script/profile/getmore.js | 14 + src/go/tests/doc/script/profile/group.js | 5 +- src/go/tests/doc/script/profile/insert.js | 3 +- src/go/tests/doc/script/profile/mapreduce.js | 3 +- src/go/tests/doc/script/profile/update.js | 6 +- .../available_metrics/available_metrics | 182 +++---- src/go/tests/expect/stats_all/sum.json | 488 ++++++++++-------- .../expect/stats_single/aggregate_2.6.12 | 4 +- .../expect/stats_single/aggregate_3.0.15 | 6 +- .../expect/stats_single/aggregate_3.2.16 | 6 +- .../tests/expect/stats_single/aggregate_3.4.7 | 4 +- .../expect/stats_single/aggregate_3.5.11 | 4 +- src/go/tests/expect/stats_single/count_2.6.12 | 4 +- src/go/tests/expect/stats_single/count_3.0.15 | 4 +- src/go/tests/expect/stats_single/count_3.2.16 | 4 +- src/go/tests/expect/stats_single/count_3.4.7 | 4 +- src/go/tests/expect/stats_single/count_3.5.11 | 4 +- .../stats_single/count_with_query_2.6.12 | 4 +- .../stats_single/count_with_query_3.0.15 | 4 +- .../stats_single/count_with_query_3.2.16 | 4 +- .../stats_single/count_with_query_3.4.7 | 6 +- .../stats_single/count_with_query_3.5.11 | 6 +- .../tests/expect/stats_single/delete_2.6.12 | 4 +- .../tests/expect/stats_single/delete_3.0.15 | 4 +- .../tests/expect/stats_single/delete_3.2.16 | 4 +- src/go/tests/expect/stats_single/delete_3.4.7 | 6 +- .../tests/expect/stats_single/delete_3.5.11 | 8 +- .../expect/stats_single/delete_all_2.6.12 | 4 +- .../expect/stats_single/delete_all_3.0.15 | 6 +- .../expect/stats_single/delete_all_3.2.16 | 6 +- .../expect/stats_single/delete_all_3.4.7 | 8 +- .../expect/stats_single/delete_all_3.5.11 | 8 +- .../tests/expect/stats_single/distinct_2.6.12 | 6 +- .../tests/expect/stats_single/distinct_3.0.15 | 6 +- .../tests/expect/stats_single/distinct_3.2.16 | 6 +- .../tests/expect/stats_single/distinct_3.4.7 | 8 +- .../tests/expect/stats_single/distinct_3.5.11 | 8 +- src/go/tests/expect/stats_single/eval_2.6.12 | 10 +- src/go/tests/expect/stats_single/eval_3.0.15 | 10 +- src/go/tests/expect/stats_single/eval_3.2.16 | 10 +- src/go/tests/expect/stats_single/eval_3.4.7 | 10 +- src/go/tests/expect/stats_single/eval_3.5.11 | 10 +- .../tests/expect/stats_single/explain_2.6.12 | 6 +- .../tests/expect/stats_single/explain_3.0.15 | 4 +- .../tests/expect/stats_single/explain_3.2.16 | 4 +- .../tests/expect/stats_single/explain_3.4.7 | 4 +- .../tests/expect/stats_single/explain_3.5.11 | 4 +- src/go/tests/expect/stats_single/find_2.6.12 | 16 +- src/go/tests/expect/stats_single/find_3.0.15 | 16 +- src/go/tests/expect/stats_single/find_3.2.16 | 18 +- src/go/tests/expect/stats_single/find_3.4.7 | 16 +- src/go/tests/expect/stats_single/find_3.5.11 | 18 +- .../expect/stats_single/find_andrii_2.6.12 | 6 +- .../expect/stats_single/find_andrii_3.0.15 | 6 +- .../expect/stats_single/find_andrii_3.2.16 | 6 +- .../expect/stats_single/find_andrii_3.4.7 | 6 +- .../expect/stats_single/find_andrii_3.5.11 | 6 +- .../expect/stats_single/find_empty_2.6.12 | 10 +- .../expect/stats_single/find_empty_3.0.15 | 10 +- .../expect/stats_single/find_empty_3.2.16 | 10 +- .../expect/stats_single/find_empty_3.4.7 | 10 +- .../expect/stats_single/find_empty_3.5.11 | 10 +- .../expect/stats_single/find_with_sort_2.6.12 | 27 + .../expect/stats_single/find_with_sort_3.0.15 | 27 + .../expect/stats_single/find_with_sort_3.2.16 | 27 + .../expect/stats_single/find_with_sort_3.4.7 | 27 + .../expect/stats_single/find_with_sort_3.5.11 | 27 + .../expect/stats_single/findandmodify_2.6.12 | 6 +- .../expect/stats_single/findandmodify_3.0.15 | 4 +- .../expect/stats_single/findandmodify_3.2.16 | 6 +- .../expect/stats_single/findandmodify_3.4.7 | 6 +- .../expect/stats_single/findandmodify_3.5.11 | 6 +- .../tests/expect/stats_single/geonear_2.6.12 | 4 +- .../tests/expect/stats_single/geonear_3.0.15 | 6 +- .../tests/expect/stats_single/geonear_3.2.16 | 6 +- .../tests/expect/stats_single/geonear_3.4.7 | 6 +- .../tests/expect/stats_single/geonear_3.5.11 | 6 +- .../tests/expect/stats_single/getmore_2.6.12 | 27 + .../tests/expect/stats_single/getmore_3.0.15 | 27 + .../tests/expect/stats_single/getmore_3.2.16 | 27 + .../tests/expect/stats_single/getmore_3.4.7 | 27 + .../tests/expect/stats_single/getmore_3.5.11 | 27 + src/go/tests/expect/stats_single/group_2.6.12 | 6 +- src/go/tests/expect/stats_single/group_3.0.15 | 6 +- src/go/tests/expect/stats_single/group_3.2.16 | 6 +- src/go/tests/expect/stats_single/group_3.4.7 | 6 +- src/go/tests/expect/stats_single/group_3.5.11 | 6 +- .../tests/expect/stats_single/insert_2.6.12 | 4 +- .../tests/expect/stats_single/insert_3.0.15 | 6 +- .../tests/expect/stats_single/insert_3.2.16 | 6 +- src/go/tests/expect/stats_single/insert_3.4.7 | 6 +- .../tests/expect/stats_single/insert_3.5.11 | 6 +- .../expect/stats_single/mapreduce_2.6.12 | 6 +- .../expect/stats_single/mapreduce_3.0.15 | 6 +- .../expect/stats_single/mapreduce_3.2.16 | 6 +- .../tests/expect/stats_single/mapreduce_3.4.7 | 6 +- .../expect/stats_single/mapreduce_3.5.11 | 6 +- .../tests/expect/stats_single/update_2.6.12 | 4 +- .../tests/expect/stats_single/update_3.0.15 | 4 +- .../tests/expect/stats_single/update_3.2.16 | 6 +- src/go/tests/expect/stats_single/update_3.4.7 | 4 +- .../tests/expect/stats_single/update_3.5.11 | 4 +- 219 files changed, 2567 insertions(+), 1696 deletions(-) create mode 100644 src/go/tests/doc/out/find_with_sort_2.6.12 create mode 100644 src/go/tests/doc/out/find_with_sort_3.0.15 create mode 100644 src/go/tests/doc/out/find_with_sort_3.2.16 create mode 100644 src/go/tests/doc/out/find_with_sort_3.4.7 create mode 100644 src/go/tests/doc/out/find_with_sort_3.5.11 create mode 100644 src/go/tests/doc/out/getmore_2.6.12 create mode 100644 src/go/tests/doc/out/getmore_3.0.15 create mode 100644 src/go/tests/doc/out/getmore_3.2.16 create mode 100644 src/go/tests/doc/out/getmore_3.4.7 create mode 100644 src/go/tests/doc/out/getmore_3.5.11 create mode 100644 src/go/tests/doc/script/profile/find_with_sort.js create mode 100644 src/go/tests/doc/script/profile/getmore.js create mode 100755 src/go/tests/expect/stats_single/find_with_sort_2.6.12 create mode 100755 src/go/tests/expect/stats_single/find_with_sort_3.0.15 create mode 100755 src/go/tests/expect/stats_single/find_with_sort_3.2.16 create mode 100755 src/go/tests/expect/stats_single/find_with_sort_3.4.7 create mode 100755 src/go/tests/expect/stats_single/find_with_sort_3.5.11 create mode 100755 src/go/tests/expect/stats_single/getmore_2.6.12 create mode 100755 src/go/tests/expect/stats_single/getmore_3.0.15 create mode 100755 src/go/tests/expect/stats_single/getmore_3.2.16 create mode 100755 src/go/tests/expect/stats_single/getmore_3.4.7 create mode 100755 src/go/tests/expect/stats_single/getmore_3.5.11 diff --git a/src/go/lib/tutil/util.go b/src/go/lib/tutil/util.go index aa2b8ef9..3e3f8373 100644 --- a/src/go/lib/tutil/util.go +++ b/src/go/lib/tutil/util.go @@ -62,6 +62,10 @@ func LoadBson(filename string, destination interface{}) error { re := regexp.MustCompile(`" :`) buf = re.ReplaceAll(buf, []byte(`":`)) + // Using NumberLong is not supported + re = regexp.MustCompile(`NumberLong\((.*)\)`) + buf = re.ReplaceAll(buf, []byte(`$1`)) + // Using regexp is not supported // https://github.com/go-mgo/mgo/issues/363 re = regexp.MustCompile(`(/.*/)`) diff --git a/src/go/mongolib/explain/explain_test.go b/src/go/mongolib/explain/explain_test.go index c2826ab2..47bc9d28 100644 --- a/src/go/mongolib/explain/explain_test.go +++ b/src/go/mongolib/explain/explain_test.go @@ -77,9 +77,11 @@ func TestExplain(t *testing.T) { "distinct": "", "find_empty": "", "find": "", + "find_with_sort": "", "find_andrii": "", "findandmodify": "", "geonear": "Cannot explain cmd: geoNear", + "getmore": "", "group": "", "insert": "Cannot explain cmd: insert", "mapreduce": "Cannot explain cmd: mapReduce", @@ -104,6 +106,13 @@ func TestExplain(t *testing.T) { } } + for _, v := range versions { + // For versions < 3.4 parsing "getmore" is not supported and returns error + if ok, _ := Constraint("< 3.4", v); ok { + expectError["getmore_"+v] = "Cannot explain cmd: getMore" + } + } + // For versions >= 3.0, < 3.4 trying to explain "insert" returns different error if ok, _ := Constraint(">= 3.0, < 3.4", bi.Version); ok { for _, v := range versions { diff --git a/src/go/mongolib/fingerprinter/fingerprinter.go b/src/go/mongolib/fingerprinter/fingerprinter.go index 34f62105..e25536f6 100644 --- a/src/go/mongolib/fingerprinter/fingerprinter.go +++ b/src/go/mongolib/fingerprinter/fingerprinter.go @@ -66,6 +66,15 @@ func (f *Fingerprinter) Fingerprint(doc proto.SystemProfile) (Fingerprint, error } } + // if there is a orderby clause in the query, we have to add all fields in the sort + // fields list that are not in the query keys list (retKeys) + if sortKeys, ok := query.Map()["orderby"]; ok { + if sortKeysMap, ok := sortKeys.(bson.M); ok { + sortKeys := keys(sortKeysMap, f.keyFilters) + retKeys = append(retKeys, sortKeys...) + } + } + // Extract operation, collection, database and namespace op := "" collection := "" @@ -98,7 +107,7 @@ func (f *Fingerprinter) Fingerprint(doc proto.SystemProfile) (Fingerprint, error break } op = "find" - default: + case "command": if query.Len() == 0 { break } @@ -149,6 +158,9 @@ func (f *Fingerprinter) Fingerprint(doc proto.SystemProfile) (Fingerprint, error collection = "" retKeys = []string{} } + default: + op = doc.Op + retKeys = []string{} } sort.Strings(retKeys) diff --git a/src/go/mongolib/fingerprinter/fingerprinter_test.go b/src/go/mongolib/fingerprinter/fingerprinter_test.go index 9d9fb71f..004ceb1f 100644 --- a/src/go/mongolib/fingerprinter/fingerprinter_test.go +++ b/src/go/mongolib/fingerprinter/fingerprinter_test.go @@ -50,6 +50,8 @@ func ExampleFingerprint() { func TestFingerprint(t *testing.T) { doc := proto.SystemProfile{} + doc.Ns = "db.feedback" + doc.Op = "query" doc.Query = proto.BsonD{ {"find", "feedback"}, {"filter", bson.M{ @@ -63,13 +65,12 @@ func TestFingerprint(t *testing.T) { fp := NewFingerprinter(nil) got, err := fp.Fingerprint(doc) - if err != nil { t.Error("Error in fingerprint") } if got.Fingerprint != want { - t.Errorf("Invalid fingerprint. Got: %q, want %q", got, want) + t.Errorf("Invalid fingerprint. Got: %q, want %q", got.Fingerprint, want) } } @@ -128,16 +129,21 @@ func TestFingerprints(t *testing.T) { "find_empty_3.2.16": "FIND coll", "find_empty_3.4.7": "FIND coll", "find_empty_3.5.11": "FIND coll", - "find_2.6.12": "FIND coll a", - "find_3.0.15": "FIND coll a", - "find_3.2.16": "FIND coll a", - "find_3.4.7": "FIND coll a", - "find_3.5.11": "FIND coll a", + "find_2.6.12": "FIND coll k", + "find_3.0.15": "FIND coll k", + "find_3.2.16": "FIND coll k", + "find_3.4.7": "FIND coll k", + "find_3.5.11": "FIND coll k", "find_andrii_2.6.12": "FIND coll c,k,pad", "find_andrii_3.0.15": "FIND coll c,k,pad", "find_andrii_3.2.16": "FIND coll c,k,pad", "find_andrii_3.4.7": "FIND coll c,k,pad", "find_andrii_3.5.11": "FIND coll c,k,pad", + "find_with_sort_2.6.12": "FIND coll b,c", + "find_with_sort_3.0.15": "FIND coll b,c", + "find_with_sort_3.2.16": "FIND coll b,c", + "find_with_sort_3.4.7": "FIND coll b,c", + "find_with_sort_3.5.11": "FIND coll b,c", "findandmodify_2.6.12": "FINDANDMODIFY coll a", "findandmodify_3.0.15": "FINDANDMODIFY coll a", "findandmodify_3.2.16": "FINDANDMODIFY coll a", @@ -148,6 +154,11 @@ func TestFingerprints(t *testing.T) { "geonear_3.2.16": "GEONEAR coll", "geonear_3.4.7": "GEONEAR coll", "geonear_3.5.11": "GEONEAR coll", + "getmore_2.6.12": "GETMORE coll", + "getmore_3.0.15": "GETMORE coll", + "getmore_3.2.16": "GETMORE coll", + "getmore_3.4.7": "GETMORE coll", + "getmore_3.5.11": "GETMORE coll", "group_2.6.12": "GROUP coll a,b", "group_3.0.15": "GROUP coll a,b", "group_3.2.16": "GROUP coll a,b", diff --git a/src/go/mongolib/proto/system.profile.go b/src/go/mongolib/proto/system.profile.go index 73a1426d..6b2784ac 100644 --- a/src/go/mongolib/proto/system.profile.go +++ b/src/go/mongolib/proto/system.profile.go @@ -73,38 +73,41 @@ type SystemProfile struct { } `bson:"acquireCount"` } `bson:"MMAPV1Journal"` } `bson:"locks"` - Millis int `bson:"millis"` - Nreturned int `bson:"nreturned"` - Ns string `bson:"ns"` - NumYield int `bson:"numYield"` - Op string `bson:"op"` - Protocol string `bson:"protocol"` - Query BsonD `bson:"query"` - UpdateObj BsonD `bson:"updateobj"` - Command BsonD `bson:"command"` - ResponseLength int `bson:"responseLength"` - Ts time.Time `bson:"ts"` - User string `bson:"user"` - WriteConflicts int `bson:"writeConflicts"` + Millis int `bson:"millis"` + Nreturned int `bson:"nreturned"` + Ns string `bson:"ns"` + NumYield int `bson:"numYield"` + Op string `bson:"op"` + Protocol string `bson:"protocol"` + Query BsonD `bson:"query"` + UpdateObj BsonD `bson:"updateobj"` + Command BsonD `bson:"command"` + OriginatingCommand BsonD `bson:"originatingCommand"` + ResponseLength int `bson:"responseLength"` + Ts time.Time `bson:"ts"` + User string `bson:"user"` + WriteConflicts int `bson:"writeConflicts"` } func NewExampleQuery(doc SystemProfile) ExampleQuery { return ExampleQuery{ - Ns: doc.Ns, - Op: doc.Op, - Query: doc.Query, - Command: doc.Command, - UpdateObj: doc.UpdateObj, + Ns: doc.Ns, + Op: doc.Op, + Query: doc.Query, + Command: doc.Command, + OriginatingCommand: doc.OriginatingCommand, + UpdateObj: doc.UpdateObj, } } // ExampleQuery is a subset of SystemProfile type ExampleQuery struct { - Ns string `bson:"ns" json:"ns"` - Op string `bson:"op" json:"op"` - Query BsonD `bson:"query,omitempty" json:"query,omitempty"` - Command BsonD `bson:"command,omitempty" json:"command,omitempty"` - UpdateObj BsonD `bson:"updateobj,omitempty" json:"updateobj,omitempty"` + Ns string `bson:"ns" json:"ns"` + Op string `bson:"op" json:"op"` + Query BsonD `bson:"query,omitempty" json:"query,omitempty"` + Command BsonD `bson:"command,omitempty" json:"command,omitempty"` + OriginatingCommand BsonD `bson:"originatingCommand,omitempty" json:"originatingCommand,omitempty"` + UpdateObj BsonD `bson:"updateobj,omitempty" json:"updateobj,omitempty"` } func (self ExampleQuery) Db() string { @@ -218,6 +221,14 @@ func (self ExampleQuery) ExplainCmd() bson.D { {"insert", coll}, } } + case "getmore": + if self.OriginatingCommand.Len() > 0 { + cmd = self.OriginatingCommand + } else { + cmd = BsonD{ + {Name: "getMore", Value: ""}, + } + } case "command": if cmd.Len() == 0 || cmd[0].Name != "group" { break diff --git a/src/go/mongolib/util/util.go b/src/go/mongolib/util/util.go index dd30ec8b..e8ad249d 100644 --- a/src/go/mongolib/util/util.go +++ b/src/go/mongolib/util/util.go @@ -273,40 +273,6 @@ func GetQueryField(doc proto.SystemProfile) (bson.M, error) { // "query" : { // "query" : { // "$and" : [ - // { - // "k" : { - // "$gt" : 1 - // } - // }, - // { - // "k" : { - // "$lt" : 2 - // } - // }, - // { - // "$or" : [ - // { - // "c" : { - // "$in" : [ - // /^0/, - // /^2/, - // /^4/, - // /^6/ - // ] - // } - // }, - // { - // "pad" : { - // "$in" : [ - // /9$/, - // /7$/, - // /5$/, - // /3$/ - // ] - // } - // } - // ] - // } // ] // }, // "orderby" : { diff --git a/src/go/pt-mongodb-query-digest/main.go b/src/go/pt-mongodb-query-digest/main.go index 625a640e..4eefd044 100644 --- a/src/go/pt-mongodb-query-digest/main.go +++ b/src/go/pt-mongodb-query-digest/main.go @@ -136,8 +136,7 @@ func main() { filters = append(filters, filter.NewFilterByCollection(opts.SkipCollections)) } - query := bson.M{"op": bson.M{"$nin": []string{"getmore"}}} - i := session.DB(di.Database).C("system.profile").Find(query).Sort("-$natural").Iter() + i := session.DB(di.Database).C("system.profile").Find(bson.M{}).Sort("-$natural").Iter() fp := fingerprinter.NewFingerprinter(fingerprinter.DEFAULT_KEY_FILTERS) s := stats.New(fp) diff --git a/src/go/pt-mongodb-query-digest/main_test.go b/src/go/pt-mongodb-query-digest/main_test.go index 474c4bce..a2f76f39 100644 --- a/src/go/pt-mongodb-query-digest/main_test.go +++ b/src/go/pt-mongodb-query-digest/main_test.go @@ -12,6 +12,7 @@ import ( "reflect" "regexp" "runtime" + "sort" "strings" "testing" "text/template" @@ -263,6 +264,7 @@ func testAllOperationsTemplate(t *testing.T, data Data) { for _, file := range files { fs = append(fs, dir+file.Name()) } + sort.Strings(fs) err = run(fs...) if err != nil { t.Fatalf("cannot execute queries: %s", err) @@ -295,6 +297,12 @@ func testAllOperationsTemplate(t *testing.T, data Data) { Operation: "DROP", Fingerprint: "DROP coll drop", }, + { + ID: "db759bfd83441deecc71382323041ce6", + Namespace: "test.coll", + Operation: "GETMORE", + Fingerprint: "GETMORE coll", + }, { ID: "e72ad41302045bd6c2bcad76511f915a", Namespace: "test.coll", @@ -307,12 +315,6 @@ func testAllOperationsTemplate(t *testing.T, data Data) { Operation: "AGGREGATE", Fingerprint: "AGGREGATE coll a", }, - { - ID: "e4122a58c99ab0a4020ce7d195c5a8cb", - Namespace: "test.coll", - Operation: "DISTINCT", - Fingerprint: "DISTINCT coll a,b", - }, { ID: "a6782ae38ef891d5506341a4b0ab2747", Namespace: "test", @@ -331,6 +333,36 @@ func testAllOperationsTemplate(t *testing.T, data Data) { Operation: "FINDANDMODIFY", Fingerprint: "FINDANDMODIFY coll a", }, + { + ID: "2a639e77efe3e68399ef9482575b3421", + Namespace: "test.coll", + Operation: "FIND", + Fingerprint: "FIND coll", + }, + { + ID: "fe0bf975a044fe47fd32b835ceba612d", + Namespace: "test.coll", + Operation: "FIND", + Fingerprint: "FIND coll a", + }, + { + ID: "20fe80188ec82c9d3c3dcf3f4817f8f9", + Namespace: "test.coll", + Operation: "FIND", + Fingerprint: "FIND coll b,c", + }, + { + ID: "02104210d67fe680273784d833f86831", + Namespace: "test.coll", + Operation: "FIND", + Fingerprint: "FIND coll c,k,pad", + }, + { + ID: "5efe4738d807c74b3980de76c37a0870", + Namespace: "test.coll", + Operation: "FIND", + Fingerprint: "FIND coll k", + }, { ID: "798d7c1cd25b63cb6a307126a25910d6", Namespace: "test.system.js", @@ -343,6 +375,12 @@ func testAllOperationsTemplate(t *testing.T, data Data) { Operation: "GEONEAR", Fingerprint: "GEONEAR coll", }, + { + ID: "e4122a58c99ab0a4020ce7d195c5a8cb", + Namespace: "test.coll", + Operation: "DISTINCT", + Fingerprint: "DISTINCT coll a,b", + }, { ID: "ca8bb19386488570447f5753741fb494", Namespace: "test.coll", @@ -375,7 +413,8 @@ func testAllOperationsTemplate(t *testing.T, data Data) { }, } - expected := `Profiler is disabled for the "test" database but there are 125 documents in the system.profile collection. + ndocs := "165" + expected := `Profiler is disabled for the "test" database but there are ` + ndocs + ` documents in the system.profile collection. Using those documents for the stats pt-mongodb-query-digest .+ Host: ` + data.url + ` @@ -386,7 +425,7 @@ Skipping profiled queries on these collections: \[system\.profile\] # Ratio [0-9\.]+ \(docs scanned/returned\) # Attribute pct total min max avg 95% stddev median # ================== === ======== ======== ======== ======== ======== ======= ======== -# Count \(docs\) 125\s +# Count \(docs\) ` + ndocs + `\s # Exec Time ms (\s*[0-9]+){8}\s # Docs Scanned (\s*[0-9\.]+){8}\s # Docs Returned (\s*[0-9\.]+){8}\s diff --git a/src/go/tests/doc/out/aggregate_2.6.12 b/src/go/tests/doc/out/aggregate_2.6.12 index ba3b921b..037b4edf 100644 --- a/src/go/tests/doc/out/aggregate_2.6.12 +++ b/src/go/tests/doc/out/aggregate_2.6.12 @@ -20,12 +20,12 @@ "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(154), + "r" : NumberLong(222), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(4), - "w" : NumberLong(2) + "r" : NumberLong(15), + "w" : NumberLong(6) } }, "responseLength" : 385, @@ -33,7 +33,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:14.658Z"), + "ts" : ISODate("2017-10-15T01:54:08.661Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/aggregate_3.0.15 b/src/go/tests/doc/out/aggregate_3.0.15 index 619ff376..62ad4332 100644 --- a/src/go/tests/doc/out/aggregate_3.0.15 +++ b/src/go/tests/doc/out/aggregate_3.0.15 @@ -42,11 +42,11 @@ } }, "responseLength" : 385, - "millis" : 2, + "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:20.858Z"), + "ts" : ISODate("2017-10-15T01:54:18.509Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/aggregate_3.2.16 b/src/go/tests/doc/out/aggregate_3.2.16 index 49b5ccb7..adf0950b 100644 --- a/src/go/tests/doc/out/aggregate_3.2.16 +++ b/src/go/tests/doc/out/aggregate_3.2.16 @@ -38,11 +38,11 @@ }, "responseLength" : 388, "protocol" : "op_command", - "millis" : 2, + "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:29.915Z"), + "ts" : ISODate("2017-10-15T01:54:31.293Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/aggregate_3.4.7 b/src/go/tests/doc/out/aggregate_3.4.7 index 7464feb8..ce833012 100644 --- a/src/go/tests/doc/out/aggregate_3.4.7 +++ b/src/go/tests/doc/out/aggregate_3.4.7 @@ -42,7 +42,7 @@ "protocol" : "op_command", "millis" : 0, "planSummary" : "IXSCAN { a: 1 }", - "ts" : ISODate("2017-08-20T15:39:36.711Z"), + "ts" : ISODate("2017-10-15T01:54:41.948Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/aggregate_3.5.11 b/src/go/tests/doc/out/aggregate_3.5.11 index a039c308..64b0f1ae 100644 --- a/src/go/tests/doc/out/aggregate_3.5.11 +++ b/src/go/tests/doc/out/aggregate_3.5.11 @@ -43,7 +43,7 @@ "protocol" : "op_msg", "millis" : 2, "planSummary" : "IXSCAN { a: 1 }", - "ts" : ISODate("2017-08-20T15:39:47.203Z"), + "ts" : ISODate("2017-10-15T01:54:52.564Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/count_2.6.12 b/src/go/tests/doc/out/count_2.6.12 index b073b918..093b388e 100644 --- a/src/go/tests/doc/out/count_2.6.12 +++ b/src/go/tests/doc/out/count_2.6.12 @@ -14,12 +14,12 @@ "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(12), + "r" : NumberLong(33), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(2), - "w" : NumberLong(2) + "r" : NumberLong(3), + "w" : NumberLong(5) } }, "responseLength" : 48, @@ -27,7 +27,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:14.823Z"), + "ts" : ISODate("2017-10-15T01:54:08.889Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/count_3.0.15 b/src/go/tests/doc/out/count_3.0.15 index 2d7a5c5c..1513d50e 100644 --- a/src/go/tests/doc/out/count_3.0.15 +++ b/src/go/tests/doc/out/count_3.0.15 @@ -40,7 +40,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:20.982Z"), + "ts" : ISODate("2017-10-15T01:54:18.673Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/count_3.2.16 b/src/go/tests/doc/out/count_3.2.16 index 975cd10c..101c99e2 100644 --- a/src/go/tests/doc/out/count_3.2.16 +++ b/src/go/tests/doc/out/count_3.2.16 @@ -36,7 +36,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:30.094Z"), + "ts" : ISODate("2017-10-15T01:54:31.529Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/count_3.4.7 b/src/go/tests/doc/out/count_3.4.7 index 1309138a..24567915 100644 --- a/src/go/tests/doc/out/count_3.4.7 +++ b/src/go/tests/doc/out/count_3.4.7 @@ -46,10 +46,10 @@ "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "nCounted" : 20, + "nCounted" : 10, "nSkipped" : 0 }, - "ts" : ISODate("2017-08-20T15:39:36.897Z"), + "ts" : ISODate("2017-10-15T01:54:42.157Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/count_3.5.11 b/src/go/tests/doc/out/count_3.5.11 index 61458ff1..6ea4499b 100644 --- a/src/go/tests/doc/out/count_3.5.11 +++ b/src/go/tests/doc/out/count_3.5.11 @@ -47,10 +47,10 @@ "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "nCounted" : 20, + "nCounted" : 10, "nSkipped" : 0 }, - "ts" : ISODate("2017-08-20T15:39:47.396Z"), + "ts" : ISODate("2017-10-15T01:54:52.844Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/count_with_query_2.6.12 b/src/go/tests/doc/out/count_with_query_2.6.12 index d20bab68..94f74603 100644 --- a/src/go/tests/doc/out/count_with_query_2.6.12 +++ b/src/go/tests/doc/out/count_with_query_2.6.12 @@ -16,12 +16,12 @@ "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(131), + "r" : NumberLong(75), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(3), - "w" : NumberLong(4) + "r" : NumberLong(6), + "w" : NumberLong(6) } }, "responseLength" : 48, @@ -29,7 +29,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:14.971Z"), + "ts" : ISODate("2017-10-15T01:54:09.039Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/count_with_query_3.0.15 b/src/go/tests/doc/out/count_with_query_3.0.15 index fe86634a..9f4d4cc1 100644 --- a/src/go/tests/doc/out/count_with_query_3.0.15 +++ b/src/go/tests/doc/out/count_with_query_3.0.15 @@ -42,7 +42,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:21.124Z"), + "ts" : ISODate("2017-10-15T01:54:18.838Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/count_with_query_3.2.16 b/src/go/tests/doc/out/count_with_query_3.2.16 index 852e8afe..4c71ff19 100644 --- a/src/go/tests/doc/out/count_with_query_3.2.16 +++ b/src/go/tests/doc/out/count_with_query_3.2.16 @@ -38,7 +38,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:30.251Z"), + "ts" : ISODate("2017-10-15T01:54:31.756Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/count_with_query_3.4.7 b/src/go/tests/doc/out/count_with_query_3.4.7 index 5bdc59ff..076352b6 100644 --- a/src/go/tests/doc/out/count_with_query_3.4.7 +++ b/src/go/tests/doc/out/count_with_query_3.4.7 @@ -12,8 +12,8 @@ } }, - "keysExamined" : 13, - "docsExamined" : 0, + "keysExamined" : 0, + "docsExamined" : 10, "numYield" : 0, "locks" : { "Global" : { @@ -35,59 +35,43 @@ "responseLength" : 29, "protocol" : "op_command", "millis" : 0, - "planSummary" : "COUNT_SCAN { a: 1 }", + "planSummary" : "COLLSCAN", "execStats" : { "stage" : "COUNT", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 13, + "works" : 12, "advanced" : 0, - "needTime" : 12, + "needTime" : 11, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "nCounted" : 12, + "nCounted" : 4, "nSkipped" : 0, "inputStage" : { - "stage" : "COUNT_SCAN", - "nReturned" : 12, + "stage" : "COLLSCAN", + "filter" : { + "a" : { + "$gt" : 5 + } + }, + "nReturned" : 4, "executionTimeMillisEstimate" : 0, - "works" : 13, - "advanced" : 12, - "needTime" : 0, + "works" : 12, + "advanced" : 4, + "needTime" : 7, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "keysExamined" : 13, - "keyPattern" : { - "a" : 1 - }, - "indexName" : "a_1", - "isMultiKey" : false, - "multiKeyPaths" : { - "a" : [ ] - }, - "isUnique" : false, - "isSparse" : false, - "isPartial" : false, - "indexVersion" : 2, - "indexBounds" : { - "startKey" : { - "a" : 5 - }, - "startKeyInclusive" : false, - "endKey" : { - "a" : Infinity - }, - "endKeyInclusive" : true - } + "direction" : "forward", + "docsExamined" : 10 } }, - "ts" : ISODate("2017-08-20T15:39:37.077Z"), + "ts" : ISODate("2017-10-15T01:54:42.350Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/count_with_query_3.5.11 b/src/go/tests/doc/out/count_with_query_3.5.11 index e7c3d455..f7f27b5e 100644 --- a/src/go/tests/doc/out/count_with_query_3.5.11 +++ b/src/go/tests/doc/out/count_with_query_3.5.11 @@ -13,8 +13,8 @@ }, "$db" : "test" }, - "keysExamined" : 13, - "docsExamined" : 0, + "keysExamined" : 0, + "docsExamined" : 10, "numYield" : 0, "locks" : { "Global" : { @@ -36,59 +36,43 @@ "responseLength" : 29, "protocol" : "op_msg", "millis" : 0, - "planSummary" : "COUNT_SCAN { a: 1 }", + "planSummary" : "COLLSCAN", "execStats" : { "stage" : "COUNT", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 13, + "works" : 12, "advanced" : 0, - "needTime" : 12, + "needTime" : 11, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "nCounted" : 12, + "nCounted" : 4, "nSkipped" : 0, "inputStage" : { - "stage" : "COUNT_SCAN", - "nReturned" : 12, + "stage" : "COLLSCAN", + "filter" : { + "a" : { + "$gt" : 5 + } + }, + "nReturned" : 4, "executionTimeMillisEstimate" : 0, - "works" : 13, - "advanced" : 12, - "needTime" : 0, + "works" : 12, + "advanced" : 4, + "needTime" : 7, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "keysExamined" : 13, - "keyPattern" : { - "a" : 1 - }, - "indexName" : "a_1", - "isMultiKey" : false, - "multiKeyPaths" : { - "a" : [ ] - }, - "isUnique" : false, - "isSparse" : false, - "isPartial" : false, - "indexVersion" : 2, - "indexBounds" : { - "startKey" : { - "a" : 5 - }, - "startKeyInclusive" : false, - "endKey" : { - "a" : Infinity - }, - "endKeyInclusive" : true - } + "direction" : "forward", + "docsExamined" : 10 } }, - "ts" : ISODate("2017-08-20T15:39:47.573Z"), + "ts" : ISODate("2017-10-15T01:54:53.078Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/delete_2.6.12 b/src/go/tests/doc/out/delete_2.6.12 index 8546bd8c..223c26bd 100644 --- a/src/go/tests/doc/out/delete_2.6.12 +++ b/src/go/tests/doc/out/delete_2.6.12 @@ -15,18 +15,18 @@ "lockStats" : { "timeLockedMicros" : { "r" : NumberLong(0), - "w" : NumberLong(182) + "w" : NumberLong(144) }, "timeAcquiringMicros" : { "r" : NumberLong(0), - "w" : NumberLong(4) + "w" : NumberLong(11) } }, "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:15.126Z"), + "ts" : ISODate("2017-10-15T01:54:09.246Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/delete_3.0.15 b/src/go/tests/doc/out/delete_3.0.15 index f9c6426a..dc0b6b9b 100644 --- a/src/go/tests/doc/out/delete_3.0.15 +++ b/src/go/tests/doc/out/delete_3.0.15 @@ -40,7 +40,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:21.265Z"), + "ts" : ISODate("2017-10-15T01:54:19.034Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/delete_3.2.16 b/src/go/tests/doc/out/delete_3.2.16 index a04ce599..130dea8a 100644 --- a/src/go/tests/doc/out/delete_3.2.16 +++ b/src/go/tests/doc/out/delete_3.2.16 @@ -35,7 +35,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:30.543Z"), + "ts" : ISODate("2017-10-15T01:54:32.020Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/delete_3.4.7 b/src/go/tests/doc/out/delete_3.4.7 index 9a253d6e..33b766bd 100644 --- a/src/go/tests/doc/out/delete_3.4.7 +++ b/src/go/tests/doc/out/delete_3.4.7 @@ -9,8 +9,8 @@ "$gte" : 2 } }, - "keysExamined" : 4, - "docsExamined" : 4, + "keysExamined" : 1, + "docsExamined" : 1, "ndeleted" : 1, "keysDeleted" : 2, "numYield" : 0, @@ -38,9 +38,9 @@ "stage" : "DELETE", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 5, + "works" : 2, "advanced" : 0, - "needTime" : 4, + "needTime" : 1, "needYield" : 0, "saveState" : 0, "restoreState" : 0, @@ -57,22 +57,22 @@ }, "nReturned" : 1, "executionTimeMillisEstimate" : 0, - "works" : 4, + "works" : 1, "advanced" : 1, - "needTime" : 3, + "needTime" : 0, "needYield" : 0, "saveState" : 1, "restoreState" : 1, "isEOF" : 0, "invalidates" : 0, - "docsExamined" : 4, + "docsExamined" : 1, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 4, + "nReturned" : 1, "executionTimeMillisEstimate" : 0, - "works" : 4, - "advanced" : 4, + "works" : 1, + "advanced" : 1, "needTime" : 0, "needYield" : 0, "saveState" : 1, @@ -97,7 +97,7 @@ "[2.0, inf.0]" ] }, - "keysExamined" : 4, + "keysExamined" : 1, "seeks" : 1, "dupsTested" : 0, "dupsDropped" : 0, @@ -105,7 +105,7 @@ } } }, - "ts" : ISODate("2017-08-20T15:39:37.279Z"), + "ts" : ISODate("2017-10-15T01:54:42.612Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/delete_3.5.11 b/src/go/tests/doc/out/delete_3.5.11 index 6c09b73d..d8d3e438 100644 --- a/src/go/tests/doc/out/delete_3.5.11 +++ b/src/go/tests/doc/out/delete_3.5.11 @@ -12,8 +12,8 @@ }, "limit" : 1 }, - "keysExamined" : 4, - "docsExamined" : 4, + "keysExamined" : 1, + "docsExamined" : 1, "ndeleted" : 1, "keysDeleted" : 2, "numYield" : 0, @@ -35,15 +35,15 @@ } } }, - "millis" : 0, + "millis" : 1, "planSummary" : "IXSCAN { a: 1 }", "execStats" : { "stage" : "DELETE", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 5, + "works" : 2, "advanced" : 0, - "needTime" : 4, + "needTime" : 1, "needYield" : 0, "saveState" : 0, "restoreState" : 0, @@ -60,22 +60,22 @@ }, "nReturned" : 1, "executionTimeMillisEstimate" : 0, - "works" : 4, + "works" : 1, "advanced" : 1, - "needTime" : 3, + "needTime" : 0, "needYield" : 0, "saveState" : 1, "restoreState" : 1, "isEOF" : 0, "invalidates" : 0, - "docsExamined" : 4, + "docsExamined" : 1, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 4, + "nReturned" : 1, "executionTimeMillisEstimate" : 0, - "works" : 4, - "advanced" : 4, + "works" : 1, + "advanced" : 1, "needTime" : 0, "needYield" : 0, "saveState" : 1, @@ -100,7 +100,7 @@ "[2.0, inf.0]" ] }, - "keysExamined" : 4, + "keysExamined" : 1, "seeks" : 1, "dupsTested" : 0, "dupsDropped" : 0, @@ -108,7 +108,7 @@ } } }, - "ts" : ISODate("2017-08-20T15:39:47.745Z"), + "ts" : ISODate("2017-10-15T01:54:53.333Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/delete_all_2.6.12 b/src/go/tests/doc/out/delete_all_2.6.12 index 66995bb7..2b78e86a 100644 --- a/src/go/tests/doc/out/delete_all_2.6.12 +++ b/src/go/tests/doc/out/delete_all_2.6.12 @@ -9,24 +9,24 @@ "$gte" : 2 } }, - "ndeleted" : 15, + "ndeleted" : 8, "keyUpdates" : 0, "numYield" : 0, "lockStats" : { "timeLockedMicros" : { "r" : NumberLong(0), - "w" : NumberLong(238) + "w" : NumberLong(396) }, "timeAcquiringMicros" : { "r" : NumberLong(0), - "w" : NumberLong(4) + "w" : NumberLong(12) } }, "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-30T10:54:45.348Z"), + "ts" : ISODate("2017-10-15T01:54:09.463Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/delete_all_3.0.15 b/src/go/tests/doc/out/delete_all_3.0.15 index 78f5d10b..37e00f6e 100644 --- a/src/go/tests/doc/out/delete_all_3.0.15 +++ b/src/go/tests/doc/out/delete_all_3.0.15 @@ -9,7 +9,7 @@ "$gte" : 2 } }, - "ndeleted" : 15, + "ndeleted" : 8, "keyUpdates" : 0, "writeConflicts" : 0, "numYield" : 0, @@ -22,7 +22,7 @@ }, "MMAPV1Journal" : { "acquireCount" : { - "w" : NumberLong(16) + "w" : NumberLong(9) } }, "Database" : { @@ -36,11 +36,11 @@ } } }, - "millis" : 1, + "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-30T10:54:52.821Z"), + "ts" : ISODate("2017-10-15T01:54:19.206Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/delete_all_3.2.16 b/src/go/tests/doc/out/delete_all_3.2.16 index 338c92c9..05b1c027 100644 --- a/src/go/tests/doc/out/delete_all_3.2.16 +++ b/src/go/tests/doc/out/delete_all_3.2.16 @@ -9,7 +9,7 @@ "$gte" : 2 } }, - "ndeleted" : 15, + "ndeleted" : 8, "keyUpdates" : 0, "writeConflicts" : 0, "numYield" : 0, @@ -31,11 +31,11 @@ } } }, - "millis" : 0, + "millis" : 1, "execStats" : { }, - "ts" : ISODate("2017-08-30T10:55:02.238Z"), + "ts" : ISODate("2017-10-15T01:54:32.281Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/delete_all_3.4.7 b/src/go/tests/doc/out/delete_all_3.4.7 index 741b0c30..c9ef76b0 100644 --- a/src/go/tests/doc/out/delete_all_3.4.7 +++ b/src/go/tests/doc/out/delete_all_3.4.7 @@ -9,10 +9,10 @@ "$gte" : 2 } }, - "keysExamined" : 39, - "docsExamined" : 39, - "ndeleted" : 15, - "keysDeleted" : 30, + "keysExamined" : 8, + "docsExamined" : 8, + "ndeleted" : 8, + "keysDeleted" : 16, "numYield" : 0, "locks" : { "Global" : { @@ -32,21 +32,21 @@ } } }, - "millis" : 0, + "millis" : 1, "planSummary" : "IXSCAN { a: 1 }", "execStats" : { "stage" : "DELETE", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 40, + "works" : 9, "advanced" : 0, - "needTime" : 39, + "needTime" : 8, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "nWouldDelete" : 15, + "nWouldDelete" : 8, "nInvalidateSkips" : 0, "inputStage" : { "stage" : "FETCH", @@ -55,28 +55,28 @@ "$gte" : 2 } }, - "nReturned" : 15, + "nReturned" : 8, "executionTimeMillisEstimate" : 0, - "works" : 40, - "advanced" : 15, - "needTime" : 24, + "works" : 9, + "advanced" : 8, + "needTime" : 0, "needYield" : 0, - "saveState" : 15, - "restoreState" : 15, + "saveState" : 8, + "restoreState" : 8, "isEOF" : 1, "invalidates" : 0, - "docsExamined" : 39, + "docsExamined" : 8, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 39, + "nReturned" : 8, "executionTimeMillisEstimate" : 0, - "works" : 40, - "advanced" : 39, + "works" : 9, + "advanced" : 8, "needTime" : 0, "needYield" : 0, - "saveState" : 15, - "restoreState" : 15, + "saveState" : 8, + "restoreState" : 8, "isEOF" : 1, "invalidates" : 0, "keyPattern" : { @@ -97,7 +97,7 @@ "[2.0, inf.0]" ] }, - "keysExamined" : 39, + "keysExamined" : 8, "seeks" : 1, "dupsTested" : 0, "dupsDropped" : 0, @@ -105,7 +105,7 @@ } } }, - "ts" : ISODate("2017-08-30T10:55:09.833Z"), + "ts" : ISODate("2017-10-15T01:54:42.820Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/delete_all_3.5.11 b/src/go/tests/doc/out/delete_all_3.5.11 index 2435a88a..21b31346 100644 --- a/src/go/tests/doc/out/delete_all_3.5.11 +++ b/src/go/tests/doc/out/delete_all_3.5.11 @@ -12,10 +12,10 @@ }, "limit" : 0 }, - "keysExamined" : 39, - "docsExamined" : 39, - "ndeleted" : 15, - "keysDeleted" : 30, + "keysExamined" : 8, + "docsExamined" : 8, + "ndeleted" : 8, + "keysDeleted" : 16, "numYield" : 0, "locks" : { "Global" : { @@ -35,21 +35,21 @@ } } }, - "millis" : 0, + "millis" : 1, "planSummary" : "IXSCAN { a: 1 }", "execStats" : { "stage" : "DELETE", "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 40, + "executionTimeMillisEstimate" : 10, + "works" : 9, "advanced" : 0, - "needTime" : 39, + "needTime" : 8, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "nWouldDelete" : 15, + "nWouldDelete" : 8, "nInvalidateSkips" : 0, "inputStage" : { "stage" : "FETCH", @@ -58,28 +58,28 @@ "$gte" : 2 } }, - "nReturned" : 15, + "nReturned" : 8, "executionTimeMillisEstimate" : 0, - "works" : 40, - "advanced" : 15, - "needTime" : 24, + "works" : 9, + "advanced" : 8, + "needTime" : 0, "needYield" : 0, - "saveState" : 15, - "restoreState" : 15, + "saveState" : 8, + "restoreState" : 8, "isEOF" : 1, "invalidates" : 0, - "docsExamined" : 39, + "docsExamined" : 8, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 39, + "nReturned" : 8, "executionTimeMillisEstimate" : 0, - "works" : 40, - "advanced" : 39, + "works" : 9, + "advanced" : 8, "needTime" : 0, "needYield" : 0, - "saveState" : 15, - "restoreState" : 15, + "saveState" : 8, + "restoreState" : 8, "isEOF" : 1, "invalidates" : 0, "keyPattern" : { @@ -100,7 +100,7 @@ "[2.0, inf.0]" ] }, - "keysExamined" : 39, + "keysExamined" : 8, "seeks" : 1, "dupsTested" : 0, "dupsDropped" : 0, @@ -108,7 +108,7 @@ } } }, - "ts" : ISODate("2017-08-30T10:55:19.142Z"), + "ts" : ISODate("2017-10-15T01:54:53.615Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/distinct_2.6.12 b/src/go/tests/doc/out/distinct_2.6.12 index e7df47a7..35e9c086 100644 --- a/src/go/tests/doc/out/distinct_2.6.12 +++ b/src/go/tests/doc/out/distinct_2.6.12 @@ -14,20 +14,20 @@ "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(250), + "r" : NumberLong(362), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(2), - "w" : NumberLong(3) + "r" : NumberLong(6), + "w" : NumberLong(9341) } }, - "responseLength" : 254, + "responseLength" : 199, "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:15.323Z"), + "ts" : ISODate("2017-10-15T01:54:09.687Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/distinct_3.0.15 b/src/go/tests/doc/out/distinct_3.0.15 index 955ab924..21bf1c7d 100644 --- a/src/go/tests/doc/out/distinct_3.0.15 +++ b/src/go/tests/doc/out/distinct_3.0.15 @@ -35,12 +35,12 @@ } } }, - "responseLength" : 261, + "responseLength" : 206, "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:21.392Z"), + "ts" : ISODate("2017-10-15T01:54:19.380Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/distinct_3.2.16 b/src/go/tests/doc/out/distinct_3.2.16 index 474627cf..4a702cc4 100644 --- a/src/go/tests/doc/out/distinct_3.2.16 +++ b/src/go/tests/doc/out/distinct_3.2.16 @@ -30,13 +30,13 @@ } } }, - "responseLength" : 264, + "responseLength" : 209, "protocol" : "op_command", "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:30.748Z"), + "ts" : ISODate("2017-10-15T01:54:32.523Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/distinct_3.4.7 b/src/go/tests/doc/out/distinct_3.4.7 index 6de98b90..0ced8f0a 100644 --- a/src/go/tests/doc/out/distinct_3.4.7 +++ b/src/go/tests/doc/out/distinct_3.4.7 @@ -10,8 +10,8 @@ } } }, - "keysExamined" : 10, - "docsExamined" : 10, + "keysExamined" : 5, + "docsExamined" : 5, "numYield" : 0, "locks" : { "Global" : { @@ -30,30 +30,30 @@ } } }, - "responseLength" : 145, + "responseLength" : 90, "protocol" : "op_command", "millis" : 0, "planSummary" : "IXSCAN { b: 1 }", "execStats" : { "stage" : "FETCH", - "nReturned" : 10, + "nReturned" : 5, "executionTimeMillisEstimate" : 0, - "works" : 11, - "advanced" : 10, + "works" : 6, + "advanced" : 5, "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "docsExamined" : 10, + "docsExamined" : 5, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 10, + "nReturned" : 5, "executionTimeMillisEstimate" : 0, - "works" : 11, - "advanced" : 10, + "works" : 6, + "advanced" : 5, "needTime" : 0, "needYield" : 0, "saveState" : 0, @@ -78,14 +78,14 @@ "[5.0, inf.0]" ] }, - "keysExamined" : 10, + "keysExamined" : 5, "seeks" : 1, "dupsTested" : 0, "dupsDropped" : 0, "seenInvalidated" : 0 } }, - "ts" : ISODate("2017-08-20T15:39:37.511Z"), + "ts" : ISODate("2017-10-15T01:54:43.048Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/distinct_3.5.11 b/src/go/tests/doc/out/distinct_3.5.11 index a6144b56..69c8442e 100644 --- a/src/go/tests/doc/out/distinct_3.5.11 +++ b/src/go/tests/doc/out/distinct_3.5.11 @@ -11,8 +11,8 @@ }, "$db" : "test" }, - "keysExamined" : 10, - "docsExamined" : 10, + "keysExamined" : 5, + "docsExamined" : 5, "numYield" : 0, "locks" : { "Global" : { @@ -31,30 +31,30 @@ } } }, - "responseLength" : 145, + "responseLength" : 90, "protocol" : "op_msg", "millis" : 0, "planSummary" : "IXSCAN { b: 1 }", "execStats" : { "stage" : "FETCH", - "nReturned" : 10, + "nReturned" : 5, "executionTimeMillisEstimate" : 0, - "works" : 11, - "advanced" : 10, + "works" : 6, + "advanced" : 5, "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "docsExamined" : 10, + "docsExamined" : 5, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 10, + "nReturned" : 5, "executionTimeMillisEstimate" : 0, - "works" : 11, - "advanced" : 10, + "works" : 6, + "advanced" : 5, "needTime" : 0, "needYield" : 0, "saveState" : 0, @@ -79,14 +79,14 @@ "[5.0, inf.0]" ] }, - "keysExamined" : 10, + "keysExamined" : 5, "seeks" : 1, "dupsTested" : 0, "dupsDropped" : 0, "seenInvalidated" : 0 } }, - "ts" : ISODate("2017-08-20T15:39:47.927Z"), + "ts" : ISODate("2017-10-15T01:54:53.874Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/eval_2.6.12 b/src/go/tests/doc/out/eval_2.6.12 index 132d8f0c..d8ba0b6f 100644 --- a/src/go/tests/doc/out/eval_2.6.12 +++ b/src/go/tests/doc/out/eval_2.6.12 @@ -2,28 +2,28 @@ "op" : "command", "ns" : "test.$cmd", "command" : { - "$eval" : "db" + "$eval" : "1" }, "keyUpdates" : 0, "numYield" : 0, "lockStats" : { "timeLockedMicros" : { "R" : NumberLong(0), - "W" : NumberLong(64994) + "W" : NumberLong(42972) }, "timeAcquiringMicros" : { "R" : NumberLong(0), - "W" : NumberLong(5), + "W" : NumberLong(8), "r" : NumberLong(0), - "w" : NumberLong(7) + "w" : NumberLong(6) } }, - "responseLength" : 108, - "millis" : 65, + "responseLength" : 53, + "millis" : 43, "execStats" : { }, - "ts" : ISODate("2017-09-05T19:39:24.522Z"), + "ts" : ISODate("2017-10-15T01:54:09.890Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/eval_3.0.15 b/src/go/tests/doc/out/eval_3.0.15 index ebfc7ce9..f82cb588 100644 --- a/src/go/tests/doc/out/eval_3.0.15 +++ b/src/go/tests/doc/out/eval_3.0.15 @@ -2,7 +2,7 @@ "op" : "command", "ns" : "test.$cmd", "command" : { - "$eval" : "db" + "$eval" : "1" }, "keyUpdates" : 0, "writeConflicts" : 0, @@ -30,12 +30,12 @@ } } }, - "responseLength" : 108, - "millis" : 35, + "responseLength" : 53, + "millis" : 37, "execStats" : { }, - "ts" : ISODate("2017-09-05T19:39:32.054Z"), + "ts" : ISODate("2017-10-15T01:54:19.572Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/eval_3.2.16 b/src/go/tests/doc/out/eval_3.2.16 index a977cb1f..6d632f6f 100644 --- a/src/go/tests/doc/out/eval_3.2.16 +++ b/src/go/tests/doc/out/eval_3.2.16 @@ -2,7 +2,7 @@ "op" : "command", "ns" : "test", "command" : { - "$eval" : "db" + "$eval" : "1" }, "keyUpdates" : 0, "writeConflicts" : 0, @@ -25,13 +25,13 @@ } } }, - "responseLength" : 93, + "responseLength" : 38, "protocol" : "op_command", - "millis" : 88, + "millis" : 56, "execStats" : { }, - "ts" : ISODate("2017-09-05T19:39:41.581Z"), + "ts" : ISODate("2017-10-15T01:54:32.759Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/eval_3.4.7 b/src/go/tests/doc/out/eval_3.4.7 index 9d2e9786..ebfc7b7c 100644 --- a/src/go/tests/doc/out/eval_3.4.7 +++ b/src/go/tests/doc/out/eval_3.4.7 @@ -2,7 +2,7 @@ "op" : "command", "ns" : "test", "command" : { - "$eval" : "db" + "$eval" : "1" }, "numYield" : 0, "locks" : { @@ -23,10 +23,10 @@ } } }, - "responseLength" : 93, + "responseLength" : 38, "protocol" : "op_command", - "millis" : 91, - "ts" : ISODate("2017-09-05T19:39:48.888Z"), + "millis" : 48, + "ts" : ISODate("2017-10-15T01:54:43.273Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/eval_3.5.11 b/src/go/tests/doc/out/eval_3.5.11 index 3cc988e0..f2ff0ae7 100644 --- a/src/go/tests/doc/out/eval_3.5.11 +++ b/src/go/tests/doc/out/eval_3.5.11 @@ -2,7 +2,7 @@ "op" : "command", "ns" : "test", "command" : { - "$eval" : "db", + "$eval" : "1", "$db" : "test" }, "numYield" : 0, @@ -24,10 +24,10 @@ } } }, - "responseLength" : 93, + "responseLength" : 38, "protocol" : "op_msg", - "millis" : 47, - "ts" : ISODate("2017-09-05T19:40:00.171Z"), + "millis" : 40, + "ts" : ISODate("2017-10-15T01:54:54.085Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/explain_2.6.12 b/src/go/tests/doc/out/explain_2.6.12 index 0abbb9a0..057bc3fa 100644 --- a/src/go/tests/doc/out/explain_2.6.12 +++ b/src/go/tests/doc/out/explain_2.6.12 @@ -9,18 +9,18 @@ }, "ntoreturn" : 0, "ntoskip" : 0, - "nscanned" : 44, - "nscannedObjects" : 44, + "nscanned" : 10, + "nscannedObjects" : 10, "keyUpdates" : 0, "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(95), + "r" : NumberLong(101), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(14), - "w" : NumberLong(6) + "r" : NumberLong(6), + "w" : NumberLong(11) } }, "nreturned" : 1, @@ -28,18 +28,18 @@ "millis" : 0, "execStats" : { "type" : "COLLSCAN", - "works" : 46, + "works" : 12, "yields" : 0, "unyields" : 0, "invalidates" : 0, - "advanced" : 44, + "advanced" : 10, "needTime" : 1, "needFetch" : 0, "isEOF" : 1, - "docsTested" : 44, + "docsTested" : 10, "children" : [ ] }, - "ts" : ISODate("2017-09-05T19:39:24.666Z"), + "ts" : ISODate("2017-10-15T01:54:10.058Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/explain_3.0.15 b/src/go/tests/doc/out/explain_3.0.15 index 4c79d0e5..f65e97cd 100644 --- a/src/go/tests/doc/out/explain_3.0.15 +++ b/src/go/tests/doc/out/explain_3.0.15 @@ -43,7 +43,7 @@ "execStats" : { }, - "ts" : ISODate("2017-09-05T19:39:32.210Z"), + "ts" : ISODate("2017-10-15T01:54:19.722Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/explain_3.2.16 b/src/go/tests/doc/out/explain_3.2.16 index aa91a9ae..0d34e67c 100644 --- a/src/go/tests/doc/out/explain_3.2.16 +++ b/src/go/tests/doc/out/explain_3.2.16 @@ -36,7 +36,7 @@ "execStats" : { }, - "ts" : ISODate("2017-09-05T19:39:41.753Z"), + "ts" : ISODate("2017-10-15T01:54:32.931Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/explain_3.4.7 b/src/go/tests/doc/out/explain_3.4.7 index 748d51be..75e82c10 100644 --- a/src/go/tests/doc/out/explain_3.4.7 +++ b/src/go/tests/doc/out/explain_3.4.7 @@ -31,7 +31,7 @@ "responseLength" : 328, "protocol" : "op_command", "millis" : 0, - "ts" : ISODate("2017-09-05T19:39:49.065Z"), + "ts" : ISODate("2017-10-15T01:54:43.427Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/explain_3.5.11 b/src/go/tests/doc/out/explain_3.5.11 index 7b23d107..aac05929 100644 --- a/src/go/tests/doc/out/explain_3.5.11 +++ b/src/go/tests/doc/out/explain_3.5.11 @@ -32,7 +32,7 @@ "responseLength" : 329, "protocol" : "op_msg", "millis" : 0, - "ts" : ISODate("2017-09-05T19:40:00.433Z"), + "ts" : ISODate("2017-10-15T01:54:54.257Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/find_2.6.12 b/src/go/tests/doc/out/find_2.6.12 index 6f9bc85f..77a18f4e 100644 --- a/src/go/tests/doc/out/find_2.6.12 +++ b/src/go/tests/doc/out/find_2.6.12 @@ -2,34 +2,34 @@ "op" : "query", "ns" : "test.coll", "query" : { - "a" : 1 + "k" : 1 }, "ntoreturn" : 0, "ntoskip" : 0, - "nscanned" : 6, - "nscannedObjects" : 6, + "nscanned" : 2, + "nscannedObjects" : 2, "keyUpdates" : 0, "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(231), + "r" : NumberLong(213), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(2), - "w" : NumberLong(26) + "r" : NumberLong(38), + "w" : NumberLong(3) } }, - "nreturned" : 6, - "responseLength" : 251, + "nreturned" : 2, + "responseLength" : 86, "millis" : 0, "execStats" : { "type" : "FETCH", - "works" : 7, + "works" : 3, "yields" : 0, "unyields" : 0, "invalidates" : 0, - "advanced" : 6, + "advanced" : 2, "needTime" : 0, "needFetch" : 0, "isEOF" : 1, @@ -39,28 +39,28 @@ "children" : [ { "type" : "IXSCAN", - "works" : 7, + "works" : 3, "yields" : 0, "unyields" : 0, "invalidates" : 0, - "advanced" : 6, + "advanced" : 2, "needTime" : 0, "needFetch" : 0, "isEOF" : 1, - "keyPattern" : "{ a: 1.0 }", + "keyPattern" : "{ k: 1.0 }", "isMultiKey" : 0, - "boundsVerbose" : "field #0['a']: [1.0, 1.0]", + "boundsVerbose" : "field #0['k']: [1.0, 1.0]", "yieldMovedCursor" : 0, "dupsTested" : 0, "dupsDropped" : 0, "seenInvalidated" : 0, "matchTested" : 0, - "keysExamined" : 6, + "keysExamined" : 2, "children" : [ ] } ] }, - "ts" : ISODate("2017-08-20T15:39:15.457Z"), + "ts" : ISODate("2017-10-15T01:54:10.277Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_3.0.15 b/src/go/tests/doc/out/find_3.0.15 index 6549dad5..17470b31 100644 --- a/src/go/tests/doc/out/find_3.0.15 +++ b/src/go/tests/doc/out/find_3.0.15 @@ -2,12 +2,12 @@ "op" : "query", "ns" : "test.coll", "query" : { - "a" : 1 + "k" : 1 }, "ntoreturn" : 0, "ntoskip" : 0, - "nscanned" : 6, - "nscannedObjects" : 6, + "nscanned" : 2, + "nscannedObjects" : 2, "keyUpdates" : 0, "writeConflicts" : 0, "numYield" : 0, @@ -33,29 +33,29 @@ } } }, - "nreturned" : 6, - "responseLength" : 251, + "nreturned" : 2, + "responseLength" : 86, "millis" : 0, "execStats" : { "stage" : "FETCH", - "nReturned" : 6, + "nReturned" : 2, "executionTimeMillisEstimate" : 0, - "works" : 7, - "advanced" : 6, + "works" : 3, + "advanced" : 2, "needTime" : 0, "needFetch" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "docsExamined" : 6, + "docsExamined" : 2, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 6, + "nReturned" : 2, "executionTimeMillisEstimate" : 0, - "works" : 7, - "advanced" : 6, + "works" : 3, + "advanced" : 2, "needTime" : 0, "needFetch" : 0, "saveState" : 0, @@ -63,24 +63,24 @@ "isEOF" : 1, "invalidates" : 0, "keyPattern" : { - "a" : 1 + "k" : 1 }, - "indexName" : "a_1", + "indexName" : "k_1", "isMultiKey" : false, "direction" : "forward", "indexBounds" : { - "a" : [ + "k" : [ "[1.0, 1.0]" ] }, - "keysExamined" : 6, + "keysExamined" : 2, "dupsTested" : 0, "dupsDropped" : 0, "seenInvalidated" : 0, "matchTested" : 0 } }, - "ts" : ISODate("2017-08-20T15:39:21.515Z"), + "ts" : ISODate("2017-10-15T01:54:19.953Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_3.2.16 b/src/go/tests/doc/out/find_3.2.16 index fd84c5d1..dd0ff3c6 100644 --- a/src/go/tests/doc/out/find_3.2.16 +++ b/src/go/tests/doc/out/find_3.2.16 @@ -4,11 +4,11 @@ "query" : { "find" : "coll", "filter" : { - "a" : 1 + "k" : 1 } }, - "keysExamined" : 6, - "docsExamined" : 6, + "keysExamined" : 2, + "docsExamined" : 2, "cursorExhausted" : true, "keyUpdates" : 0, "writeConflicts" : 0, @@ -30,30 +30,30 @@ } } }, - "nreturned" : 6, - "responseLength" : 349, + "nreturned" : 2, + "responseLength" : 172, "protocol" : "op_command", - "millis" : 0, + "millis" : 1, "execStats" : { "stage" : "FETCH", - "nReturned" : 6, + "nReturned" : 2, "executionTimeMillisEstimate" : 0, - "works" : 7, - "advanced" : 6, + "works" : 3, + "advanced" : 2, "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "docsExamined" : 6, + "docsExamined" : 2, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 6, + "nReturned" : 2, "executionTimeMillisEstimate" : 0, - "works" : 7, - "advanced" : 6, + "works" : 3, + "advanced" : 2, "needTime" : 0, "needYield" : 0, "saveState" : 0, @@ -61,9 +61,9 @@ "isEOF" : 1, "invalidates" : 0, "keyPattern" : { - "a" : 1 + "k" : 1 }, - "indexName" : "a_1", + "indexName" : "k_1", "isMultiKey" : false, "isUnique" : false, "isSparse" : false, @@ -71,17 +71,17 @@ "indexVersion" : 1, "direction" : "forward", "indexBounds" : { - "a" : [ + "k" : [ "[1.0, 1.0]" ] }, - "keysExamined" : 6, + "keysExamined" : 2, "dupsTested" : 0, "dupsDropped" : 0, "seenInvalidated" : 0 } }, - "ts" : ISODate("2017-08-20T15:39:30.913Z"), + "ts" : ISODate("2017-10-15T01:54:33.179Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_3.4.7 b/src/go/tests/doc/out/find_3.4.7 index 56512835..49d13b7c 100644 --- a/src/go/tests/doc/out/find_3.4.7 +++ b/src/go/tests/doc/out/find_3.4.7 @@ -4,11 +4,11 @@ "query" : { "find" : "coll", "filter" : { - "a" : 1 + "k" : 1 } }, - "keysExamined" : 6, - "docsExamined" : 6, + "keysExamined" : 2, + "docsExamined" : 2, "cursorExhausted" : true, "numYield" : 0, "locks" : { @@ -28,31 +28,31 @@ } } }, - "nreturned" : 6, - "responseLength" : 331, + "nreturned" : 2, + "responseLength" : 154, "protocol" : "op_command", "millis" : 0, - "planSummary" : "IXSCAN { a: 1 }", + "planSummary" : "IXSCAN { k: 1 }", "execStats" : { "stage" : "FETCH", - "nReturned" : 6, + "nReturned" : 2, "executionTimeMillisEstimate" : 0, - "works" : 7, - "advanced" : 6, + "works" : 3, + "advanced" : 2, "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "docsExamined" : 6, + "docsExamined" : 2, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 6, + "nReturned" : 2, "executionTimeMillisEstimate" : 0, - "works" : 7, - "advanced" : 6, + "works" : 3, + "advanced" : 2, "needTime" : 0, "needYield" : 0, "saveState" : 0, @@ -60,12 +60,12 @@ "isEOF" : 1, "invalidates" : 0, "keyPattern" : { - "a" : 1 + "k" : 1 }, - "indexName" : "a_1", + "indexName" : "k_1", "isMultiKey" : false, "multiKeyPaths" : { - "a" : [ ] + "k" : [ ] }, "isUnique" : false, "isSparse" : false, @@ -73,18 +73,18 @@ "indexVersion" : 2, "direction" : "forward", "indexBounds" : { - "a" : [ + "k" : [ "[1.0, 1.0]" ] }, - "keysExamined" : 6, + "keysExamined" : 2, "seeks" : 1, "dupsTested" : 0, "dupsDropped" : 0, "seenInvalidated" : 0 } }, - "ts" : ISODate("2017-08-20T15:39:37.660Z"), + "ts" : ISODate("2017-10-15T01:54:43.713Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/find_3.5.11 b/src/go/tests/doc/out/find_3.5.11 index f81a7832..05790ee6 100644 --- a/src/go/tests/doc/out/find_3.5.11 +++ b/src/go/tests/doc/out/find_3.5.11 @@ -4,12 +4,12 @@ "command" : { "find" : "coll", "filter" : { - "a" : 1 + "k" : 1 }, "$db" : "test" }, - "keysExamined" : 6, - "docsExamined" : 6, + "keysExamined" : 2, + "docsExamined" : 2, "cursorExhausted" : true, "numYield" : 0, "locks" : { @@ -29,31 +29,31 @@ } } }, - "nreturned" : 6, - "responseLength" : 331, + "nreturned" : 2, + "responseLength" : 154, "protocol" : "op_msg", - "millis" : 1, - "planSummary" : "IXSCAN { a: 1 }", + "millis" : 0, + "planSummary" : "IXSCAN { k: 1 }", "execStats" : { "stage" : "FETCH", - "nReturned" : 6, + "nReturned" : 2, "executionTimeMillisEstimate" : 0, - "works" : 7, - "advanced" : 6, + "works" : 3, + "advanced" : 2, "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, "invalidates" : 0, - "docsExamined" : 6, + "docsExamined" : 2, "alreadyHasObj" : 0, "inputStage" : { "stage" : "IXSCAN", - "nReturned" : 6, + "nReturned" : 2, "executionTimeMillisEstimate" : 0, - "works" : 7, - "advanced" : 6, + "works" : 3, + "advanced" : 2, "needTime" : 0, "needYield" : 0, "saveState" : 0, @@ -61,12 +61,12 @@ "isEOF" : 1, "invalidates" : 0, "keyPattern" : { - "a" : 1 + "k" : 1 }, - "indexName" : "a_1", + "indexName" : "k_1", "isMultiKey" : false, "multiKeyPaths" : { - "a" : [ ] + "k" : [ ] }, "isUnique" : false, "isSparse" : false, @@ -74,18 +74,18 @@ "indexVersion" : 2, "direction" : "forward", "indexBounds" : { - "a" : [ + "k" : [ "[1.0, 1.0]" ] }, - "keysExamined" : 6, + "keysExamined" : 2, "seeks" : 1, "dupsTested" : 0, "dupsDropped" : 0, "seenInvalidated" : 0 } }, - "ts" : ISODate("2017-08-20T15:39:48.107Z"), + "ts" : ISODate("2017-10-15T01:54:54.507Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/find_andrii_2.6.12 b/src/go/tests/doc/out/find_andrii_2.6.12 index eca32e6b..f57c1f0e 100644 --- a/src/go/tests/doc/out/find_andrii_2.6.12 +++ b/src/go/tests/doc/out/find_andrii_2.6.12 @@ -46,100 +46,27 @@ }, "ntoreturn" : 100, "ntoskip" : 0, - "nscanned" : 98, - "nscannedObjects" : 98, + "nscanned" : 0, + "nscannedObjects" : 0, "keyUpdates" : 0, "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(951), + "r" : NumberLong(298), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(3), - "w" : NumberLong(2) + "r" : NumberLong(5), + "w" : NumberLong(50) } }, "nreturned" : 0, "responseLength" : 20, "millis" : 0, "execStats" : { - "type" : "OR", - "works" : 106, - "yields" : 0, - "unyields" : 0, - "invalidates" : 0, - "advanced" : 0, - "needTime" : 105, - "needFetch" : 0, - "isEOF" : 1, - "dupsTested" : 0, - "dupsDropped" : 0, - "locsForgotten" : 0, - "matchTested_0" : 0, - "matchTested_1" : 0, - "children" : [ - { - "type" : "SORT", - "works" : 53, - "yields" : 0, - "unyields" : 0, - "invalidates" : 0, - "advanced" : 0, - "needTime" : 51, - "needFetch" : 0, - "isEOF" : 1, - "forcedFetches" : 0, - "memUsage" : 0, - "memLimit" : 33554432, - "children" : [ - { - "type" : "COLLSCAN", - "works" : 51, - "yields" : 0, - "unyields" : 0, - "invalidates" : 0, - "advanced" : 0, - "needTime" : 50, - "needFetch" : 0, - "isEOF" : 1, - "docsTested" : 49, - "children" : [ ] - } - ] - }, - { - "type" : "SORT", - "works" : 53, - "yields" : 0, - "unyields" : 0, - "invalidates" : 0, - "advanced" : 0, - "needTime" : 51, - "needFetch" : 0, - "isEOF" : 1, - "forcedFetches" : 0, - "memUsage" : 0, - "memLimit" : 33554432, - "children" : [ - { - "type" : "COLLSCAN", - "works" : 51, - "yields" : 0, - "unyields" : 0, - "invalidates" : 0, - "advanced" : 0, - "needTime" : 50, - "needFetch" : 0, - "isEOF" : 1, - "docsTested" : 49, - "children" : [ ] - } - ] - } - ] + }, - "ts" : ISODate("2017-08-20T15:39:15.616Z"), + "ts" : ISODate("2017-10-15T01:54:10.474Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_andrii_3.0.15 b/src/go/tests/doc/out/find_andrii_3.0.15 index ece88829..b4f9de3b 100644 --- a/src/go/tests/doc/out/find_andrii_3.0.15 +++ b/src/go/tests/doc/out/find_andrii_3.0.15 @@ -47,8 +47,7 @@ "ntoreturn" : 100, "ntoskip" : 0, "nscanned" : 0, - "nscannedObjects" : 98, - "scanAndOrder" : true, + "nscannedObjects" : 0, "keyUpdates" : 0, "writeConflicts" : 0, "numYield" : 0, @@ -78,169 +77,19 @@ "responseLength" : 20, "millis" : 0, "execStats" : { - "stage" : "OR", + "stage" : "EOF", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 106, + "works" : 1, "advanced" : 0, - "needTime" : 105, + "needTime" : 0, "needFetch" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, - "invalidates" : 0, - "dupsTested" : 0, - "dupsDropped" : 0, - "locsForgotten" : 0, - "matchTested_0" : 0, - "matchTested_1" : 0, - "inputStages" : [ - { - "stage" : "SORT", - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 53, - "advanced" : 0, - "needTime" : 51, - "needFetch" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "sortPattern" : { - "k" : -1 - }, - "memUsage" : 0, - "memLimit" : 33554432, - "limitAmount" : 100, - "inputStage" : { - "stage" : "COLLSCAN", - "filter" : { - "$and" : [ - { - "$or" : [ - { - "c" : { - "$in" : [ - /^0/, - /^2/, - /^4/, - /^6/ - ] - } - }, - { - "pad" : { - "$in" : [ - /9$/, - /7$/, - /5$/, - /3$/ - ] - } - } - ] - }, - { - "k" : { - "$lt" : 2 - } - }, - { - "k" : { - "$gt" : 1 - } - } - ] - }, - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 0, - "needTime" : 50, - "needFetch" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 - } - }, - { - "stage" : "SORT", - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 53, - "advanced" : 0, - "needTime" : 51, - "needFetch" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "sortPattern" : { - "k" : -1 - }, - "memUsage" : 0, - "memLimit" : 33554432, - "inputStage" : { - "stage" : "COLLSCAN", - "filter" : { - "$and" : [ - { - "$or" : [ - { - "c" : { - "$in" : [ - /^0/, - /^2/, - /^4/, - /^6/ - ] - } - }, - { - "pad" : { - "$in" : [ - /9$/, - /7$/, - /5$/, - /3$/ - ] - } - } - ] - }, - { - "k" : { - "$lt" : 2 - } - }, - { - "k" : { - "$gt" : 1 - } - } - ] - }, - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 0, - "needTime" : 50, - "needFetch" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 - } - } - ] + "invalidates" : 0 }, - "ts" : ISODate("2017-08-20T15:39:21.656Z"), + "ts" : ISODate("2017-10-15T01:54:20.111Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_andrii_3.2.16 b/src/go/tests/doc/out/find_andrii_3.2.16 index 91d6e62a..e567fa74 100644 --- a/src/go/tests/doc/out/find_andrii_3.2.16 +++ b/src/go/tests/doc/out/find_andrii_3.2.16 @@ -48,8 +48,7 @@ } }, "keysExamined" : 0, - "docsExamined" : 49, - "hasSortStage" : true, + "docsExamined" : 0, "cursorExhausted" : true, "keyUpdates" : 0, "writeConflicts" : 0, @@ -76,91 +75,19 @@ "protocol" : "op_command", "millis" : 0, "execStats" : { - "stage" : "SORT", + "stage" : "EOF", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 53, + "works" : 0, "advanced" : 0, - "needTime" : 52, + "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, - "invalidates" : 0, - "sortPattern" : { - "k" : -1 - }, - "memUsage" : 0, - "memLimit" : 33554432, - "limitAmount" : 100, - "inputStage" : { - "stage" : "SORT_KEY_GENERATOR", - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 52, - "advanced" : 0, - "needTime" : 51, - "needYield" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "inputStage" : { - "stage" : "COLLSCAN", - "filter" : { - "$and" : [ - { - "$or" : [ - { - "c" : { - "$in" : [ - /^0/, - /^2/, - /^4/, - /^6/ - ] - } - }, - { - "pad" : { - "$in" : [ - /9$/, - /7$/, - /5$/, - /3$/ - ] - } - } - ] - }, - { - "k" : { - "$lt" : 2 - } - }, - { - "k" : { - "$gt" : 1 - } - } - ] - }, - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 0, - "needTime" : 50, - "needYield" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 - } - } + "invalidates" : 0 }, - "ts" : ISODate("2017-08-20T15:39:31.085Z"), + "ts" : ISODate("2017-10-15T01:54:33.358Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_andrii_3.4.7 b/src/go/tests/doc/out/find_andrii_3.4.7 index ba079ebd..ff5b6654 100644 --- a/src/go/tests/doc/out/find_andrii_3.4.7 +++ b/src/go/tests/doc/out/find_andrii_3.4.7 @@ -48,8 +48,7 @@ } }, "keysExamined" : 0, - "docsExamined" : 49, - "hasSortStage" : true, + "docsExamined" : 0, "cursorExhausted" : true, "numYield" : 0, "locks" : { @@ -73,93 +72,21 @@ "responseLength" : 82, "protocol" : "op_command", "millis" : 0, - "planSummary" : "COLLSCAN", + "planSummary" : "EOF", "execStats" : { - "stage" : "SORT", + "stage" : "EOF", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 53, + "works" : 0, "advanced" : 0, - "needTime" : 52, + "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, - "invalidates" : 0, - "sortPattern" : { - "k" : -1 - }, - "memUsage" : 0, - "memLimit" : 33554432, - "limitAmount" : 100, - "inputStage" : { - "stage" : "SORT_KEY_GENERATOR", - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 52, - "advanced" : 0, - "needTime" : 51, - "needYield" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "inputStage" : { - "stage" : "COLLSCAN", - "filter" : { - "$and" : [ - { - "$or" : [ - { - "c" : { - "$in" : [ - /^0/, - /^2/, - /^4/, - /^6/ - ] - } - }, - { - "pad" : { - "$in" : [ - /9$/, - /7$/, - /5$/, - /3$/ - ] - } - } - ] - }, - { - "k" : { - "$lt" : 2 - } - }, - { - "k" : { - "$gt" : 1 - } - } - ] - }, - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 0, - "needTime" : 50, - "needYield" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 - } - } + "invalidates" : 0 }, - "ts" : ISODate("2017-08-20T15:39:37.823Z"), + "ts" : ISODate("2017-10-15T01:54:43.922Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/find_andrii_3.5.11 b/src/go/tests/doc/out/find_andrii_3.5.11 index b2a38573..d5d08a79 100644 --- a/src/go/tests/doc/out/find_andrii_3.5.11 +++ b/src/go/tests/doc/out/find_andrii_3.5.11 @@ -49,8 +49,7 @@ "$db" : "test" }, "keysExamined" : 0, - "docsExamined" : 49, - "hasSortStage" : true, + "docsExamined" : 0, "cursorExhausted" : true, "numYield" : 0, "locks" : { @@ -74,93 +73,21 @@ "responseLength" : 82, "protocol" : "op_msg", "millis" : 0, - "planSummary" : "COLLSCAN", + "planSummary" : "EOF", "execStats" : { - "stage" : "SORT", + "stage" : "EOF", "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 53, + "works" : 0, "advanced" : 0, - "needTime" : 52, + "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, - "invalidates" : 0, - "sortPattern" : { - "k" : -1 - }, - "memUsage" : 0, - "memLimit" : 33554432, - "limitAmount" : 100, - "inputStage" : { - "stage" : "SORT_KEY_GENERATOR", - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 52, - "advanced" : 0, - "needTime" : 51, - "needYield" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "inputStage" : { - "stage" : "COLLSCAN", - "filter" : { - "$and" : [ - { - "$or" : [ - { - "c" : { - "$in" : [ - /^0/, - /^2/, - /^4/, - /^6/ - ] - } - }, - { - "pad" : { - "$in" : [ - /9$/, - /7$/, - /5$/, - /3$/ - ] - } - } - ] - }, - { - "k" : { - "$lt" : 2 - } - }, - { - "k" : { - "$gt" : 1 - } - } - ] - }, - "nReturned" : 0, - "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 0, - "needTime" : 50, - "needYield" : 0, - "saveState" : 0, - "restoreState" : 0, - "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 - } - } + "invalidates" : 0 }, - "ts" : ISODate("2017-08-20T15:39:48.277Z"), + "ts" : ISODate("2017-10-15T01:54:54.693Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/find_empty_2.6.12 b/src/go/tests/doc/out/find_empty_2.6.12 index 3d3a4728..06b76808 100644 --- a/src/go/tests/doc/out/find_empty_2.6.12 +++ b/src/go/tests/doc/out/find_empty_2.6.12 @@ -6,37 +6,27 @@ }, "ntoreturn" : 0, "ntoskip" : 0, - "nscanned" : 49, - "nscannedObjects" : 49, + "nscanned" : 0, + "nscannedObjects" : 0, "keyUpdates" : 0, "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(65), + "r" : NumberLong(189), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(9), - "w" : NumberLong(2) + "r" : NumberLong(14), + "w" : NumberLong(9) } }, - "nreturned" : 49, - "responseLength" : 1846, + "nreturned" : 0, + "responseLength" : 20, "millis" : 0, "execStats" : { - "type" : "COLLSCAN", - "works" : 51, - "yields" : 0, - "unyields" : 0, - "invalidates" : 0, - "advanced" : 49, - "needTime" : 1, - "needFetch" : 0, - "isEOF" : 1, - "docsTested" : 49, - "children" : [ ] + }, - "ts" : ISODate("2017-08-20T15:39:15.750Z"), + "ts" : ISODate("2017-10-15T01:54:10.630Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_empty_3.0.15 b/src/go/tests/doc/out/find_empty_3.0.15 index 9747461d..4a05a498 100644 --- a/src/go/tests/doc/out/find_empty_3.0.15 +++ b/src/go/tests/doc/out/find_empty_3.0.15 @@ -7,7 +7,7 @@ "ntoreturn" : 0, "ntoskip" : 0, "nscanned" : 0, - "nscannedObjects" : 49, + "nscannedObjects" : 0, "keyUpdates" : 0, "writeConflicts" : 0, "numYield" : 0, @@ -33,28 +33,23 @@ } } }, - "nreturned" : 49, - "responseLength" : 1846, + "nreturned" : 0, + "responseLength" : 20, "millis" : 0, "execStats" : { - "stage" : "COLLSCAN", - "filter" : { - "$and" : [ ] - }, - "nReturned" : 49, + "stage" : "EOF", + "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 49, - "needTime" : 1, + "works" : 1, + "advanced" : 0, + "needTime" : 0, "needFetch" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 + "invalidates" : 0 }, - "ts" : ISODate("2017-08-20T15:39:21.769Z"), + "ts" : ISODate("2017-10-15T01:54:20.246Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_empty_3.2.16 b/src/go/tests/doc/out/find_empty_3.2.16 index 9d953ee0..9e06bc47 100644 --- a/src/go/tests/doc/out/find_empty_3.2.16 +++ b/src/go/tests/doc/out/find_empty_3.2.16 @@ -8,7 +8,7 @@ } }, "keysExamined" : 0, - "docsExamined" : 49, + "docsExamined" : 0, "cursorExhausted" : true, "keyUpdates" : 0, "writeConflicts" : 0, @@ -30,29 +30,24 @@ } } }, - "nreturned" : 49, - "responseLength" : 2112, + "nreturned" : 0, + "responseLength" : 100, "protocol" : "op_command", "millis" : 0, "execStats" : { - "stage" : "COLLSCAN", - "filter" : { - "$and" : [ ] - }, - "nReturned" : 49, + "stage" : "EOF", + "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 49, - "needTime" : 1, + "works" : 0, + "advanced" : 0, + "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 + "invalidates" : 0 }, - "ts" : ISODate("2017-08-20T15:39:31.294Z"), + "ts" : ISODate("2017-10-15T01:54:33.530Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/find_empty_3.4.7 b/src/go/tests/doc/out/find_empty_3.4.7 index 09699967..770d2211 100644 --- a/src/go/tests/doc/out/find_empty_3.4.7 +++ b/src/go/tests/doc/out/find_empty_3.4.7 @@ -8,7 +8,7 @@ } }, "keysExamined" : 0, - "docsExamined" : 49, + "docsExamined" : 0, "cursorExhausted" : true, "numYield" : 0, "locks" : { @@ -28,27 +28,25 @@ } } }, - "nreturned" : 49, - "responseLength" : 2094, + "nreturned" : 0, + "responseLength" : 82, "protocol" : "op_command", "millis" : 0, - "planSummary" : "COLLSCAN", + "planSummary" : "EOF", "execStats" : { - "stage" : "COLLSCAN", - "nReturned" : 49, + "stage" : "EOF", + "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 49, - "needTime" : 1, + "works" : 0, + "advanced" : 0, + "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 + "invalidates" : 0 }, - "ts" : ISODate("2017-08-20T15:39:37.964Z"), + "ts" : ISODate("2017-10-15T01:54:44.129Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/find_empty_3.5.11 b/src/go/tests/doc/out/find_empty_3.5.11 index 608637f7..a7f5aa4e 100644 --- a/src/go/tests/doc/out/find_empty_3.5.11 +++ b/src/go/tests/doc/out/find_empty_3.5.11 @@ -9,7 +9,7 @@ "$db" : "test" }, "keysExamined" : 0, - "docsExamined" : 49, + "docsExamined" : 0, "cursorExhausted" : true, "numYield" : 0, "locks" : { @@ -29,27 +29,25 @@ } } }, - "nreturned" : 49, - "responseLength" : 2094, + "nreturned" : 0, + "responseLength" : 82, "protocol" : "op_msg", "millis" : 0, - "planSummary" : "COLLSCAN", + "planSummary" : "EOF", "execStats" : { - "stage" : "COLLSCAN", - "nReturned" : 49, + "stage" : "EOF", + "nReturned" : 0, "executionTimeMillisEstimate" : 0, - "works" : 51, - "advanced" : 49, - "needTime" : 1, + "works" : 0, + "advanced" : 0, + "needTime" : 0, "needYield" : 0, "saveState" : 0, "restoreState" : 0, "isEOF" : 1, - "invalidates" : 0, - "direction" : "forward", - "docsExamined" : 49 + "invalidates" : 0 }, - "ts" : ISODate("2017-08-20T15:39:48.429Z"), + "ts" : ISODate("2017-10-15T01:54:54.870Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/find_with_sort_2.6.12 b/src/go/tests/doc/out/find_with_sort_2.6.12 new file mode 100644 index 00000000..241ed57f --- /dev/null +++ b/src/go/tests/doc/out/find_with_sort_2.6.12 @@ -0,0 +1,102 @@ +{ + "op" : "query", + "ns" : "test.coll", + "query" : { + "query" : { + "c" : 1 + }, + "orderby" : { + "b" : -1 + } + }, + "ntoreturn" : 0, + "ntoskip" : 0, + "nscanned" : 2, + "nscannedObjects" : 2, + "scanAndOrder" : true, + "keyUpdates" : 0, + "numYield" : 0, + "lockStats" : { + "timeLockedMicros" : { + "r" : NumberLong(508), + "w" : NumberLong(0) + }, + "timeAcquiringMicros" : { + "r" : NumberLong(19), + "w" : NumberLong(38) + } + }, + "nreturned" : 2, + "responseLength" : 108, + "millis" : 0, + "execStats" : { + "type" : "SORT", + "works" : 7, + "yields" : 0, + "unyields" : 0, + "invalidates" : 0, + "advanced" : 2, + "needTime" : 3, + "needFetch" : 0, + "isEOF" : 1, + "forcedFetches" : 0, + "memUsage" : 104, + "memLimit" : 33554432, + "children" : [ + { + "type" : "KEEP_MUTATIONS", + "works" : 3, + "yields" : 0, + "unyields" : 0, + "invalidates" : 0, + "advanced" : 2, + "needTime" : 0, + "needFetch" : 0, + "isEOF" : 1, + "children" : [ + { + "type" : "FETCH", + "works" : 3, + "yields" : 0, + "unyields" : 0, + "invalidates" : 0, + "advanced" : 2, + "needTime" : 0, + "needFetch" : 0, + "isEOF" : 1, + "alreadyHasObj" : 0, + "forcedFetches" : 0, + "matchTested" : 0, + "children" : [ + { + "type" : "IXSCAN", + "works" : 3, + "yields" : 0, + "unyields" : 0, + "invalidates" : 0, + "advanced" : 2, + "needTime" : 0, + "needFetch" : 0, + "isEOF" : 1, + "keyPattern" : "{ c: 1.0 }", + "isMultiKey" : 0, + "boundsVerbose" : "field #0['c']: [1.0, 1.0]", + "yieldMovedCursor" : 0, + "dupsTested" : 0, + "dupsDropped" : 0, + "seenInvalidated" : 0, + "matchTested" : 0, + "keysExamined" : 2, + "children" : [ ] + } + ] + } + ] + } + ] + }, + "ts" : ISODate("2017-10-15T01:54:10.817Z"), + "client" : "127.0.0.1", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/find_with_sort_3.0.15 b/src/go/tests/doc/out/find_with_sort_3.0.15 new file mode 100644 index 00000000..78dd4c31 --- /dev/null +++ b/src/go/tests/doc/out/find_with_sort_3.0.15 @@ -0,0 +1,124 @@ +{ + "op" : "query", + "ns" : "test.coll", + "query" : { + "query" : { + "c" : 1 + }, + "orderby" : { + "b" : -1 + } + }, + "ntoreturn" : 0, + "ntoskip" : 0, + "nscanned" : 2, + "nscannedObjects" : 2, + "scanAndOrder" : true, + "keyUpdates" : 0, + "writeConflicts" : 0, + "numYield" : 0, + "locks" : { + "Global" : { + "acquireCount" : { + "r" : NumberLong(2) + } + }, + "MMAPV1Journal" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Database" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Collection" : { + "acquireCount" : { + "R" : NumberLong(1) + } + } + }, + "nreturned" : 2, + "responseLength" : 108, + "millis" : 0, + "execStats" : { + "stage" : "SORT", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 7, + "advanced" : 2, + "needTime" : 3, + "needFetch" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "sortPattern" : { + "b" : -1 + }, + "memUsage" : 104, + "memLimit" : 33554432, + "inputStage" : { + "stage" : "KEEP_MUTATIONS", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needFetch" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "inputStage" : { + "stage" : "FETCH", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needFetch" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "docsExamined" : 2, + "alreadyHasObj" : 0, + "inputStage" : { + "stage" : "IXSCAN", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needFetch" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "keyPattern" : { + "c" : 1 + }, + "indexName" : "c_1", + "isMultiKey" : false, + "direction" : "forward", + "indexBounds" : { + "c" : [ + "[1.0, 1.0]" + ] + }, + "keysExamined" : 2, + "dupsTested" : 0, + "dupsDropped" : 0, + "seenInvalidated" : 0, + "matchTested" : 0 + } + } + } + }, + "ts" : ISODate("2017-10-15T01:54:20.410Z"), + "client" : "127.0.0.1", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/find_with_sort_3.2.16 b/src/go/tests/doc/out/find_with_sort_3.2.16 new file mode 100644 index 00000000..7f03c790 --- /dev/null +++ b/src/go/tests/doc/out/find_with_sort_3.2.16 @@ -0,0 +1,123 @@ +{ + "op" : "query", + "ns" : "test.coll", + "query" : { + "find" : "coll", + "filter" : { + "c" : 1 + }, + "sort" : { + "b" : -1 + } + }, + "keysExamined" : 2, + "docsExamined" : 2, + "hasSortStage" : true, + "cursorExhausted" : true, + "keyUpdates" : 0, + "writeConflicts" : 0, + "numYield" : 0, + "locks" : { + "Global" : { + "acquireCount" : { + "r" : NumberLong(2) + } + }, + "Database" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Collection" : { + "acquireCount" : { + "r" : NumberLong(1) + } + } + }, + "nreturned" : 2, + "responseLength" : 194, + "protocol" : "op_command", + "millis" : 0, + "execStats" : { + "stage" : "SORT", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 7, + "advanced" : 2, + "needTime" : 4, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "sortPattern" : { + "b" : -1 + }, + "memUsage" : 104, + "memLimit" : 33554432, + "inputStage" : { + "stage" : "SORT_KEY_GENERATOR", + "nReturned" : 0, + "executionTimeMillisEstimate" : 0, + "works" : 4, + "advanced" : 0, + "needTime" : 1, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "inputStage" : { + "stage" : "FETCH", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "docsExamined" : 2, + "alreadyHasObj" : 0, + "inputStage" : { + "stage" : "IXSCAN", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "keyPattern" : { + "c" : 1 + }, + "indexName" : "c_1", + "isMultiKey" : false, + "isUnique" : false, + "isSparse" : false, + "isPartial" : false, + "indexVersion" : 1, + "direction" : "forward", + "indexBounds" : { + "c" : [ + "[1.0, 1.0]" + ] + }, + "keysExamined" : 2, + "dupsTested" : 0, + "dupsDropped" : 0, + "seenInvalidated" : 0 + } + } + } + }, + "ts" : ISODate("2017-10-15T01:54:33.762Z"), + "client" : "127.0.0.1", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/find_with_sort_3.4.7 b/src/go/tests/doc/out/find_with_sort_3.4.7 new file mode 100644 index 00000000..483ff0b2 --- /dev/null +++ b/src/go/tests/doc/out/find_with_sort_3.4.7 @@ -0,0 +1,127 @@ +{ + "op" : "query", + "ns" : "test.coll", + "query" : { + "find" : "coll", + "filter" : { + "c" : 1 + }, + "sort" : { + "b" : -1 + } + }, + "keysExamined" : 2, + "docsExamined" : 2, + "hasSortStage" : true, + "cursorExhausted" : true, + "numYield" : 0, + "locks" : { + "Global" : { + "acquireCount" : { + "r" : NumberLong(2) + } + }, + "Database" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Collection" : { + "acquireCount" : { + "r" : NumberLong(1) + } + } + }, + "nreturned" : 2, + "responseLength" : 176, + "protocol" : "op_command", + "millis" : 0, + "planSummary" : "IXSCAN { c: 1 }", + "execStats" : { + "stage" : "SORT", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 7, + "advanced" : 2, + "needTime" : 4, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "sortPattern" : { + "b" : -1 + }, + "memUsage" : 104, + "memLimit" : 33554432, + "inputStage" : { + "stage" : "SORT_KEY_GENERATOR", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 4, + "advanced" : 2, + "needTime" : 1, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "inputStage" : { + "stage" : "FETCH", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "docsExamined" : 2, + "alreadyHasObj" : 0, + "inputStage" : { + "stage" : "IXSCAN", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "keyPattern" : { + "c" : 1 + }, + "indexName" : "c_1", + "isMultiKey" : false, + "multiKeyPaths" : { + "c" : [ ] + }, + "isUnique" : false, + "isSparse" : false, + "isPartial" : false, + "indexVersion" : 2, + "direction" : "forward", + "indexBounds" : { + "c" : [ + "[1.0, 1.0]" + ] + }, + "keysExamined" : 2, + "seeks" : 1, + "dupsTested" : 0, + "dupsDropped" : 0, + "seenInvalidated" : 0 + } + } + } + }, + "ts" : ISODate("2017-10-15T01:54:44.423Z"), + "client" : "127.0.0.1", + "appName" : "MongoDB Shell", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/find_with_sort_3.5.11 b/src/go/tests/doc/out/find_with_sort_3.5.11 new file mode 100644 index 00000000..4f9a85cc --- /dev/null +++ b/src/go/tests/doc/out/find_with_sort_3.5.11 @@ -0,0 +1,128 @@ +{ + "op" : "query", + "ns" : "test.coll", + "command" : { + "find" : "coll", + "filter" : { + "c" : 1 + }, + "sort" : { + "b" : -1 + }, + "$db" : "test" + }, + "keysExamined" : 2, + "docsExamined" : 2, + "hasSortStage" : true, + "cursorExhausted" : true, + "numYield" : 0, + "locks" : { + "Global" : { + "acquireCount" : { + "r" : NumberLong(2) + } + }, + "Database" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Collection" : { + "acquireCount" : { + "r" : NumberLong(1) + } + } + }, + "nreturned" : 2, + "responseLength" : 176, + "protocol" : "op_msg", + "millis" : 0, + "planSummary" : "IXSCAN { c: 1 }", + "execStats" : { + "stage" : "SORT", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 7, + "advanced" : 2, + "needTime" : 4, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "sortPattern" : { + "b" : -1 + }, + "memUsage" : 104, + "memLimit" : 33554432, + "inputStage" : { + "stage" : "SORT_KEY_GENERATOR", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 4, + "advanced" : 2, + "needTime" : 1, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "inputStage" : { + "stage" : "FETCH", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "docsExamined" : 2, + "alreadyHasObj" : 0, + "inputStage" : { + "stage" : "IXSCAN", + "nReturned" : 2, + "executionTimeMillisEstimate" : 0, + "works" : 3, + "advanced" : 2, + "needTime" : 0, + "needYield" : 0, + "saveState" : 0, + "restoreState" : 0, + "isEOF" : 1, + "invalidates" : 0, + "keyPattern" : { + "c" : 1 + }, + "indexName" : "c_1", + "isMultiKey" : false, + "multiKeyPaths" : { + "c" : [ ] + }, + "isUnique" : false, + "isSparse" : false, + "isPartial" : false, + "indexVersion" : 2, + "direction" : "forward", + "indexBounds" : { + "c" : [ + "[1.0, 1.0]" + ] + }, + "keysExamined" : 2, + "seeks" : 1, + "dupsTested" : 0, + "dupsDropped" : 0, + "seenInvalidated" : 0 + } + } + } + }, + "ts" : ISODate("2017-10-15T01:54:55.111Z"), + "client" : "127.0.0.1", + "appName" : "MongoDB Shell", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/findandmodify_2.6.12 b/src/go/tests/doc/out/findandmodify_2.6.12 index ee7a4657..51329dd4 100644 --- a/src/go/tests/doc/out/findandmodify_2.6.12 +++ b/src/go/tests/doc/out/findandmodify_2.6.12 @@ -26,19 +26,19 @@ "lockStats" : { "timeLockedMicros" : { "r" : NumberLong(0), - "w" : NumberLong(155) + "w" : NumberLong(465) }, "timeAcquiringMicros" : { "r" : NumberLong(0), - "w" : NumberLong(5) + "w" : NumberLong(18) } }, "responseLength" : 131, - "millis" : 0, + "millis" : 6, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:15.903Z"), + "ts" : ISODate("2017-10-15T01:54:11.011Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/findandmodify_3.0.15 b/src/go/tests/doc/out/findandmodify_3.0.15 index 8d5a3ea0..86d0d71f 100644 --- a/src/go/tests/doc/out/findandmodify_3.0.15 +++ b/src/go/tests/doc/out/findandmodify_3.0.15 @@ -52,7 +52,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:21.902Z"), + "ts" : ISODate("2017-10-15T01:54:20.581Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/findandmodify_3.2.16 b/src/go/tests/doc/out/findandmodify_3.2.16 index 62a5c07e..a418ac52 100644 --- a/src/go/tests/doc/out/findandmodify_3.2.16 +++ b/src/go/tests/doc/out/findandmodify_3.2.16 @@ -44,11 +44,11 @@ }, "responseLength" : 116, "protocol" : "op_command", - "millis" : 0, + "millis" : 1, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:31.548Z"), + "ts" : ISODate("2017-10-15T01:54:34.011Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/findandmodify_3.4.7 b/src/go/tests/doc/out/findandmodify_3.4.7 index 88c74ca4..6a75f883 100644 --- a/src/go/tests/doc/out/findandmodify_3.4.7 +++ b/src/go/tests/doc/out/findandmodify_3.4.7 @@ -44,7 +44,7 @@ }, "responseLength" : 116, "protocol" : "op_command", - "millis" : 0, + "millis" : 1, "planSummary" : "COLLSCAN", "execStats" : { "stage" : "UPDATE", @@ -84,7 +84,7 @@ "docsExamined" : 3 } }, - "ts" : ISODate("2017-08-20T15:39:38.196Z"), + "ts" : ISODate("2017-10-15T01:54:44.656Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/findandmodify_3.5.11 b/src/go/tests/doc/out/findandmodify_3.5.11 index 93c970ef..728a8f43 100644 --- a/src/go/tests/doc/out/findandmodify_3.5.11 +++ b/src/go/tests/doc/out/findandmodify_3.5.11 @@ -40,7 +40,7 @@ }, "responseLength" : 116, "protocol" : "op_msg", - "millis" : 0, + "millis" : 1, "planSummary" : "COLLSCAN", "execStats" : { "stage" : "UPDATE", @@ -80,7 +80,7 @@ "docsExamined" : 3 } }, - "ts" : ISODate("2017-08-20T15:39:48.636Z"), + "ts" : ISODate("2017-10-15T01:54:55.391Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/geonear_2.6.12 b/src/go/tests/doc/out/geonear_2.6.12 index 1d63c6e5..d87925c5 100644 --- a/src/go/tests/doc/out/geonear_2.6.12 +++ b/src/go/tests/doc/out/geonear_2.6.12 @@ -16,12 +16,12 @@ "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(1851), + "r" : NumberLong(1945), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(3), - "w" : NumberLong(3) + "r" : NumberLong(10), + "w" : NumberLong(10) } }, "responseLength" : 1406, @@ -29,7 +29,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:16.061Z"), + "ts" : ISODate("2017-10-15T01:54:11.181Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/geonear_3.0.15 b/src/go/tests/doc/out/geonear_3.0.15 index 236a1e58..234e7389 100644 --- a/src/go/tests/doc/out/geonear_3.0.15 +++ b/src/go/tests/doc/out/geonear_3.0.15 @@ -38,11 +38,11 @@ } }, "responseLength" : 1398, - "millis" : 3, + "millis" : 2, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:22.055Z"), + "ts" : ISODate("2017-10-15T01:54:20.751Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/geonear_3.2.16 b/src/go/tests/doc/out/geonear_3.2.16 index 08279c1b..72c8f711 100644 --- a/src/go/tests/doc/out/geonear_3.2.16 +++ b/src/go/tests/doc/out/geonear_3.2.16 @@ -34,11 +34,11 @@ }, "responseLength" : 1401, "protocol" : "op_command", - "millis" : 8, + "millis" : 10, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:31.797Z"), + "ts" : ISODate("2017-10-15T01:54:34.270Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/geonear_3.4.7 b/src/go/tests/doc/out/geonear_3.4.7 index 574ae61a..7892287e 100644 --- a/src/go/tests/doc/out/geonear_3.4.7 +++ b/src/go/tests/doc/out/geonear_3.4.7 @@ -34,12 +34,12 @@ }, "responseLength" : 1383, "protocol" : "op_command", - "millis" : 11, + "millis" : 13, "planSummary" : "GEO_NEAR_2DSPHERE { loc: \"2dsphere\" }", "execStats" : { "stage" : "LIMIT", "nReturned" : 10, - "executionTimeMillisEstimate" : 0, + "executionTimeMillisEstimate" : 10, "works" : 139, "advanced" : 10, "needTime" : 128, @@ -52,7 +52,7 @@ "inputStage" : { "stage" : "PROJECTION", "nReturned" : 10, - "executionTimeMillisEstimate" : 0, + "executionTimeMillisEstimate" : 10, "works" : 139, "advanced" : 10, "needTime" : 128, @@ -72,7 +72,7 @@ "inputStage" : { "stage" : "GEO_NEAR_2DSPHERE", "nReturned" : 10, - "executionTimeMillisEstimate" : 0, + "executionTimeMillisEstimate" : 10, "works" : 139, "advanced" : 10, "needTime" : 128, @@ -3557,7 +3557,7 @@ } } }, - "ts" : ISODate("2017-08-20T15:39:38.432Z"), + "ts" : ISODate("2017-10-15T01:54:44.873Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/geonear_3.5.11 b/src/go/tests/doc/out/geonear_3.5.11 index 8d9b532f..57fece10 100644 --- a/src/go/tests/doc/out/geonear_3.5.11 +++ b/src/go/tests/doc/out/geonear_3.5.11 @@ -35,7 +35,7 @@ }, "responseLength" : 1383, "protocol" : "op_msg", - "millis" : 7, + "millis" : 11, "planSummary" : "GEO_NEAR_2DSPHERE { loc: \"2dsphere\" }", "execStats" : { "stage" : "LIMIT", @@ -73,7 +73,7 @@ "inputStage" : { "stage" : "GEO_NEAR_2DSPHERE", "nReturned" : 10, - "executionTimeMillisEstimate" : 10, + "executionTimeMillisEstimate" : 0, "works" : 139, "advanced" : 10, "needTime" : 128, @@ -3558,7 +3558,7 @@ } } }, - "ts" : ISODate("2017-08-20T15:39:48.842Z"), + "ts" : ISODate("2017-10-15T01:54:55.701Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/getmore_2.6.12 b/src/go/tests/doc/out/getmore_2.6.12 new file mode 100644 index 00000000..d50c6fdc --- /dev/null +++ b/src/go/tests/doc/out/getmore_2.6.12 @@ -0,0 +1,33 @@ +{ + "op" : "getmore", + "ns" : "test.coll", + "query" : { + "a" : { + "$gt" : 0 + } + }, + "cursorid" : 73529665157, + "ntoreturn" : 2, + "keyUpdates" : 0, + "numYield" : 0, + "lockStats" : { + "timeLockedMicros" : { + "r" : NumberLong(29), + "w" : NumberLong(0) + }, + "timeAcquiringMicros" : { + "r" : NumberLong(5), + "w" : NumberLong(4) + } + }, + "nreturned" : 2, + "responseLength" : 86, + "millis" : 0, + "execStats" : { + + }, + "ts" : ISODate("2017-10-15T01:54:11.360Z"), + "client" : "127.0.0.1", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/getmore_3.0.15 b/src/go/tests/doc/out/getmore_3.0.15 new file mode 100644 index 00000000..59da152c --- /dev/null +++ b/src/go/tests/doc/out/getmore_3.0.15 @@ -0,0 +1,46 @@ +{ + "op" : "getmore", + "ns" : "test.coll", + "query" : { + "a" : { + "$gt" : 0 + } + }, + "cursorid" : 77879406118, + "ntoreturn" : 2, + "keyUpdates" : 0, + "writeConflicts" : 0, + "numYield" : 0, + "locks" : { + "Global" : { + "acquireCount" : { + "r" : NumberLong(2) + } + }, + "MMAPV1Journal" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Database" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Collection" : { + "acquireCount" : { + "R" : NumberLong(1) + } + } + }, + "nreturned" : 0, + "responseLength" : 20, + "millis" : 0, + "execStats" : { + + }, + "ts" : ISODate("2017-10-15T01:54:20.995Z"), + "client" : "127.0.0.1", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/getmore_3.2.16 b/src/go/tests/doc/out/getmore_3.2.16 new file mode 100644 index 00000000..b73ff90c --- /dev/null +++ b/src/go/tests/doc/out/getmore_3.2.16 @@ -0,0 +1,44 @@ +{ + "op" : "getmore", + "ns" : "test.coll", + "query" : { + "getMore" : NumberLong("62137702161"), + "collection" : "coll", + "batchSize" : 2 + }, + "cursorid" : 62137702161, + "keysExamined" : 0, + "docsExamined" : 0, + "cursorExhausted" : true, + "keyUpdates" : 0, + "writeConflicts" : 0, + "numYield" : 0, + "locks" : { + "Global" : { + "acquireCount" : { + "r" : NumberLong(2) + } + }, + "Database" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Collection" : { + "acquireCount" : { + "r" : NumberLong(1) + } + } + }, + "nreturned" : 0, + "responseLength" : 81, + "protocol" : "op_command", + "millis" : 0, + "execStats" : { + + }, + "ts" : ISODate("2017-10-15T01:54:34.569Z"), + "client" : "127.0.0.1", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/getmore_3.4.7 b/src/go/tests/doc/out/getmore_3.4.7 new file mode 100644 index 00000000..b76612a8 --- /dev/null +++ b/src/go/tests/doc/out/getmore_3.4.7 @@ -0,0 +1,103 @@ +{ + "op" : "getmore", + "ns" : "test.coll", + "query" : { + "getMore" : NumberLong("66029137874"), + "collection" : "coll", + "batchSize" : 2 + }, + "originatingCommand" : { + "find" : "coll", + "filter" : { + "a" : { + "$gt" : 0 + } + }, + "batchSize" : 2, + "sort" : { + "a" : 1 + } + }, + "cursorid" : 66029137874, + "keysExamined" : 2, + "docsExamined" : 2, + "numYield" : 0, + "locks" : { + "Global" : { + "acquireCount" : { + "r" : NumberLong(2) + } + }, + "Database" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Collection" : { + "acquireCount" : { + "r" : NumberLong(1) + } + } + }, + "nreturned" : 2, + "responseLength" : 153, + "protocol" : "op_command", + "millis" : 0, + "planSummary" : "IXSCAN { a: 1 }", + "execStats" : { + "stage" : "FETCH", + "nReturned" : 8, + "executionTimeMillisEstimate" : 0, + "works" : 8, + "advanced" : 8, + "needTime" : 0, + "needYield" : 0, + "saveState" : 3, + "restoreState" : 3, + "isEOF" : 0, + "invalidates" : 0, + "docsExamined" : 8, + "alreadyHasObj" : 0, + "inputStage" : { + "stage" : "IXSCAN", + "nReturned" : 8, + "executionTimeMillisEstimate" : 0, + "works" : 8, + "advanced" : 8, + "needTime" : 0, + "needYield" : 0, + "saveState" : 3, + "restoreState" : 3, + "isEOF" : 0, + "invalidates" : 0, + "keyPattern" : { + "a" : 1 + }, + "indexName" : "a_1", + "isMultiKey" : false, + "multiKeyPaths" : { + "a" : [ ] + }, + "isUnique" : false, + "isSparse" : false, + "isPartial" : false, + "indexVersion" : 2, + "direction" : "forward", + "indexBounds" : { + "a" : [ + "(0.0, inf.0]" + ] + }, + "keysExamined" : 8, + "seeks" : 1, + "dupsTested" : 0, + "dupsDropped" : 0, + "seenInvalidated" : 0 + } + }, + "ts" : ISODate("2017-10-15T01:54:45.251Z"), + "client" : "127.0.0.1", + "appName" : "MongoDB Shell", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/getmore_3.5.11 b/src/go/tests/doc/out/getmore_3.5.11 new file mode 100644 index 00000000..6b9e77c8 --- /dev/null +++ b/src/go/tests/doc/out/getmore_3.5.11 @@ -0,0 +1,106 @@ +{ + "op" : "getmore", + "ns" : "test.coll", + "command" : { + "getMore" : NumberLong("62495713089"), + "collection" : "coll", + "batchSize" : 2, + "$db" : "test" + }, + "originatingCommand" : { + "find" : "coll", + "filter" : { + "a" : { + "$gt" : 0 + } + }, + "batchSize" : 2, + "sort" : { + "a" : 1 + }, + "$db" : "test" + }, + "cursorid" : 62495713089, + "keysExamined" : 0, + "docsExamined" : 0, + "cursorExhausted" : true, + "numYield" : 0, + "locks" : { + "Global" : { + "acquireCount" : { + "r" : NumberLong(2) + } + }, + "Database" : { + "acquireCount" : { + "r" : NumberLong(1) + } + }, + "Collection" : { + "acquireCount" : { + "r" : NumberLong(1) + } + } + }, + "nreturned" : 0, + "responseLength" : 81, + "protocol" : "op_msg", + "millis" : 0, + "planSummary" : "IXSCAN { a: 1 }", + "execStats" : { + "stage" : "FETCH", + "nReturned" : 8, + "executionTimeMillisEstimate" : 0, + "works" : 9, + "advanced" : 8, + "needTime" : 0, + "needYield" : 0, + "saveState" : 4, + "restoreState" : 4, + "isEOF" : 1, + "invalidates" : 0, + "docsExamined" : 8, + "alreadyHasObj" : 0, + "inputStage" : { + "stage" : "IXSCAN", + "nReturned" : 8, + "executionTimeMillisEstimate" : 0, + "works" : 9, + "advanced" : 8, + "needTime" : 0, + "needYield" : 0, + "saveState" : 4, + "restoreState" : 4, + "isEOF" : 1, + "invalidates" : 0, + "keyPattern" : { + "a" : 1 + }, + "indexName" : "a_1", + "isMultiKey" : false, + "multiKeyPaths" : { + "a" : [ ] + }, + "isUnique" : false, + "isSparse" : false, + "isPartial" : false, + "indexVersion" : 2, + "direction" : "forward", + "indexBounds" : { + "a" : [ + "(0.0, inf.0]" + ] + }, + "keysExamined" : 8, + "seeks" : 1, + "dupsTested" : 0, + "dupsDropped" : 0, + "seenInvalidated" : 0 + } + }, + "ts" : ISODate("2017-10-15T01:54:56.186Z"), + "client" : "127.0.0.1", + "appName" : "MongoDB Shell", + "allUsers" : [ ], + "user" : "" +} diff --git a/src/go/tests/doc/out/group_2.6.12 b/src/go/tests/doc/out/group_2.6.12 index 53de6267..ccc88964 100644 --- a/src/go/tests/doc/out/group_2.6.12 +++ b/src/go/tests/doc/out/group_2.6.12 @@ -21,20 +21,20 @@ "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(77899), + "r" : NumberLong(36629), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(3), - "w" : NumberLong(2075) + "r" : NumberLong(6), + "w" : NumberLong(6) } }, "responseLength" : 135, - "millis" : 77, + "millis" : 36, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:16.325Z"), + "ts" : ISODate("2017-10-15T01:54:11.599Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/group_3.0.15 b/src/go/tests/doc/out/group_3.0.15 index 8daf8b7f..3f90e354 100644 --- a/src/go/tests/doc/out/group_3.0.15 +++ b/src/go/tests/doc/out/group_3.0.15 @@ -43,11 +43,11 @@ } }, "responseLength" : 139, - "millis" : 54, + "millis" : 26, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:22.271Z"), + "ts" : ISODate("2017-10-15T01:54:21.188Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/group_3.2.16 b/src/go/tests/doc/out/group_3.2.16 index 44e8ac00..4275f00f 100644 --- a/src/go/tests/doc/out/group_3.2.16 +++ b/src/go/tests/doc/out/group_3.2.16 @@ -39,11 +39,11 @@ }, "responseLength" : 142, "protocol" : "op_command", - "millis" : 74, + "millis" : 31, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:32.101Z"), + "ts" : ISODate("2017-10-15T01:54:34.867Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/group_3.4.7 b/src/go/tests/doc/out/group_3.4.7 index 681a76ac..2604d078 100644 --- a/src/go/tests/doc/out/group_3.4.7 +++ b/src/go/tests/doc/out/group_3.4.7 @@ -41,12 +41,12 @@ }, "responseLength" : 124, "protocol" : "op_command", - "millis" : 77, + "millis" : 31, "planSummary" : "IXSCAN { b: -1 }", "execStats" : { "stage" : "GROUP", "nReturned" : 1, - "executionTimeMillisEstimate" : 75, + "executionTimeMillisEstimate" : 31, "works" : 4, "advanced" : 1, "needTime" : 3, @@ -108,7 +108,7 @@ } } }, - "ts" : ISODate("2017-08-20T15:39:38.886Z"), + "ts" : ISODate("2017-10-15T01:54:45.500Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/group_3.5.11 b/src/go/tests/doc/out/group_3.5.11 index 4ff8fa94..b79d3224 100644 --- a/src/go/tests/doc/out/group_3.5.11 +++ b/src/go/tests/doc/out/group_3.5.11 @@ -42,12 +42,12 @@ }, "responseLength" : 124, "protocol" : "op_msg", - "millis" : 68, + "millis" : 24, "planSummary" : "IXSCAN { b: -1 }", "execStats" : { "stage" : "GROUP", "nReturned" : 1, - "executionTimeMillisEstimate" : 64, + "executionTimeMillisEstimate" : 25, "works" : 4, "advanced" : 1, "needTime" : 3, @@ -109,7 +109,7 @@ } } }, - "ts" : ISODate("2017-08-20T15:39:49.276Z"), + "ts" : ISODate("2017-10-15T01:54:56.478Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/insert_2.6.12 b/src/go/tests/doc/out/insert_2.6.12 index 73bd1260..4073f84c 100644 --- a/src/go/tests/doc/out/insert_2.6.12 +++ b/src/go/tests/doc/out/insert_2.6.12 @@ -10,18 +10,18 @@ "lockStats" : { "timeLockedMicros" : { "r" : NumberLong(0), - "w" : NumberLong(90) + "w" : NumberLong(362) }, "timeAcquiringMicros" : { "r" : NumberLong(0), - "w" : NumberLong(4) + "w" : NumberLong(11) } }, "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:16.473Z"), + "ts" : ISODate("2017-10-15T01:54:11.737Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/insert_3.0.15 b/src/go/tests/doc/out/insert_3.0.15 index f4e6a153..94e5434d 100644 --- a/src/go/tests/doc/out/insert_3.0.15 +++ b/src/go/tests/doc/out/insert_3.0.15 @@ -11,31 +11,37 @@ "locks" : { "Global" : { "acquireCount" : { - "r" : NumberLong(1), - "w" : NumberLong(1) + "r" : NumberLong(2), + "w" : NumberLong(2) } }, "MMAPV1Journal" : { "acquireCount" : { - "w" : NumberLong(2) + "w" : NumberLong(4) } }, "Database" : { "acquireCount" : { - "w" : NumberLong(1) + "w" : NumberLong(1), + "W" : NumberLong(1) } }, "Collection" : { "acquireCount" : { - "W" : NumberLong(1) + "W" : NumberLong(2) + } + }, + "Metadata" : { + "acquireCount" : { + "W" : NumberLong(2) } } }, - "millis" : 0, + "millis" : 4, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:22.409Z"), + "ts" : ISODate("2017-10-15T01:54:21.346Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/insert_3.2.16 b/src/go/tests/doc/out/insert_3.2.16 index 5bd08bd1..e033c994 100644 --- a/src/go/tests/doc/out/insert_3.2.16 +++ b/src/go/tests/doc/out/insert_3.2.16 @@ -17,28 +17,30 @@ "locks" : { "Global" : { "acquireCount" : { - "r" : NumberLong(1), - "w" : NumberLong(1) + "r" : NumberLong(2), + "w" : NumberLong(2) } }, "Database" : { "acquireCount" : { - "w" : NumberLong(1) + "w" : NumberLong(1), + "W" : NumberLong(1) } }, "Collection" : { "acquireCount" : { - "w" : NumberLong(1) + "w" : NumberLong(1), + "W" : NumberLong(1) } } }, "responseLength" : 25, "protocol" : "op_command", - "millis" : 0, + "millis" : 11, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:32.303Z"), + "ts" : ISODate("2017-10-15T01:54:35.088Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/insert_3.4.7 b/src/go/tests/doc/out/insert_3.4.7 index 4e8278af..22d2dfb9 100644 --- a/src/go/tests/doc/out/insert_3.4.7 +++ b/src/go/tests/doc/out/insert_3.4.7 @@ -11,30 +11,31 @@ "ordered" : true }, "ninserted" : 1, - "keysInserted" : 2, + "keysInserted" : 1, "numYield" : 0, "locks" : { "Global" : { "acquireCount" : { - "r" : NumberLong(1), - "w" : NumberLong(1) + "r" : NumberLong(3), + "w" : NumberLong(3) } }, "Database" : { "acquireCount" : { - "w" : NumberLong(1) + "w" : NumberLong(2), + "W" : NumberLong(1) } }, "Collection" : { "acquireCount" : { - "w" : NumberLong(1) + "w" : NumberLong(2) } } }, "responseLength" : 29, "protocol" : "op_command", - "millis" : 0, - "ts" : ISODate("2017-08-20T15:39:39.023Z"), + "millis" : 11, + "ts" : ISODate("2017-10-15T01:54:45.681Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/insert_3.5.11 b/src/go/tests/doc/out/insert_3.5.11 index b560d170..dc1b8872 100644 --- a/src/go/tests/doc/out/insert_3.5.11 +++ b/src/go/tests/doc/out/insert_3.5.11 @@ -7,30 +7,31 @@ "$db" : "test" }, "ninserted" : 1, - "keysInserted" : 2, + "keysInserted" : 1, "numYield" : 0, "locks" : { "Global" : { "acquireCount" : { - "r" : NumberLong(1), - "w" : NumberLong(1) + "r" : NumberLong(3), + "w" : NumberLong(3) } }, "Database" : { "acquireCount" : { - "w" : NumberLong(1) + "w" : NumberLong(2), + "W" : NumberLong(1) } }, "Collection" : { "acquireCount" : { - "w" : NumberLong(1) + "w" : NumberLong(2) } } }, "responseLength" : 29, "protocol" : "op_msg", - "millis" : 0, - "ts" : ISODate("2017-08-20T15:39:49.440Z"), + "millis" : 11, + "ts" : ISODate("2017-10-15T01:54:56.693Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/mapreduce_2.6.12 b/src/go/tests/doc/out/mapreduce_2.6.12 index e1978210..41e8a772 100644 --- a/src/go/tests/doc/out/mapreduce_2.6.12 +++ b/src/go/tests/doc/out/mapreduce_2.6.12 @@ -22,20 +22,20 @@ "numYield" : 0, "lockStats" : { "timeLockedMicros" : { - "r" : NumberLong(226), + "r" : NumberLong(650), "w" : NumberLong(0) }, "timeAcquiringMicros" : { - "r" : NumberLong(4), - "w" : NumberLong(13) + "r" : NumberLong(17), + "w" : NumberLong(15) } }, "responseLength" : 233, - "millis" : 33, + "millis" : 29, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:16.701Z"), + "ts" : ISODate("2017-10-15T01:54:11.959Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/mapreduce_3.0.15 b/src/go/tests/doc/out/mapreduce_3.0.15 index 725e50fc..bfd14a96 100644 --- a/src/go/tests/doc/out/mapreduce_3.0.15 +++ b/src/go/tests/doc/out/mapreduce_3.0.15 @@ -49,11 +49,11 @@ } }, "responseLength" : 233, - "millis" : 26, + "millis" : 21, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:22.582Z"), + "ts" : ISODate("2017-10-15T01:54:21.559Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/mapreduce_3.2.16 b/src/go/tests/doc/out/mapreduce_3.2.16 index 44944aaf..b60d4849 100644 --- a/src/go/tests/doc/out/mapreduce_3.2.16 +++ b/src/go/tests/doc/out/mapreduce_3.2.16 @@ -49,11 +49,11 @@ }, "responseLength" : 218, "protocol" : "op_command", - "millis" : 31, + "millis" : 41, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:32.572Z"), + "ts" : ISODate("2017-10-15T01:54:35.348Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/mapreduce_3.4.7 b/src/go/tests/doc/out/mapreduce_3.4.7 index 5e3de99f..8e355963 100644 --- a/src/go/tests/doc/out/mapreduce_3.4.7 +++ b/src/go/tests/doc/out/mapreduce_3.4.7 @@ -20,11 +20,11 @@ }, "keysExamined" : 3, "docsExamined" : 3, - "numYield" : 0, + "numYield" : 1, "locks" : { "Global" : { "acquireCount" : { - "r" : NumberLong(11), + "r" : NumberLong(13), "w" : NumberLong(1) } }, @@ -32,7 +32,7 @@ "acquireCount" : { "r" : NumberLong(3), "w" : NumberLong(1), - "R" : NumberLong(2) + "R" : NumberLong(3) } }, "Collection" : { @@ -49,18 +49,18 @@ }, "responseLength" : 218, "protocol" : "op_command", - "millis" : 43, + "millis" : 21, "planSummary" : "IXSCAN { a: 1 }", "execStats" : { "stage" : "FETCH", "nReturned" : 3, - "executionTimeMillisEstimate" : 0, + "executionTimeMillisEstimate" : 11, "works" : 4, "advanced" : 3, "needTime" : 0, "needYield" : 0, - "saveState" : 0, - "restoreState" : 0, + "saveState" : 1, + "restoreState" : 1, "isEOF" : 1, "invalidates" : 0, "docsExamined" : 3, @@ -68,13 +68,13 @@ "inputStage" : { "stage" : "IXSCAN", "nReturned" : 3, - "executionTimeMillisEstimate" : 0, + "executionTimeMillisEstimate" : 11, "works" : 4, "advanced" : 3, "needTime" : 0, "needYield" : 0, - "saveState" : 0, - "restoreState" : 0, + "saveState" : 1, + "restoreState" : 1, "isEOF" : 1, "invalidates" : 0, "keyPattern" : { @@ -102,7 +102,7 @@ "seenInvalidated" : 0 } }, - "ts" : ISODate("2017-08-20T15:39:39.249Z"), + "ts" : ISODate("2017-10-15T01:54:45.925Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/mapreduce_3.5.11 b/src/go/tests/doc/out/mapreduce_3.5.11 index 3b9c8f7e..89063fd7 100644 --- a/src/go/tests/doc/out/mapreduce_3.5.11 +++ b/src/go/tests/doc/out/mapreduce_3.5.11 @@ -50,7 +50,7 @@ }, "responseLength" : 218, "protocol" : "op_msg", - "millis" : 35, + "millis" : 26, "planSummary" : "IXSCAN { a: 1 }", "execStats" : { "stage" : "FETCH", @@ -103,7 +103,7 @@ "seenInvalidated" : 0 } }, - "ts" : ISODate("2017-08-20T15:39:49.680Z"), + "ts" : ISODate("2017-10-15T01:54:56.951Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/update_2.6.12 b/src/go/tests/doc/out/update_2.6.12 index f33f95b6..ce5d69c7 100644 --- a/src/go/tests/doc/out/update_2.6.12 +++ b/src/go/tests/doc/out/update_2.6.12 @@ -16,27 +16,25 @@ }, "nscanned" : 1, "nscannedObjects" : 1, - "moved" : true, - "nmoved" : 1, "nMatched" : 1, "nModified" : 1, - "keyUpdates" : 0, + "keyUpdates" : 1, "numYield" : 0, "lockStats" : { "timeLockedMicros" : { "r" : NumberLong(0), - "w" : NumberLong(285) + "w" : NumberLong(241) }, "timeAcquiringMicros" : { "r" : NumberLong(0), - "w" : NumberLong(4) + "w" : NumberLong(16) } }, "millis" : 0, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:16.921Z"), + "ts" : ISODate("2017-10-15T01:54:12.161Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/update_3.0.15 b/src/go/tests/doc/out/update_3.0.15 index d1e4f3c7..a20162f7 100644 --- a/src/go/tests/doc/out/update_3.0.15 +++ b/src/go/tests/doc/out/update_3.0.15 @@ -16,11 +16,9 @@ }, "nscanned" : 1, "nscannedObjects" : 1, - "moved" : true, - "nmoved" : 1, "nMatched" : 1, "nModified" : 1, - "keyUpdates" : 0, + "keyUpdates" : 1, "writeConflicts" : 0, "numYield" : 0, "locks" : { @@ -50,7 +48,7 @@ "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:22.788Z"), + "ts" : ISODate("2017-10-15T01:54:21.803Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/update_3.2.16 b/src/go/tests/doc/out/update_3.2.16 index b049846b..6837faf8 100644 --- a/src/go/tests/doc/out/update_3.2.16 +++ b/src/go/tests/doc/out/update_3.2.16 @@ -39,11 +39,11 @@ } } }, - "millis" : 0, + "millis" : 2, "execStats" : { }, - "ts" : ISODate("2017-08-20T15:39:32.737Z"), + "ts" : ISODate("2017-10-15T01:54:35.583Z"), "client" : "127.0.0.1", "allUsers" : [ ], "user" : "" diff --git a/src/go/tests/doc/out/update_3.4.7 b/src/go/tests/doc/out/update_3.4.7 index c5fe1c47..67a1b06b 100644 --- a/src/go/tests/doc/out/update_3.4.7 +++ b/src/go/tests/doc/out/update_3.4.7 @@ -110,7 +110,7 @@ } } }, - "ts" : ISODate("2017-08-20T15:39:39.434Z"), + "ts" : ISODate("2017-10-15T01:54:46.168Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/out/update_3.5.11 b/src/go/tests/doc/out/update_3.5.11 index 2b66b250..e30d0689 100644 --- a/src/go/tests/doc/out/update_3.5.11 +++ b/src/go/tests/doc/out/update_3.5.11 @@ -114,7 +114,7 @@ } } }, - "ts" : ISODate("2017-08-20T15:39:49.855Z"), + "ts" : ISODate("2017-10-15T01:54:57.231Z"), "client" : "127.0.0.1", "appName" : "MongoDB Shell", "allUsers" : [ ], diff --git a/src/go/tests/doc/script/profile/aggregate.js b/src/go/tests/doc/script/profile/aggregate.js index aa1570be..7d8332a3 100644 --- a/src/go/tests/doc/script/profile/aggregate.js +++ b/src/go/tests/doc/script/profile/aggregate.js @@ -1,7 +1,7 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); -var i; -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i}); } coll.createIndex({a: 1}); diff --git a/src/go/tests/doc/script/profile/count.js b/src/go/tests/doc/script/profile/count.js index 2fbf6789..c547b787 100644 --- a/src/go/tests/doc/script/profile/count.js +++ b/src/go/tests/doc/script/profile/count.js @@ -1,6 +1,7 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i}); } diff --git a/src/go/tests/doc/script/profile/count_with_query.js b/src/go/tests/doc/script/profile/count_with_query.js index 8d0ecb65..589e7ffa 100644 --- a/src/go/tests/doc/script/profile/count_with_query.js +++ b/src/go/tests/doc/script/profile/count_with_query.js @@ -1,6 +1,7 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i}); } diff --git a/src/go/tests/doc/script/profile/delete.js b/src/go/tests/doc/script/profile/delete.js index 5ab8155f..5261e123 100644 --- a/src/go/tests/doc/script/profile/delete.js +++ b/src/go/tests/doc/script/profile/delete.js @@ -1,9 +1,9 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i, b: i}); } - coll.createIndex({a: 1}); -coll.remove({a: {$gte: 2}, b: {$gte: 2}}, {justOne: true}) +coll.remove({a: {$gte: 2}, b: {$gte: 2}}, {justOne: true}); diff --git a/src/go/tests/doc/script/profile/delete_all.js b/src/go/tests/doc/script/profile/delete_all.js index d612bde4..4f117cc4 100644 --- a/src/go/tests/doc/script/profile/delete_all.js +++ b/src/go/tests/doc/script/profile/delete_all.js @@ -1,9 +1,9 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i, b: i}); } - coll.createIndex({a: 1}); -coll.remove({a: {$gte: 2}, b: {$gte: 2}}) +coll.remove({a: {$gte: 2}, b: {$gte: 2}}); diff --git a/src/go/tests/doc/script/profile/distinct.js b/src/go/tests/doc/script/profile/distinct.js index 14ab2299..18b4ab69 100644 --- a/src/go/tests/doc/script/profile/distinct.js +++ b/src/go/tests/doc/script/profile/distinct.js @@ -1,7 +1,7 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); -var i; -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i % 5, b: i}); } coll.createIndex({b: 1}); diff --git a/src/go/tests/doc/script/profile/eval.js b/src/go/tests/doc/script/profile/eval.js index fb3c07d9..a34d7db4 100644 --- a/src/go/tests/doc/script/profile/eval.js +++ b/src/go/tests/doc/script/profile/eval.js @@ -1 +1 @@ -db.eval("db") +db.eval("1"); diff --git a/src/go/tests/doc/script/profile/explain.js b/src/go/tests/doc/script/profile/explain.js index fcf81bce..560c71e3 100644 --- a/src/go/tests/doc/script/profile/explain.js +++ b/src/go/tests/doc/script/profile/explain.js @@ -1,3 +1,3 @@ -var coll = db.coll +var coll = db.coll; -coll.find().explain() +coll.find().explain(); diff --git a/src/go/tests/doc/script/profile/find.js b/src/go/tests/doc/script/profile/find.js index e13d79f1..30f0ea82 100644 --- a/src/go/tests/doc/script/profile/find.js +++ b/src/go/tests/doc/script/profile/find.js @@ -1,10 +1,9 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); -coll.createIndex({a: 1}) - -var i; -for (i = 0; i < 10; ++i) { - coll.insert({a: i % 5}); +for (var i = 0; i < 10; ++i) { + coll.insert({k: i % 5}); } +coll.createIndex({k: 1}); -coll.find({a: 1}).pretty() +coll.find({k: 1}).toArray(); diff --git a/src/go/tests/doc/script/profile/find_andrii.js b/src/go/tests/doc/script/profile/find_andrii.js index f97f1ad0..37e89f56 100644 --- a/src/go/tests/doc/script/profile/find_andrii.js +++ b/src/go/tests/doc/script/profile/find_andrii.js @@ -1,4 +1,7 @@ -db.coll.find({ +var coll = db.coll; +coll.drop(); + +coll.find({ $and: [ { k: { $gt: 1 } @@ -13,8 +16,8 @@ db.coll.find({ }, { pad: { $in: [/9$/, /7$/, /5$/, /3$/] } - }, + } ] } ] -}).sort({ k: -1 }).limit(100); +}).sort({ k: -1 }).limit(100).toArray(); diff --git a/src/go/tests/doc/script/profile/find_empty.js b/src/go/tests/doc/script/profile/find_empty.js index 049122cc..63d62c1c 100644 --- a/src/go/tests/doc/script/profile/find_empty.js +++ b/src/go/tests/doc/script/profile/find_empty.js @@ -1,3 +1,3 @@ -var coll = db.coll +var coll = db.coll; -coll.find() +coll.find().toArray(); diff --git a/src/go/tests/doc/script/profile/find_with_sort.js b/src/go/tests/doc/script/profile/find_with_sort.js new file mode 100644 index 00000000..4beed84a --- /dev/null +++ b/src/go/tests/doc/script/profile/find_with_sort.js @@ -0,0 +1,9 @@ +var coll = db.coll; +coll.drop(); + +for (var i = 0; i < 10; ++i) { + coll.insert({c: i % 5, b: i}); +} +coll.createIndex({c: 1}); + +coll.find({c: 1}).sort({ b: -1 }).toArray(); diff --git a/src/go/tests/doc/script/profile/findandmodify.js b/src/go/tests/doc/script/profile/findandmodify.js index 7b8f8086..47500631 100644 --- a/src/go/tests/doc/script/profile/findandmodify.js +++ b/src/go/tests/doc/script/profile/findandmodify.js @@ -1,4 +1,4 @@ -var coll = db.coll +var coll = db.coll; coll.drop(); for (var i = 0; i < 3; i++) { diff --git a/src/go/tests/doc/script/profile/geonear.js b/src/go/tests/doc/script/profile/geonear.js index 714a2438..66f49dff 100644 --- a/src/go/tests/doc/script/profile/geonear.js +++ b/src/go/tests/doc/script/profile/geonear.js @@ -1,8 +1,7 @@ -var coll = db.coll +var coll = db.coll; coll.drop(); -var i; -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i, loc: {type: "Point", coordinates: [i, i]}}); } coll.createIndex({loc: "2dsphere"}); diff --git a/src/go/tests/doc/script/profile/getmore.js b/src/go/tests/doc/script/profile/getmore.js new file mode 100644 index 00000000..611f12ad --- /dev/null +++ b/src/go/tests/doc/script/profile/getmore.js @@ -0,0 +1,14 @@ +var coll = db.coll; +coll.drop(); + +coll.createIndex({a: 1}); + +for (var i = 0; i < 10; ++i) { + coll.insert({a: i % 5}); +} + +var cursor = coll.find({a: {$gt: 0}}).sort({a: 1}).batchSize(2); +cursor.next(); // Perform initial query and consume first of 2 docs returned. +cursor.next(); // Consume second of 2 docs from initial query. +cursor.next(); // getMore performed, leaving open cursor. +cursor.itcount(); // Exhaust the cursor. diff --git a/src/go/tests/doc/script/profile/group.js b/src/go/tests/doc/script/profile/group.js index a15d8426..5a79c0f0 100644 --- a/src/go/tests/doc/script/profile/group.js +++ b/src/go/tests/doc/script/profile/group.js @@ -1,8 +1,7 @@ -var coll = db.coll +var coll = db.coll; coll.drop(); -var i; -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i, b: i % 5}); } coll.createIndex({b: -1}); diff --git a/src/go/tests/doc/script/profile/insert.js b/src/go/tests/doc/script/profile/insert.js index 5293c99f..f9720216 100644 --- a/src/go/tests/doc/script/profile/insert.js +++ b/src/go/tests/doc/script/profile/insert.js @@ -1,4 +1,5 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); var doc = {_id: 1}; var result = coll.insert(doc); diff --git a/src/go/tests/doc/script/profile/mapreduce.js b/src/go/tests/doc/script/profile/mapreduce.js index 80ebd00a..902d24f1 100644 --- a/src/go/tests/doc/script/profile/mapreduce.js +++ b/src/go/tests/doc/script/profile/mapreduce.js @@ -1,4 +1,4 @@ -var coll = db.coll +var coll = db.coll; coll.drop(); var mapFunction = function() { @@ -9,7 +9,6 @@ var reduceFunction = function(a, b) { return Array.sum(b); }; -coll.drop(); for (var i = 0; i < 3; i++) { coll.insert({a: i, b: i}); } diff --git a/src/go/tests/doc/script/profile/update.js b/src/go/tests/doc/script/profile/update.js index 13e04a53..50586bf4 100644 --- a/src/go/tests/doc/script/profile/update.js +++ b/src/go/tests/doc/script/profile/update.js @@ -1,7 +1,7 @@ -var coll = db.coll +var coll = db.coll; +coll.drop(); -var i; -for (i = 0; i < 10; ++i) { +for (var i = 0; i < 10; ++i) { coll.insert({a: i}); } coll.createIndex({a: 1}); diff --git a/src/go/tests/expect/available_metrics/available_metrics b/src/go/tests/expect/available_metrics/available_metrics index c512073d..db9bf2fc 100755 --- a/src/go/tests/expect/available_metrics/available_metrics +++ b/src/go/tests/expect/available_metrics/available_metrics @@ -5,11 +5,11 @@ "ResponseLength": 385 }, "3.0.15": { - "Millis": 2, + "Millis": 0, "ResponseLength": 385 }, "3.2.16": { - "Millis": 2, + "Millis": 0, "ResponseLength": 388 }, "3.4.7": { @@ -63,12 +63,12 @@ "ResponseLength": 47 }, "3.4.7": { - "DocsExamined": 0, + "DocsExamined": 10, "Millis": 0, "ResponseLength": 29 }, "3.5.11": { - "DocsExamined": 0, + "DocsExamined": 10, "Millis": 0, "ResponseLength": 29 } @@ -84,12 +84,12 @@ "Millis": 1 }, "3.4.7": { - "DocsExamined": 4, + "DocsExamined": 1, "Millis": 0 }, "3.5.11": { - "DocsExamined": 4, - "Millis": 0 + "DocsExamined": 1, + "Millis": 1 } }, "delete_all": { @@ -97,69 +97,69 @@ "Millis": 0 }, "3.0.15": { - "Millis": 1 + "Millis": 0 }, "3.2.16": { - "Millis": 0 + "Millis": 1 }, "3.4.7": { - "DocsExamined": 39, - "Millis": 0 + "DocsExamined": 8, + "Millis": 1 }, "3.5.11": { - "DocsExamined": 39, - "Millis": 0 + "DocsExamined": 8, + "Millis": 1 } }, "distinct": { "2.6.12": { "Millis": 0, - "ResponseLength": 254 + "ResponseLength": 199 }, "3.0.15": { "Millis": 0, - "ResponseLength": 261 + "ResponseLength": 206 }, "3.2.16": { "Millis": 0, - "ResponseLength": 264 + "ResponseLength": 209 }, "3.4.7": { - "DocsExamined": 10, + "DocsExamined": 5, "Millis": 0, - "ResponseLength": 145 + "ResponseLength": 90 }, "3.5.11": { - "DocsExamined": 10, + "DocsExamined": 5, "Millis": 0, - "ResponseLength": 145 + "ResponseLength": 90 } }, "eval": { "2.6.12": { - "Millis": 65, - "ResponseLength": 108 + "Millis": 43, + "ResponseLength": 53 }, "3.0.15": { - "Millis": 35, - "ResponseLength": 108 + "Millis": 37, + "ResponseLength": 53 }, "3.2.16": { - "Millis": 88, - "ResponseLength": 93 + "Millis": 56, + "ResponseLength": 38 }, "3.4.7": { - "Millis": 91, - "ResponseLength": 93 + "Millis": 48, + "ResponseLength": 38 }, "3.5.11": { - "Millis": 47, - "ResponseLength": 93 + "Millis": 40, + "ResponseLength": 38 } }, "explain": { "2.6.12": { - "NscannedObjects": 44, + "NscannedObjects": 10, "Millis": 0, "Nreturned": 1, "ResponseLength": 583 @@ -183,63 +183,63 @@ }, "find": { "2.6.12": { - "NscannedObjects": 6, + "NscannedObjects": 2, "Millis": 0, - "Nreturned": 6, - "ResponseLength": 251 + "Nreturned": 2, + "ResponseLength": 86 }, "3.0.15": { - "NscannedObjects": 6, + "NscannedObjects": 2, "Millis": 0, - "Nreturned": 6, - "ResponseLength": 251 + "Nreturned": 2, + "ResponseLength": 86 }, "3.2.16": { - "DocsExamined": 6, - "Millis": 0, - "Nreturned": 6, - "ResponseLength": 349 + "DocsExamined": 2, + "Millis": 1, + "Nreturned": 2, + "ResponseLength": 172 }, "3.4.7": { - "DocsExamined": 6, + "DocsExamined": 2, "Millis": 0, - "Nreturned": 6, - "ResponseLength": 331 + "Nreturned": 2, + "ResponseLength": 154 }, "3.5.11": { - "DocsExamined": 6, - "Millis": 1, - "Nreturned": 6, - "ResponseLength": 331 + "DocsExamined": 2, + "Millis": 0, + "Nreturned": 2, + "ResponseLength": 154 } }, "find_andrii": { "2.6.12": { - "NscannedObjects": 98, + "NscannedObjects": 0, "Millis": 0, "Nreturned": 0, "ResponseLength": 20 }, "3.0.15": { - "NscannedObjects": 98, + "NscannedObjects": 0, "Millis": 0, "Nreturned": 0, "ResponseLength": 20 }, "3.2.16": { - "DocsExamined": 49, + "DocsExamined": 0, "Millis": 0, "Nreturned": 0, "ResponseLength": 100 }, "3.4.7": { - "DocsExamined": 49, + "DocsExamined": 0, "Millis": 0, "Nreturned": 0, "ResponseLength": 82 }, "3.5.11": { - "DocsExamined": 49, + "DocsExamined": 0, "Millis": 0, "Nreturned": 0, "ResponseLength": 82 @@ -247,40 +247,40 @@ }, "find_empty": { "2.6.12": { - "NscannedObjects": 49, + "NscannedObjects": 0, "Millis": 0, - "Nreturned": 49, - "ResponseLength": 1846 + "Nreturned": 0, + "ResponseLength": 20 }, "3.0.15": { - "NscannedObjects": 49, + "NscannedObjects": 0, "Millis": 0, - "Nreturned": 49, - "ResponseLength": 1846 + "Nreturned": 0, + "ResponseLength": 20 }, "3.2.16": { - "DocsExamined": 49, + "DocsExamined": 0, "Millis": 0, - "Nreturned": 49, - "ResponseLength": 2112 + "Nreturned": 0, + "ResponseLength": 100 }, "3.4.7": { - "DocsExamined": 49, + "DocsExamined": 0, "Millis": 0, - "Nreturned": 49, - "ResponseLength": 2094 + "Nreturned": 0, + "ResponseLength": 82 }, "3.5.11": { - "DocsExamined": 49, + "DocsExamined": 0, "Millis": 0, - "Nreturned": 49, - "ResponseLength": 2094 + "Nreturned": 0, + "ResponseLength": 82 } }, "findandmodify": { "2.6.12": { "NscannedObjects": 1, - "Millis": 0, + "Millis": 6, "ResponseLength": 131 }, "3.0.15": { @@ -290,17 +290,17 @@ }, "3.2.16": { "DocsExamined": 3, - "Millis": 0, + "Millis": 1, "ResponseLength": 116 }, "3.4.7": { "DocsExamined": 3, - "Millis": 0, + "Millis": 1, "ResponseLength": 116 }, "3.5.11": { "DocsExamined": 3, - "Millis": 0, + "Millis": 1, "ResponseLength": 116 } }, @@ -310,45 +310,45 @@ "ResponseLength": 1406 }, "3.0.15": { - "Millis": 3, + "Millis": 2, "ResponseLength": 1398 }, "3.2.16": { - "Millis": 8, + "Millis": 10, "ResponseLength": 1401 }, "3.4.7": { "DocsExamined": 10, - "Millis": 11, + "Millis": 13, "ResponseLength": 1383 }, "3.5.11": { "DocsExamined": 10, - "Millis": 7, + "Millis": 11, "ResponseLength": 1383 } }, "group": { "2.6.12": { - "Millis": 77, + "Millis": 36, "ResponseLength": 135 }, "3.0.15": { - "Millis": 54, + "Millis": 26, "ResponseLength": 139 }, "3.2.16": { - "Millis": 74, + "Millis": 31, "ResponseLength": 142 }, "3.4.7": { "DocsExamined": 2, - "Millis": 77, + "Millis": 31, "ResponseLength": 124 }, "3.5.11": { "DocsExamined": 2, - "Millis": 68, + "Millis": 24, "ResponseLength": 124 } }, @@ -357,42 +357,42 @@ "Millis": 0 }, "3.0.15": { - "Millis": 0 + "Millis": 4 }, "3.2.16": { - "Millis": 0, + "Millis": 11, "ResponseLength": 25 }, "3.4.7": { - "Millis": 0, + "Millis": 11, "ResponseLength": 29 }, "3.5.11": { - "Millis": 0, + "Millis": 11, "ResponseLength": 29 } }, "mapreduce": { "2.6.12": { - "Millis": 33, + "Millis": 29, "ResponseLength": 233 }, "3.0.15": { - "Millis": 26, + "Millis": 21, "ResponseLength": 233 }, "3.2.16": { - "Millis": 31, + "Millis": 41, "ResponseLength": 218 }, "3.4.7": { "DocsExamined": 3, - "Millis": 43, + "Millis": 21, "ResponseLength": 218 }, "3.5.11": { "DocsExamined": 3, - "Millis": 35, + "Millis": 26, "ResponseLength": 218 } }, @@ -407,7 +407,7 @@ }, "3.2.16": { "DocsExamined": 1, - "Millis": 0 + "Millis": 2 }, "3.4.7": { "DocsExamined": 1, diff --git a/src/go/tests/expect/stats_all/sum.json b/src/go/tests/expect/stats_all/sum.json index 25e060f5..86d17d30 100755 --- a/src/go/tests/expect/stats_all/sum.json +++ b/src/go/tests/expect/stats_all/sum.json @@ -5,8 +5,8 @@ "Operation": "AGGREGATE", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"aggregate\":\"coll\",\"pipeline\":[{\"$match\":{\"a\":{\"$gte\":2}}}],\"cursor\":{}}}\n", "Fingerprint": "AGGREGATE coll a", - "FirstSeen": "2017-08-20T15:39:14.658Z", - "LastSeen": "2017-08-20T15:39:47.203Z", + "FirstSeen": "2017-10-15T01:54:08.661Z", + "LastSeen": "2017-10-15T01:54:52.564Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -27,8 +27,8 @@ ], "QueryTime": [ 0, - 2, - 2, + 0, + 0, 0, 2 ], @@ -46,8 +46,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{},\"fields\":{}}}\n", "Fingerprint": "COUNT coll", - "FirstSeen": "2017-08-20T15:39:14.823Z", - "LastSeen": "2017-08-20T15:39:47.396Z", + "FirstSeen": "2017-10-15T01:54:08.889Z", + "LastSeen": "2017-10-15T01:54:52.844Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -87,49 +87,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{\"a\":{\"$gt\":5}},\"fields\":{}}}\n", "Fingerprint": "COUNT coll a", - "FirstSeen": "2017-08-20T15:39:14.971Z", - "LastSeen": "2017-08-20T15:39:47.573Z", - "TableScan": false, - "Count": 5, - "BlockedTime": null, - "LockTime": null, - "NReturned": [ - 0, - 0, - 0, - 0, - 0 - ], - "NScanned": [ - 0, - 0, - 0, - 0, - 0 - ], - "QueryTime": [ - 0, - 0, - 0, - 0, - 0 - ], - "ResponseLength": [ - 48, - 44, - 47, - 29, - 29 - ] - }, - { - "ID": "e4122a58c99ab0a4020ce7d195c5a8cb", - "Namespace": "test.coll", - "Operation": "DISTINCT", - "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"distinct\":\"coll\",\"key\":\"a\",\"query\":{\"b\":{\"$gte\":5}}}}\n", - "Fingerprint": "DISTINCT coll a,b", - "FirstSeen": "2017-08-20T15:39:15.323Z", - "LastSeen": "2017-08-20T15:39:47.927Z", + "FirstSeen": "2017-10-15T01:54:09.039Z", + "LastSeen": "2017-10-15T01:54:53.078Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -156,21 +115,62 @@ 0 ], "ResponseLength": [ - 254, - 261, - 264, - 145, - 145 + 48, + 44, + 47, + 29, + 29 + ] + }, + { + "ID": "e4122a58c99ab0a4020ce7d195c5a8cb", + "Namespace": "test.coll", + "Operation": "DISTINCT", + "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"distinct\":\"coll\",\"key\":\"a\",\"query\":{\"b\":{\"$gte\":5}}}}\n", + "Fingerprint": "DISTINCT coll a,b", + "FirstSeen": "2017-10-15T01:54:09.687Z", + "LastSeen": "2017-10-15T01:54:53.874Z", + "TableScan": false, + "Count": 5, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 0, + 0, + 0, + 0, + 0 + ], + "NScanned": [ + 0, + 0, + 0, + 5, + 5 + ], + "QueryTime": [ + 0, + 0, + 0, + 0, + 0 + ], + "ResponseLength": [ + 199, + 206, + 209, + 90, + 90 ] }, { "ID": "a6782ae38ef891d5506341a4b0ab2747", "Namespace": "test", "Operation": "EVAL", - "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"$eval\":\"db\"}}\n", + "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"$eval\":\"1\"}}\n", "Fingerprint": "EVAL", - "FirstSeen": "2017-09-05T19:39:24.522Z", - "LastSeen": "2017-09-05T19:40:00.171Z", + "FirstSeen": "2017-10-15T01:54:09.89Z", + "LastSeen": "2017-10-15T01:54:54.085Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -190,18 +190,18 @@ 0 ], "QueryTime": [ - 65, - 35, - 88, - 91, - 47 + 43, + 37, + 56, + 48, + 40 ], "ResponseLength": [ - 108, - 108, - 93, - 93, - 93 + 53, + 53, + 38, + 38, + 38 ] }, { @@ -210,8 +210,8 @@ "Operation": "EXPLAIN", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{},\"$explain\":true}}\n", "Fingerprint": "EXPLAIN", - "FirstSeen": "2017-09-05T19:39:24.666Z", - "LastSeen": "2017-09-05T19:40:00.433Z", + "FirstSeen": "2017-10-15T01:54:10.058Z", + "LastSeen": "2017-10-15T01:54:54.257Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -224,7 +224,7 @@ 0 ], "NScanned": [ - 44, + 10, 0, 0, 0, @@ -251,8 +251,8 @@ "Operation": "FINDANDMODIFY", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"findandmodify\":\"coll\",\"query\":{\"a\":2},\"update\":{\"$inc\":{\"b\":1}}},\"updateobj\":{\"$inc\":{\"b\":1}}}\n", "Fingerprint": "FINDANDMODIFY coll a", - "FirstSeen": "2017-08-20T15:39:15.903Z", - "LastSeen": "2017-08-20T15:39:48.636Z", + "FirstSeen": "2017-10-15T01:54:11.011Z", + "LastSeen": "2017-10-15T01:54:55.391Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -272,11 +272,11 @@ 3 ], "QueryTime": [ + 6, 0, - 0, - 0, - 0, - 0 + 1, + 1, + 1 ], "ResponseLength": [ 131, @@ -292,90 +292,8 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\"}\n", "Fingerprint": "FIND coll", - "FirstSeen": "2017-08-20T15:39:15.75Z", - "LastSeen": "2017-08-20T15:39:48.429Z", - "TableScan": false, - "Count": 5, - "BlockedTime": null, - "LockTime": null, - "NReturned": [ - 49, - 49, - 49, - 49, - 49 - ], - "NScanned": [ - 49, - 49, - 49, - 49, - 49 - ], - "QueryTime": [ - 0, - 0, - 0, - 0, - 0 - ], - "ResponseLength": [ - 1846, - 1846, - 2112, - 2094, - 2094 - ] - }, - { - "ID": "fe0bf975a044fe47fd32b835ceba612d", - "Namespace": "test.coll", - "Operation": "FIND", - "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"a\":1}}\n", - "Fingerprint": "FIND coll a", - "FirstSeen": "2017-08-20T15:39:15.457Z", - "LastSeen": "2017-08-20T15:39:48.107Z", - "TableScan": false, - "Count": 5, - "BlockedTime": null, - "LockTime": null, - "NReturned": [ - 6, - 6, - 6, - 6, - 6 - ], - "NScanned": [ - 6, - 6, - 6, - 6, - 6 - ], - "QueryTime": [ - 0, - 0, - 0, - 0, - 1 - ], - "ResponseLength": [ - 251, - 251, - 349, - 331, - 331 - ] - }, - { - "ID": "02104210d67fe680273784d833f86831", - "Namespace": "test.coll", - "Operation": "FIND", - "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{\"$and\":[{\"k\":{\"$gt\":1}},{\"k\":{\"$lt\":2}},{\"$or\":[{\"c\":{\"$in\":[\"/^0/\",\"/^2/\",\"/^4/\",\"/^6/\"]}},{\"pad\":{\"$in\":[\"/9$/\",\"/7$/\",\"/5$/\",\"/3$/\"]}}]}]},\"orderby\":{\"k\":-1}}}\n", - "Fingerprint": "FIND coll c,k,pad", - "FirstSeen": "2017-08-20T15:39:15.616Z", - "LastSeen": "2017-08-20T15:39:48.277Z", + "FirstSeen": "2017-10-15T01:54:10.63Z", + "LastSeen": "2017-10-15T01:54:54.87Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -388,11 +306,11 @@ 0 ], "NScanned": [ - 98, - 98, - 49, - 49, - 49 + 0, + 0, + 0, + 0, + 0 ], "QueryTime": [ 0, @@ -409,14 +327,137 @@ 82 ] }, + { + "ID": "20fe80188ec82c9d3c3dcf3f4817f8f9", + "Namespace": "test.coll", + "Operation": "FIND", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{\"c\":1},\"orderby\":{\"b\":-1}}}\n", + "Fingerprint": "FIND coll b,c", + "FirstSeen": "2017-10-15T01:54:10.817Z", + "LastSeen": "2017-10-15T01:54:55.111Z", + "TableScan": false, + "Count": 5, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2, + 2, + 2, + 2, + 2 + ], + "NScanned": [ + 2, + 2, + 2, + 2, + 2 + ], + "QueryTime": [ + 0, + 0, + 0, + 0, + 0 + ], + "ResponseLength": [ + 108, + 108, + 194, + 176, + 176 + ] + }, + { + "ID": "02104210d67fe680273784d833f86831", + "Namespace": "test.coll", + "Operation": "FIND", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{\"$and\":[{\"k\":{\"$gt\":1}},{\"k\":{\"$lt\":2}},{\"$or\":[{\"c\":{\"$in\":[\"/^0/\",\"/^2/\",\"/^4/\",\"/^6/\"]}},{\"pad\":{\"$in\":[\"/9$/\",\"/7$/\",\"/5$/\",\"/3$/\"]}}]}]},\"orderby\":{\"k\":-1}}}\n", + "Fingerprint": "FIND coll c,k,pad", + "FirstSeen": "2017-10-15T01:54:10.474Z", + "LastSeen": "2017-10-15T01:54:54.693Z", + "TableScan": false, + "Count": 5, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 0, + 0, + 0, + 0, + 0 + ], + "NScanned": [ + 0, + 0, + 0, + 0, + 0 + ], + "QueryTime": [ + 0, + 0, + 0, + 0, + 0 + ], + "ResponseLength": [ + 20, + 20, + 100, + 82, + 82 + ] + }, + { + "ID": "5efe4738d807c74b3980de76c37a0870", + "Namespace": "test.coll", + "Operation": "FIND", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"k\":1}}\n", + "Fingerprint": "FIND coll k", + "FirstSeen": "2017-10-15T01:54:10.277Z", + "LastSeen": "2017-10-15T01:54:54.507Z", + "TableScan": false, + "Count": 5, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2, + 2, + 2, + 2, + 2 + ], + "NScanned": [ + 2, + 2, + 2, + 2, + 2 + ], + "QueryTime": [ + 0, + 0, + 1, + 0, + 0 + ], + "ResponseLength": [ + 86, + 86, + 172, + 154, + 154 + ] + }, { "ID": "c70403cbd55ffbb07f08c0cb77a24b19", "Namespace": "test.coll", "Operation": "GEONEAR", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"geoNear\":\"coll\",\"near\":{\"type\":\"Point\",\"coordinates\":[1,1]},\"spherical\":true}}\n", "Fingerprint": "GEONEAR coll", - "FirstSeen": "2017-08-20T15:39:16.061Z", - "LastSeen": "2017-08-20T15:39:48.842Z", + "FirstSeen": "2017-10-15T01:54:11.181Z", + "LastSeen": "2017-10-15T01:54:55.701Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -437,10 +478,10 @@ ], "QueryTime": [ 1, - 3, - 8, - 11, - 7 + 2, + 10, + 13, + 11 ], "ResponseLength": [ 1406, @@ -450,14 +491,55 @@ 1383 ] }, + { + "ID": "db759bfd83441deecc71382323041ce6", + "Namespace": "test.coll", + "Operation": "GETMORE", + "Query": "{\"ns\":\"test.coll\",\"op\":\"getmore\",\"query\":{\"a\":{\"$gt\":0}}}\n", + "Fingerprint": "GETMORE coll", + "FirstSeen": "2017-10-15T01:54:11.36Z", + "LastSeen": "2017-10-15T01:54:56.186Z", + "TableScan": false, + "Count": 5, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2, + 0, + 0, + 2, + 0 + ], + "NScanned": [ + 0, + 0, + 0, + 2, + 0 + ], + "QueryTime": [ + 0, + 0, + 0, + 0, + 0 + ], + "ResponseLength": [ + 86, + 20, + 81, + 153, + 81 + ] + }, { "ID": "ca8bb19386488570447f5753741fb494", "Namespace": "test.coll", "Operation": "GROUP", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"group\":{\"key\":{\"a\":1,\"b\":1},\"cond\":{\"b\":3},\"initial\":{},\"ns\":\"coll\",\"$reduce\":\"\"}}}\n", "Fingerprint": "GROUP coll a,b", - "FirstSeen": "2017-08-20T15:39:16.325Z", - "LastSeen": "2017-08-20T15:39:49.276Z", + "FirstSeen": "2017-10-15T01:54:11.599Z", + "LastSeen": "2017-10-15T01:54:56.478Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -477,11 +559,11 @@ 2 ], "QueryTime": [ - 77, - 54, - 74, - 77, - 68 + 36, + 26, + 31, + 31, + 24 ], "ResponseLength": [ 135, @@ -497,8 +579,8 @@ "Operation": "INSERT", "Query": "{\"ns\":\"test.coll\",\"op\":\"insert\",\"query\":{\"_id\":1}}\n", "Fingerprint": "INSERT coll", - "FirstSeen": "2017-08-20T15:39:16.473Z", - "LastSeen": "2017-08-20T15:39:49.44Z", + "FirstSeen": "2017-10-15T01:54:11.737Z", + "LastSeen": "2017-10-15T01:54:56.693Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -519,10 +601,10 @@ ], "QueryTime": [ 0, - 0, - 0, - 0, - 0 + 4, + 11, + 11, + 11 ], "ResponseLength": [ 0, @@ -538,8 +620,8 @@ "Operation": "MAPREDUCE", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"mapreduce\":\"coll\",\"map\":\"\",\"reduce\":\"\",\"query\":{\"a\":{\"$gte\":0}},\"out\":{\"inline\":1}}}\n", "Fingerprint": "MAPREDUCE coll a", - "FirstSeen": "2017-08-20T15:39:16.701Z", - "LastSeen": "2017-08-20T15:39:49.68Z", + "FirstSeen": "2017-10-15T01:54:11.959Z", + "LastSeen": "2017-10-15T01:54:56.951Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -559,11 +641,11 @@ 3 ], "QueryTime": [ - 33, - 26, - 31, - 43, - 35 + 29, + 21, + 41, + 21, + 26 ], "ResponseLength": [ 233, @@ -579,8 +661,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-20T15:39:15.126Z", - "LastSeen": "2017-08-30T10:55:19.142Z", + "FirstSeen": "2017-10-15T01:54:09.246Z", + "LastSeen": "2017-10-15T01:54:53.615Z", "TableScan": false, "Count": 10, "BlockedTime": null, @@ -601,25 +683,25 @@ 0, 0, 0, - 4, - 4, + 1, + 1, 0, 0, 0, - 39, - 39 + 8, + 8 ], "QueryTime": [ 0, 0, 1, 0, - 0, - 0, 1, 0, 0, - 0 + 1, + 1, + 1 ], "ResponseLength": [ 0, @@ -640,8 +722,8 @@ "Operation": "UPDATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"update\",\"query\":{\"a\":{\"$gte\":2}},\"updateobj\":{\"$set\":{\"c\":1},\"$inc\":{\"a\":-10}}}\n", "Fingerprint": "UPDATE coll a", - "FirstSeen": "2017-08-20T15:39:16.921Z", - "LastSeen": "2017-08-20T15:39:49.855Z", + "FirstSeen": "2017-10-15T01:54:12.161Z", + "LastSeen": "2017-10-15T01:54:57.231Z", "TableScan": false, "Count": 5, "BlockedTime": null, @@ -663,7 +745,7 @@ "QueryTime": [ 0, 0, - 0, + 2, 0, 0 ], diff --git a/src/go/tests/expect/stats_single/aggregate_2.6.12 b/src/go/tests/expect/stats_single/aggregate_2.6.12 index 124f954a..d64f3360 100755 --- a/src/go/tests/expect/stats_single/aggregate_2.6.12 +++ b/src/go/tests/expect/stats_single/aggregate_2.6.12 @@ -5,8 +5,8 @@ "Operation": "AGGREGATE", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"aggregate\":\"coll\",\"pipeline\":[{\"$match\":{\"a\":{\"$gte\":2}}}],\"cursor\":{}}}\n", "Fingerprint": "AGGREGATE coll a", - "FirstSeen": "2017-08-20T15:39:14.658Z", - "LastSeen": "2017-08-20T15:39:14.658Z", + "FirstSeen": "2017-10-15T01:54:08.661Z", + "LastSeen": "2017-10-15T01:54:08.661Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/aggregate_3.0.15 b/src/go/tests/expect/stats_single/aggregate_3.0.15 index c1cbac26..bd727fed 100755 --- a/src/go/tests/expect/stats_single/aggregate_3.0.15 +++ b/src/go/tests/expect/stats_single/aggregate_3.0.15 @@ -5,8 +5,8 @@ "Operation": "AGGREGATE", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"aggregate\":\"coll\",\"pipeline\":[{\"$match\":{\"a\":{\"$gte\":2}}}],\"cursor\":{}}}\n", "Fingerprint": "AGGREGATE coll a", - "FirstSeen": "2017-08-20T15:39:20.858Z", - "LastSeen": "2017-08-20T15:39:20.858Z", + "FirstSeen": "2017-10-15T01:54:18.509Z", + "LastSeen": "2017-10-15T01:54:18.509Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 2 + 0 ], "ResponseLength": [ 385 diff --git a/src/go/tests/expect/stats_single/aggregate_3.2.16 b/src/go/tests/expect/stats_single/aggregate_3.2.16 index 363c2d50..7e85bb5c 100755 --- a/src/go/tests/expect/stats_single/aggregate_3.2.16 +++ b/src/go/tests/expect/stats_single/aggregate_3.2.16 @@ -5,8 +5,8 @@ "Operation": "AGGREGATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"aggregate\":\"coll\",\"pipeline\":[{\"$match\":{\"a\":{\"$gte\":2}}}],\"cursor\":{}}}\n", "Fingerprint": "AGGREGATE coll a", - "FirstSeen": "2017-08-20T15:39:29.915Z", - "LastSeen": "2017-08-20T15:39:29.915Z", + "FirstSeen": "2017-10-15T01:54:31.293Z", + "LastSeen": "2017-10-15T01:54:31.293Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 2 + 0 ], "ResponseLength": [ 388 diff --git a/src/go/tests/expect/stats_single/aggregate_3.4.7 b/src/go/tests/expect/stats_single/aggregate_3.4.7 index 266dfdfd..f71f3dfb 100755 --- a/src/go/tests/expect/stats_single/aggregate_3.4.7 +++ b/src/go/tests/expect/stats_single/aggregate_3.4.7 @@ -5,8 +5,8 @@ "Operation": "AGGREGATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"aggregate\":\"coll\",\"pipeline\":[{\"$match\":{\"a\":{\"$gte\":2}}}],\"cursor\":{}}}\n", "Fingerprint": "AGGREGATE coll a", - "FirstSeen": "2017-08-20T15:39:36.711Z", - "LastSeen": "2017-08-20T15:39:36.711Z", + "FirstSeen": "2017-10-15T01:54:41.948Z", + "LastSeen": "2017-10-15T01:54:41.948Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/aggregate_3.5.11 b/src/go/tests/expect/stats_single/aggregate_3.5.11 index 3f7369e7..45275f1e 100755 --- a/src/go/tests/expect/stats_single/aggregate_3.5.11 +++ b/src/go/tests/expect/stats_single/aggregate_3.5.11 @@ -5,8 +5,8 @@ "Operation": "AGGREGATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"aggregate\":\"coll\",\"pipeline\":[{\"$match\":{\"a\":{\"$gte\":2}}}],\"cursor\":{},\"$db\":\"test\"}}\n", "Fingerprint": "AGGREGATE coll a", - "FirstSeen": "2017-08-20T15:39:47.203Z", - "LastSeen": "2017-08-20T15:39:47.203Z", + "FirstSeen": "2017-10-15T01:54:52.564Z", + "LastSeen": "2017-10-15T01:54:52.564Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_2.6.12 b/src/go/tests/expect/stats_single/count_2.6.12 index 0880b743..12a31dcb 100755 --- a/src/go/tests/expect/stats_single/count_2.6.12 +++ b/src/go/tests/expect/stats_single/count_2.6.12 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{},\"fields\":{}}}\n", "Fingerprint": "COUNT coll", - "FirstSeen": "2017-08-20T15:39:14.823Z", - "LastSeen": "2017-08-20T15:39:14.823Z", + "FirstSeen": "2017-10-15T01:54:08.889Z", + "LastSeen": "2017-10-15T01:54:08.889Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_3.0.15 b/src/go/tests/expect/stats_single/count_3.0.15 index 54257535..3c772bd5 100755 --- a/src/go/tests/expect/stats_single/count_3.0.15 +++ b/src/go/tests/expect/stats_single/count_3.0.15 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{},\"fields\":{}}}\n", "Fingerprint": "COUNT coll", - "FirstSeen": "2017-08-20T15:39:20.982Z", - "LastSeen": "2017-08-20T15:39:20.982Z", + "FirstSeen": "2017-10-15T01:54:18.673Z", + "LastSeen": "2017-10-15T01:54:18.673Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_3.2.16 b/src/go/tests/expect/stats_single/count_3.2.16 index 1a2173f4..f4cf1838 100755 --- a/src/go/tests/expect/stats_single/count_3.2.16 +++ b/src/go/tests/expect/stats_single/count_3.2.16 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{},\"fields\":{}}}\n", "Fingerprint": "COUNT coll", - "FirstSeen": "2017-08-20T15:39:30.094Z", - "LastSeen": "2017-08-20T15:39:30.094Z", + "FirstSeen": "2017-10-15T01:54:31.529Z", + "LastSeen": "2017-10-15T01:54:31.529Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_3.4.7 b/src/go/tests/expect/stats_single/count_3.4.7 index 67e5e652..867ddd21 100755 --- a/src/go/tests/expect/stats_single/count_3.4.7 +++ b/src/go/tests/expect/stats_single/count_3.4.7 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{},\"fields\":{}}}\n", "Fingerprint": "COUNT coll", - "FirstSeen": "2017-08-20T15:39:36.897Z", - "LastSeen": "2017-08-20T15:39:36.897Z", + "FirstSeen": "2017-10-15T01:54:42.157Z", + "LastSeen": "2017-10-15T01:54:42.157Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_3.5.11 b/src/go/tests/expect/stats_single/count_3.5.11 index 97b3b320..a12b11fa 100755 --- a/src/go/tests/expect/stats_single/count_3.5.11 +++ b/src/go/tests/expect/stats_single/count_3.5.11 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{},\"fields\":{},\"$db\":\"test\"}}\n", "Fingerprint": "COUNT coll", - "FirstSeen": "2017-08-20T15:39:47.396Z", - "LastSeen": "2017-08-20T15:39:47.396Z", + "FirstSeen": "2017-10-15T01:54:52.844Z", + "LastSeen": "2017-10-15T01:54:52.844Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_with_query_2.6.12 b/src/go/tests/expect/stats_single/count_with_query_2.6.12 index e01cedac..54e52d62 100755 --- a/src/go/tests/expect/stats_single/count_with_query_2.6.12 +++ b/src/go/tests/expect/stats_single/count_with_query_2.6.12 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{\"a\":{\"$gt\":5}},\"fields\":{}}}\n", "Fingerprint": "COUNT coll a", - "FirstSeen": "2017-08-20T15:39:14.971Z", - "LastSeen": "2017-08-20T15:39:14.971Z", + "FirstSeen": "2017-10-15T01:54:09.039Z", + "LastSeen": "2017-10-15T01:54:09.039Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_with_query_3.0.15 b/src/go/tests/expect/stats_single/count_with_query_3.0.15 index 97f6f4bb..7d1e1d81 100755 --- a/src/go/tests/expect/stats_single/count_with_query_3.0.15 +++ b/src/go/tests/expect/stats_single/count_with_query_3.0.15 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{\"a\":{\"$gt\":5}},\"fields\":{}}}\n", "Fingerprint": "COUNT coll a", - "FirstSeen": "2017-08-20T15:39:21.124Z", - "LastSeen": "2017-08-20T15:39:21.124Z", + "FirstSeen": "2017-10-15T01:54:18.838Z", + "LastSeen": "2017-10-15T01:54:18.838Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_with_query_3.2.16 b/src/go/tests/expect/stats_single/count_with_query_3.2.16 index a8509d69..e6cbb692 100755 --- a/src/go/tests/expect/stats_single/count_with_query_3.2.16 +++ b/src/go/tests/expect/stats_single/count_with_query_3.2.16 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{\"a\":{\"$gt\":5}},\"fields\":{}}}\n", "Fingerprint": "COUNT coll a", - "FirstSeen": "2017-08-20T15:39:30.251Z", - "LastSeen": "2017-08-20T15:39:30.251Z", + "FirstSeen": "2017-10-15T01:54:31.756Z", + "LastSeen": "2017-10-15T01:54:31.756Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/count_with_query_3.4.7 b/src/go/tests/expect/stats_single/count_with_query_3.4.7 index a95352d5..5c8ced90 100755 --- a/src/go/tests/expect/stats_single/count_with_query_3.4.7 +++ b/src/go/tests/expect/stats_single/count_with_query_3.4.7 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{\"a\":{\"$gt\":5}},\"fields\":{}}}\n", "Fingerprint": "COUNT coll a", - "FirstSeen": "2017-08-20T15:39:37.077Z", - "LastSeen": "2017-08-20T15:39:37.077Z", + "FirstSeen": "2017-10-15T01:54:42.35Z", + "LastSeen": "2017-10-15T01:54:42.35Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 0 ], "NScanned": [ - 0 + 10 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/count_with_query_3.5.11 b/src/go/tests/expect/stats_single/count_with_query_3.5.11 index a91ee1fc..8a9523a4 100755 --- a/src/go/tests/expect/stats_single/count_with_query_3.5.11 +++ b/src/go/tests/expect/stats_single/count_with_query_3.5.11 @@ -5,8 +5,8 @@ "Operation": "COUNT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"count\":\"coll\",\"query\":{\"a\":{\"$gt\":5}},\"fields\":{},\"$db\":\"test\"}}\n", "Fingerprint": "COUNT coll a", - "FirstSeen": "2017-08-20T15:39:47.573Z", - "LastSeen": "2017-08-20T15:39:47.573Z", + "FirstSeen": "2017-10-15T01:54:53.078Z", + "LastSeen": "2017-10-15T01:54:53.078Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 0 ], "NScanned": [ - 0 + 10 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/delete_2.6.12 b/src/go/tests/expect/stats_single/delete_2.6.12 index 05e3cbcf..d4cf7929 100755 --- a/src/go/tests/expect/stats_single/delete_2.6.12 +++ b/src/go/tests/expect/stats_single/delete_2.6.12 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-20T15:39:15.126Z", - "LastSeen": "2017-08-20T15:39:15.126Z", + "FirstSeen": "2017-10-15T01:54:09.246Z", + "LastSeen": "2017-10-15T01:54:09.246Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/delete_3.0.15 b/src/go/tests/expect/stats_single/delete_3.0.15 index ee4236c0..58f2cbf9 100755 --- a/src/go/tests/expect/stats_single/delete_3.0.15 +++ b/src/go/tests/expect/stats_single/delete_3.0.15 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-20T15:39:21.265Z", - "LastSeen": "2017-08-20T15:39:21.265Z", + "FirstSeen": "2017-10-15T01:54:19.034Z", + "LastSeen": "2017-10-15T01:54:19.034Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/delete_3.2.16 b/src/go/tests/expect/stats_single/delete_3.2.16 index b38ca7b7..adcfc5c1 100755 --- a/src/go/tests/expect/stats_single/delete_3.2.16 +++ b/src/go/tests/expect/stats_single/delete_3.2.16 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-20T15:39:30.543Z", - "LastSeen": "2017-08-20T15:39:30.543Z", + "FirstSeen": "2017-10-15T01:54:32.02Z", + "LastSeen": "2017-10-15T01:54:32.02Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/delete_3.4.7 b/src/go/tests/expect/stats_single/delete_3.4.7 index ad373395..35449aa5 100755 --- a/src/go/tests/expect/stats_single/delete_3.4.7 +++ b/src/go/tests/expect/stats_single/delete_3.4.7 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-20T15:39:37.279Z", - "LastSeen": "2017-08-20T15:39:37.279Z", + "FirstSeen": "2017-10-15T01:54:42.612Z", + "LastSeen": "2017-10-15T01:54:42.612Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 0 ], "NScanned": [ - 4 + 1 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/delete_3.5.11 b/src/go/tests/expect/stats_single/delete_3.5.11 index 9f2b0511..fb21b711 100755 --- a/src/go/tests/expect/stats_single/delete_3.5.11 +++ b/src/go/tests/expect/stats_single/delete_3.5.11 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"command\":{\"q\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}},\"limit\":1}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-20T15:39:47.745Z", - "LastSeen": "2017-08-20T15:39:47.745Z", + "FirstSeen": "2017-10-15T01:54:53.333Z", + "LastSeen": "2017-10-15T01:54:53.333Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,10 +15,10 @@ 0 ], "NScanned": [ - 4 + 1 ], "QueryTime": [ - 0 + 1 ], "ResponseLength": [ 0 diff --git a/src/go/tests/expect/stats_single/delete_all_2.6.12 b/src/go/tests/expect/stats_single/delete_all_2.6.12 index d5138f09..2d739353 100755 --- a/src/go/tests/expect/stats_single/delete_all_2.6.12 +++ b/src/go/tests/expect/stats_single/delete_all_2.6.12 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-30T10:54:45.348Z", - "LastSeen": "2017-08-30T10:54:45.348Z", + "FirstSeen": "2017-10-15T01:54:09.463Z", + "LastSeen": "2017-10-15T01:54:09.463Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/delete_all_3.0.15 b/src/go/tests/expect/stats_single/delete_all_3.0.15 index 24ec050f..53995300 100755 --- a/src/go/tests/expect/stats_single/delete_all_3.0.15 +++ b/src/go/tests/expect/stats_single/delete_all_3.0.15 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-30T10:54:52.821Z", - "LastSeen": "2017-08-30T10:54:52.821Z", + "FirstSeen": "2017-10-15T01:54:19.206Z", + "LastSeen": "2017-10-15T01:54:19.206Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 1 + 0 ], "ResponseLength": [ 0 diff --git a/src/go/tests/expect/stats_single/delete_all_3.2.16 b/src/go/tests/expect/stats_single/delete_all_3.2.16 index be1f7b48..52b42285 100755 --- a/src/go/tests/expect/stats_single/delete_all_3.2.16 +++ b/src/go/tests/expect/stats_single/delete_all_3.2.16 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-30T10:55:02.238Z", - "LastSeen": "2017-08-30T10:55:02.238Z", + "FirstSeen": "2017-10-15T01:54:32.281Z", + "LastSeen": "2017-10-15T01:54:32.281Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 0 + 1 ], "ResponseLength": [ 0 diff --git a/src/go/tests/expect/stats_single/delete_all_3.4.7 b/src/go/tests/expect/stats_single/delete_all_3.4.7 index 466971bd..86ca7924 100755 --- a/src/go/tests/expect/stats_single/delete_all_3.4.7 +++ b/src/go/tests/expect/stats_single/delete_all_3.4.7 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"query\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-30T10:55:09.833Z", - "LastSeen": "2017-08-30T10:55:09.833Z", + "FirstSeen": "2017-10-15T01:54:42.82Z", + "LastSeen": "2017-10-15T01:54:42.82Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,10 +15,10 @@ 0 ], "NScanned": [ - 39 + 8 ], "QueryTime": [ - 0 + 1 ], "ResponseLength": [ 0 diff --git a/src/go/tests/expect/stats_single/delete_all_3.5.11 b/src/go/tests/expect/stats_single/delete_all_3.5.11 index 54be6162..ee49d55d 100755 --- a/src/go/tests/expect/stats_single/delete_all_3.5.11 +++ b/src/go/tests/expect/stats_single/delete_all_3.5.11 @@ -5,8 +5,8 @@ "Operation": "REMOVE", "Query": "{\"ns\":\"test.coll\",\"op\":\"remove\",\"command\":{\"q\":{\"a\":{\"$gte\":2},\"b\":{\"$gte\":2}},\"limit\":0}}\n", "Fingerprint": "REMOVE coll a,b", - "FirstSeen": "2017-08-30T10:55:19.142Z", - "LastSeen": "2017-08-30T10:55:19.142Z", + "FirstSeen": "2017-10-15T01:54:53.615Z", + "LastSeen": "2017-10-15T01:54:53.615Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,10 +15,10 @@ 0 ], "NScanned": [ - 39 + 8 ], "QueryTime": [ - 0 + 1 ], "ResponseLength": [ 0 diff --git a/src/go/tests/expect/stats_single/distinct_2.6.12 b/src/go/tests/expect/stats_single/distinct_2.6.12 index 92247985..f2e3106b 100755 --- a/src/go/tests/expect/stats_single/distinct_2.6.12 +++ b/src/go/tests/expect/stats_single/distinct_2.6.12 @@ -5,8 +5,8 @@ "Operation": "DISTINCT", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"distinct\":\"coll\",\"key\":\"a\",\"query\":{\"b\":{\"$gte\":5}}}}\n", "Fingerprint": "DISTINCT coll a,b", - "FirstSeen": "2017-08-20T15:39:15.323Z", - "LastSeen": "2017-08-20T15:39:15.323Z", + "FirstSeen": "2017-10-15T01:54:09.687Z", + "LastSeen": "2017-10-15T01:54:09.687Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -21,7 +21,7 @@ 0 ], "ResponseLength": [ - 254 + 199 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/distinct_3.0.15 b/src/go/tests/expect/stats_single/distinct_3.0.15 index 87e55c38..281541e3 100755 --- a/src/go/tests/expect/stats_single/distinct_3.0.15 +++ b/src/go/tests/expect/stats_single/distinct_3.0.15 @@ -5,8 +5,8 @@ "Operation": "DISTINCT", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"distinct\":\"coll\",\"key\":\"a\",\"query\":{\"b\":{\"$gte\":5}}}}\n", "Fingerprint": "DISTINCT coll a,b", - "FirstSeen": "2017-08-20T15:39:21.392Z", - "LastSeen": "2017-08-20T15:39:21.392Z", + "FirstSeen": "2017-10-15T01:54:19.38Z", + "LastSeen": "2017-10-15T01:54:19.38Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -21,7 +21,7 @@ 0 ], "ResponseLength": [ - 261 + 206 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/distinct_3.2.16 b/src/go/tests/expect/stats_single/distinct_3.2.16 index bead6771..9ea9a80d 100755 --- a/src/go/tests/expect/stats_single/distinct_3.2.16 +++ b/src/go/tests/expect/stats_single/distinct_3.2.16 @@ -5,8 +5,8 @@ "Operation": "DISTINCT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"distinct\":\"coll\",\"key\":\"a\",\"query\":{\"b\":{\"$gte\":5}}}}\n", "Fingerprint": "DISTINCT coll a,b", - "FirstSeen": "2017-08-20T15:39:30.748Z", - "LastSeen": "2017-08-20T15:39:30.748Z", + "FirstSeen": "2017-10-15T01:54:32.523Z", + "LastSeen": "2017-10-15T01:54:32.523Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -21,7 +21,7 @@ 0 ], "ResponseLength": [ - 264 + 209 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/distinct_3.4.7 b/src/go/tests/expect/stats_single/distinct_3.4.7 index 6bea585a..92c16a2a 100755 --- a/src/go/tests/expect/stats_single/distinct_3.4.7 +++ b/src/go/tests/expect/stats_single/distinct_3.4.7 @@ -5,8 +5,8 @@ "Operation": "DISTINCT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"distinct\":\"coll\",\"key\":\"a\",\"query\":{\"b\":{\"$gte\":5}}}}\n", "Fingerprint": "DISTINCT coll a,b", - "FirstSeen": "2017-08-20T15:39:37.511Z", - "LastSeen": "2017-08-20T15:39:37.511Z", + "FirstSeen": "2017-10-15T01:54:43.048Z", + "LastSeen": "2017-10-15T01:54:43.048Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,13 +15,13 @@ 0 ], "NScanned": [ - 10 + 5 ], "QueryTime": [ 0 ], "ResponseLength": [ - 145 + 90 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/distinct_3.5.11 b/src/go/tests/expect/stats_single/distinct_3.5.11 index 77458131..f8d9e57b 100755 --- a/src/go/tests/expect/stats_single/distinct_3.5.11 +++ b/src/go/tests/expect/stats_single/distinct_3.5.11 @@ -5,8 +5,8 @@ "Operation": "DISTINCT", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"distinct\":\"coll\",\"key\":\"a\",\"query\":{\"b\":{\"$gte\":5}},\"$db\":\"test\"}}\n", "Fingerprint": "DISTINCT coll a,b", - "FirstSeen": "2017-08-20T15:39:47.927Z", - "LastSeen": "2017-08-20T15:39:47.927Z", + "FirstSeen": "2017-10-15T01:54:53.874Z", + "LastSeen": "2017-10-15T01:54:53.874Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,13 +15,13 @@ 0 ], "NScanned": [ - 10 + 5 ], "QueryTime": [ 0 ], "ResponseLength": [ - 145 + 90 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/eval_2.6.12 b/src/go/tests/expect/stats_single/eval_2.6.12 index d69d5bda..af410ea5 100755 --- a/src/go/tests/expect/stats_single/eval_2.6.12 +++ b/src/go/tests/expect/stats_single/eval_2.6.12 @@ -3,10 +3,10 @@ "ID": "a6782ae38ef891d5506341a4b0ab2747", "Namespace": "test", "Operation": "EVAL", - "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"$eval\":\"db\"}}\n", + "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"$eval\":\"1\"}}\n", "Fingerprint": "EVAL", - "FirstSeen": "2017-09-05T19:39:24.522Z", - "LastSeen": "2017-09-05T19:39:24.522Z", + "FirstSeen": "2017-10-15T01:54:09.89Z", + "LastSeen": "2017-10-15T01:54:09.89Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,10 +18,10 @@ 0 ], "QueryTime": [ - 65 + 43 ], "ResponseLength": [ - 108 + 53 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/eval_3.0.15 b/src/go/tests/expect/stats_single/eval_3.0.15 index b4898132..93735c33 100755 --- a/src/go/tests/expect/stats_single/eval_3.0.15 +++ b/src/go/tests/expect/stats_single/eval_3.0.15 @@ -3,10 +3,10 @@ "ID": "a6782ae38ef891d5506341a4b0ab2747", "Namespace": "test", "Operation": "EVAL", - "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"$eval\":\"db\"}}\n", + "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"$eval\":\"1\"}}\n", "Fingerprint": "EVAL", - "FirstSeen": "2017-09-05T19:39:32.054Z", - "LastSeen": "2017-09-05T19:39:32.054Z", + "FirstSeen": "2017-10-15T01:54:19.572Z", + "LastSeen": "2017-10-15T01:54:19.572Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,10 +18,10 @@ 0 ], "QueryTime": [ - 35 + 37 ], "ResponseLength": [ - 108 + 53 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/eval_3.2.16 b/src/go/tests/expect/stats_single/eval_3.2.16 index 4f7ab133..7564171f 100755 --- a/src/go/tests/expect/stats_single/eval_3.2.16 +++ b/src/go/tests/expect/stats_single/eval_3.2.16 @@ -3,10 +3,10 @@ "ID": "a6782ae38ef891d5506341a4b0ab2747", "Namespace": "test", "Operation": "EVAL", - "Query": "{\"ns\":\"test\",\"op\":\"command\",\"command\":{\"$eval\":\"db\"}}\n", + "Query": "{\"ns\":\"test\",\"op\":\"command\",\"command\":{\"$eval\":\"1\"}}\n", "Fingerprint": "EVAL", - "FirstSeen": "2017-09-05T19:39:41.581Z", - "LastSeen": "2017-09-05T19:39:41.581Z", + "FirstSeen": "2017-10-15T01:54:32.759Z", + "LastSeen": "2017-10-15T01:54:32.759Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,10 +18,10 @@ 0 ], "QueryTime": [ - 88 + 56 ], "ResponseLength": [ - 93 + 38 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/eval_3.4.7 b/src/go/tests/expect/stats_single/eval_3.4.7 index 9bb7311e..da0361ef 100755 --- a/src/go/tests/expect/stats_single/eval_3.4.7 +++ b/src/go/tests/expect/stats_single/eval_3.4.7 @@ -3,10 +3,10 @@ "ID": "a6782ae38ef891d5506341a4b0ab2747", "Namespace": "test", "Operation": "EVAL", - "Query": "{\"ns\":\"test\",\"op\":\"command\",\"command\":{\"$eval\":\"db\"}}\n", + "Query": "{\"ns\":\"test\",\"op\":\"command\",\"command\":{\"$eval\":\"1\"}}\n", "Fingerprint": "EVAL", - "FirstSeen": "2017-09-05T19:39:48.888Z", - "LastSeen": "2017-09-05T19:39:48.888Z", + "FirstSeen": "2017-10-15T01:54:43.273Z", + "LastSeen": "2017-10-15T01:54:43.273Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,10 +18,10 @@ 0 ], "QueryTime": [ - 91 + 48 ], "ResponseLength": [ - 93 + 38 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/eval_3.5.11 b/src/go/tests/expect/stats_single/eval_3.5.11 index 235e1f93..b0e5e433 100755 --- a/src/go/tests/expect/stats_single/eval_3.5.11 +++ b/src/go/tests/expect/stats_single/eval_3.5.11 @@ -3,10 +3,10 @@ "ID": "a6782ae38ef891d5506341a4b0ab2747", "Namespace": "test", "Operation": "EVAL", - "Query": "{\"ns\":\"test\",\"op\":\"command\",\"command\":{\"$eval\":\"db\",\"$db\":\"test\"}}\n", + "Query": "{\"ns\":\"test\",\"op\":\"command\",\"command\":{\"$eval\":\"1\",\"$db\":\"test\"}}\n", "Fingerprint": "EVAL", - "FirstSeen": "2017-09-05T19:40:00.171Z", - "LastSeen": "2017-09-05T19:40:00.171Z", + "FirstSeen": "2017-10-15T01:54:54.085Z", + "LastSeen": "2017-10-15T01:54:54.085Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,10 +18,10 @@ 0 ], "QueryTime": [ - 47 + 40 ], "ResponseLength": [ - 93 + 38 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/explain_2.6.12 b/src/go/tests/expect/stats_single/explain_2.6.12 index 2c9c05b1..bbd5d938 100755 --- a/src/go/tests/expect/stats_single/explain_2.6.12 +++ b/src/go/tests/expect/stats_single/explain_2.6.12 @@ -5,8 +5,8 @@ "Operation": "EXPLAIN", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{},\"$explain\":true}}\n", "Fingerprint": "EXPLAIN", - "FirstSeen": "2017-09-05T19:39:24.666Z", - "LastSeen": "2017-09-05T19:39:24.666Z", + "FirstSeen": "2017-10-15T01:54:10.058Z", + "LastSeen": "2017-10-15T01:54:10.058Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 1 ], "NScanned": [ - 44 + 10 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/explain_3.0.15 b/src/go/tests/expect/stats_single/explain_3.0.15 index 53767691..48bc0d34 100755 --- a/src/go/tests/expect/stats_single/explain_3.0.15 +++ b/src/go/tests/expect/stats_single/explain_3.0.15 @@ -5,8 +5,8 @@ "Operation": "EXPLAIN", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"explain\":{\"find\":\"coll\",\"filter\":{},\"options\":{}},\"verbosity\":\"queryPlanner\"}}\n", "Fingerprint": "EXPLAIN", - "FirstSeen": "2017-09-05T19:39:32.21Z", - "LastSeen": "2017-09-05T19:39:32.21Z", + "FirstSeen": "2017-10-15T01:54:19.722Z", + "LastSeen": "2017-10-15T01:54:19.722Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/explain_3.2.16 b/src/go/tests/expect/stats_single/explain_3.2.16 index 7a68ab4f..a271a1e6 100755 --- a/src/go/tests/expect/stats_single/explain_3.2.16 +++ b/src/go/tests/expect/stats_single/explain_3.2.16 @@ -5,8 +5,8 @@ "Operation": "EXPLAIN", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"explain\":{\"find\":\"coll\",\"filter\":{}},\"verbosity\":\"queryPlanner\"}}\n", "Fingerprint": "EXPLAIN", - "FirstSeen": "2017-09-05T19:39:41.753Z", - "LastSeen": "2017-09-05T19:39:41.753Z", + "FirstSeen": "2017-10-15T01:54:32.931Z", + "LastSeen": "2017-10-15T01:54:32.931Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/explain_3.4.7 b/src/go/tests/expect/stats_single/explain_3.4.7 index 99384bf8..518b15fa 100755 --- a/src/go/tests/expect/stats_single/explain_3.4.7 +++ b/src/go/tests/expect/stats_single/explain_3.4.7 @@ -5,8 +5,8 @@ "Operation": "EXPLAIN", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"explain\":{\"find\":\"coll\",\"filter\":{}},\"verbosity\":\"queryPlanner\"}}\n", "Fingerprint": "EXPLAIN", - "FirstSeen": "2017-09-05T19:39:49.065Z", - "LastSeen": "2017-09-05T19:39:49.065Z", + "FirstSeen": "2017-10-15T01:54:43.427Z", + "LastSeen": "2017-10-15T01:54:43.427Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/explain_3.5.11 b/src/go/tests/expect/stats_single/explain_3.5.11 index 3d211be2..9d80c538 100755 --- a/src/go/tests/expect/stats_single/explain_3.5.11 +++ b/src/go/tests/expect/stats_single/explain_3.5.11 @@ -5,8 +5,8 @@ "Operation": "EXPLAIN", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"explain\":{\"find\":\"coll\",\"filter\":{}},\"verbosity\":\"queryPlanner\",\"$db\":\"test\"}}\n", "Fingerprint": "EXPLAIN", - "FirstSeen": "2017-09-05T19:40:00.433Z", - "LastSeen": "2017-09-05T19:40:00.433Z", + "FirstSeen": "2017-10-15T01:54:54.257Z", + "LastSeen": "2017-10-15T01:54:54.257Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/find_2.6.12 b/src/go/tests/expect/stats_single/find_2.6.12 index 993d644e..63f5f9ed 100755 --- a/src/go/tests/expect/stats_single/find_2.6.12 +++ b/src/go/tests/expect/stats_single/find_2.6.12 @@ -1,27 +1,27 @@ [ { - "ID": "fe0bf975a044fe47fd32b835ceba612d", + "ID": "5efe4738d807c74b3980de76c37a0870", "Namespace": "test.coll", "Operation": "FIND", - "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"a\":1}}\n", - "Fingerprint": "FIND coll a", - "FirstSeen": "2017-08-20T15:39:15.457Z", - "LastSeen": "2017-08-20T15:39:15.457Z", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"k\":1}}\n", + "Fingerprint": "FIND coll k", + "FirstSeen": "2017-10-15T01:54:10.277Z", + "LastSeen": "2017-10-15T01:54:10.277Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 6 + 2 ], "NScanned": [ - 6 + 2 ], "QueryTime": [ 0 ], "ResponseLength": [ - 251 + 86 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_3.0.15 b/src/go/tests/expect/stats_single/find_3.0.15 index ccd6a0aa..7e7b4507 100755 --- a/src/go/tests/expect/stats_single/find_3.0.15 +++ b/src/go/tests/expect/stats_single/find_3.0.15 @@ -1,27 +1,27 @@ [ { - "ID": "fe0bf975a044fe47fd32b835ceba612d", + "ID": "5efe4738d807c74b3980de76c37a0870", "Namespace": "test.coll", "Operation": "FIND", - "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"a\":1}}\n", - "Fingerprint": "FIND coll a", - "FirstSeen": "2017-08-20T15:39:21.515Z", - "LastSeen": "2017-08-20T15:39:21.515Z", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"k\":1}}\n", + "Fingerprint": "FIND coll k", + "FirstSeen": "2017-10-15T01:54:19.953Z", + "LastSeen": "2017-10-15T01:54:19.953Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 6 + 2 ], "NScanned": [ - 6 + 2 ], "QueryTime": [ 0 ], "ResponseLength": [ - 251 + 86 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_3.2.16 b/src/go/tests/expect/stats_single/find_3.2.16 index 102722d1..df47999c 100755 --- a/src/go/tests/expect/stats_single/find_3.2.16 +++ b/src/go/tests/expect/stats_single/find_3.2.16 @@ -1,27 +1,27 @@ [ { - "ID": "fe0bf975a044fe47fd32b835ceba612d", + "ID": "5efe4738d807c74b3980de76c37a0870", "Namespace": "test.coll", "Operation": "FIND", - "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{\"a\":1}}}\n", - "Fingerprint": "FIND coll a", - "FirstSeen": "2017-08-20T15:39:30.913Z", - "LastSeen": "2017-08-20T15:39:30.913Z", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{\"k\":1}}}\n", + "Fingerprint": "FIND coll k", + "FirstSeen": "2017-10-15T01:54:33.179Z", + "LastSeen": "2017-10-15T01:54:33.179Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 6 + 2 ], "NScanned": [ - 6 + 2 ], "QueryTime": [ - 0 + 1 ], "ResponseLength": [ - 349 + 172 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_3.4.7 b/src/go/tests/expect/stats_single/find_3.4.7 index b1d083a2..d641eb93 100755 --- a/src/go/tests/expect/stats_single/find_3.4.7 +++ b/src/go/tests/expect/stats_single/find_3.4.7 @@ -1,27 +1,27 @@ [ { - "ID": "fe0bf975a044fe47fd32b835ceba612d", + "ID": "5efe4738d807c74b3980de76c37a0870", "Namespace": "test.coll", "Operation": "FIND", - "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{\"a\":1}}}\n", - "Fingerprint": "FIND coll a", - "FirstSeen": "2017-08-20T15:39:37.66Z", - "LastSeen": "2017-08-20T15:39:37.66Z", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{\"k\":1}}}\n", + "Fingerprint": "FIND coll k", + "FirstSeen": "2017-10-15T01:54:43.713Z", + "LastSeen": "2017-10-15T01:54:43.713Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 6 + 2 ], "NScanned": [ - 6 + 2 ], "QueryTime": [ 0 ], "ResponseLength": [ - 331 + 154 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_3.5.11 b/src/go/tests/expect/stats_single/find_3.5.11 index 6445658e..2a1a004e 100755 --- a/src/go/tests/expect/stats_single/find_3.5.11 +++ b/src/go/tests/expect/stats_single/find_3.5.11 @@ -1,27 +1,27 @@ [ { - "ID": "fe0bf975a044fe47fd32b835ceba612d", + "ID": "5efe4738d807c74b3980de76c37a0870", "Namespace": "test.coll", "Operation": "FIND", - "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"command\":{\"find\":\"coll\",\"filter\":{\"a\":1},\"$db\":\"test\"}}\n", - "Fingerprint": "FIND coll a", - "FirstSeen": "2017-08-20T15:39:48.107Z", - "LastSeen": "2017-08-20T15:39:48.107Z", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"command\":{\"find\":\"coll\",\"filter\":{\"k\":1},\"$db\":\"test\"}}\n", + "Fingerprint": "FIND coll k", + "FirstSeen": "2017-10-15T01:54:54.507Z", + "LastSeen": "2017-10-15T01:54:54.507Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 6 + 2 ], "NScanned": [ - 6 + 2 ], "QueryTime": [ - 1 + 0 ], "ResponseLength": [ - 331 + 154 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_andrii_2.6.12 b/src/go/tests/expect/stats_single/find_andrii_2.6.12 index cfd29fb4..aeda265e 100755 --- a/src/go/tests/expect/stats_single/find_andrii_2.6.12 +++ b/src/go/tests/expect/stats_single/find_andrii_2.6.12 @@ -5,8 +5,8 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{\"$and\":[{\"k\":{\"$gt\":1}},{\"k\":{\"$lt\":2}},{\"$or\":[{\"c\":{\"$in\":[\"/^0/\",\"/^2/\",\"/^4/\",\"/^6/\"]}},{\"pad\":{\"$in\":[\"/9$/\",\"/7$/\",\"/5$/\",\"/3$/\"]}}]}]},\"orderby\":{\"k\":-1}}}\n", "Fingerprint": "FIND coll c,k,pad", - "FirstSeen": "2017-08-20T15:39:15.616Z", - "LastSeen": "2017-08-20T15:39:15.616Z", + "FirstSeen": "2017-10-15T01:54:10.474Z", + "LastSeen": "2017-10-15T01:54:10.474Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 0 ], "NScanned": [ - 98 + 0 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/find_andrii_3.0.15 b/src/go/tests/expect/stats_single/find_andrii_3.0.15 index 995e9a39..f7cba294 100755 --- a/src/go/tests/expect/stats_single/find_andrii_3.0.15 +++ b/src/go/tests/expect/stats_single/find_andrii_3.0.15 @@ -5,8 +5,8 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{\"$and\":[{\"k\":{\"$gt\":1}},{\"k\":{\"$lt\":2}},{\"$or\":[{\"c\":{\"$in\":[\"/^0/\",\"/^2/\",\"/^4/\",\"/^6/\"]}},{\"pad\":{\"$in\":[\"/9$/\",\"/7$/\",\"/5$/\",\"/3$/\"]}}]}]},\"orderby\":{\"k\":-1}}}\n", "Fingerprint": "FIND coll c,k,pad", - "FirstSeen": "2017-08-20T15:39:21.656Z", - "LastSeen": "2017-08-20T15:39:21.656Z", + "FirstSeen": "2017-10-15T01:54:20.111Z", + "LastSeen": "2017-10-15T01:54:20.111Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 0 ], "NScanned": [ - 98 + 0 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/find_andrii_3.2.16 b/src/go/tests/expect/stats_single/find_andrii_3.2.16 index f94b22f3..00826af3 100755 --- a/src/go/tests/expect/stats_single/find_andrii_3.2.16 +++ b/src/go/tests/expect/stats_single/find_andrii_3.2.16 @@ -5,8 +5,8 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{\"$and\":[{\"k\":{\"$gt\":1}},{\"k\":{\"$lt\":2}},{\"$or\":[{\"c\":{\"$in\":[\"/^0/\",\"/^2/\",\"/^4/\",\"/^6/\"]}},{\"pad\":{\"$in\":[\"/9$/\",\"/7$/\",\"/5$/\",\"/3$/\"]}}]}]},\"limit\":100,\"singleBatch\":false,\"sort\":{\"k\":-1}}}\n", "Fingerprint": "FIND coll c,k,pad", - "FirstSeen": "2017-08-20T15:39:31.085Z", - "LastSeen": "2017-08-20T15:39:31.085Z", + "FirstSeen": "2017-10-15T01:54:33.358Z", + "LastSeen": "2017-10-15T01:54:33.358Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 0 ], "NScanned": [ - 49 + 0 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/find_andrii_3.4.7 b/src/go/tests/expect/stats_single/find_andrii_3.4.7 index 64ff6779..d109b603 100755 --- a/src/go/tests/expect/stats_single/find_andrii_3.4.7 +++ b/src/go/tests/expect/stats_single/find_andrii_3.4.7 @@ -5,8 +5,8 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{\"$and\":[{\"k\":{\"$gt\":1}},{\"k\":{\"$lt\":2}},{\"$or\":[{\"c\":{\"$in\":[\"/^0/\",\"/^2/\",\"/^4/\",\"/^6/\"]}},{\"pad\":{\"$in\":[\"/9$/\",\"/7$/\",\"/5$/\",\"/3$/\"]}}]}]},\"limit\":100,\"singleBatch\":false,\"sort\":{\"k\":-1}}}\n", "Fingerprint": "FIND coll c,k,pad", - "FirstSeen": "2017-08-20T15:39:37.823Z", - "LastSeen": "2017-08-20T15:39:37.823Z", + "FirstSeen": "2017-10-15T01:54:43.922Z", + "LastSeen": "2017-10-15T01:54:43.922Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 0 ], "NScanned": [ - 49 + 0 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/find_andrii_3.5.11 b/src/go/tests/expect/stats_single/find_andrii_3.5.11 index b453f124..57a9d35a 100755 --- a/src/go/tests/expect/stats_single/find_andrii_3.5.11 +++ b/src/go/tests/expect/stats_single/find_andrii_3.5.11 @@ -5,8 +5,8 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"command\":{\"find\":\"coll\",\"filter\":{\"$and\":[{\"k\":{\"$gt\":1}},{\"k\":{\"$lt\":2}},{\"$or\":[{\"c\":{\"$in\":[\"/^0/\",\"/^2/\",\"/^4/\",\"/^6/\"]}},{\"pad\":{\"$in\":[\"/9$/\",\"/7$/\",\"/5$/\",\"/3$/\"]}}]}]},\"limit\":100,\"singleBatch\":false,\"sort\":{\"k\":-1},\"$db\":\"test\"}}\n", "Fingerprint": "FIND coll c,k,pad", - "FirstSeen": "2017-08-20T15:39:48.277Z", - "LastSeen": "2017-08-20T15:39:48.277Z", + "FirstSeen": "2017-10-15T01:54:54.693Z", + "LastSeen": "2017-10-15T01:54:54.693Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -15,7 +15,7 @@ 0 ], "NScanned": [ - 49 + 0 ], "QueryTime": [ 0 diff --git a/src/go/tests/expect/stats_single/find_empty_2.6.12 b/src/go/tests/expect/stats_single/find_empty_2.6.12 index 991e94de..8d2f5c99 100755 --- a/src/go/tests/expect/stats_single/find_empty_2.6.12 +++ b/src/go/tests/expect/stats_single/find_empty_2.6.12 @@ -5,23 +5,23 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\"}\n", "Fingerprint": "FIND coll", - "FirstSeen": "2017-08-20T15:39:15.75Z", - "LastSeen": "2017-08-20T15:39:15.75Z", + "FirstSeen": "2017-10-15T01:54:10.63Z", + "LastSeen": "2017-10-15T01:54:10.63Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 49 + 0 ], "NScanned": [ - 49 + 0 ], "QueryTime": [ 0 ], "ResponseLength": [ - 1846 + 20 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_empty_3.0.15 b/src/go/tests/expect/stats_single/find_empty_3.0.15 index 87e78532..adad3b50 100755 --- a/src/go/tests/expect/stats_single/find_empty_3.0.15 +++ b/src/go/tests/expect/stats_single/find_empty_3.0.15 @@ -5,23 +5,23 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\"}\n", "Fingerprint": "FIND coll", - "FirstSeen": "2017-08-20T15:39:21.769Z", - "LastSeen": "2017-08-20T15:39:21.769Z", + "FirstSeen": "2017-10-15T01:54:20.246Z", + "LastSeen": "2017-10-15T01:54:20.246Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 49 + 0 ], "NScanned": [ - 49 + 0 ], "QueryTime": [ 0 ], "ResponseLength": [ - 1846 + 20 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_empty_3.2.16 b/src/go/tests/expect/stats_single/find_empty_3.2.16 index 36e18e2c..f4308c9b 100755 --- a/src/go/tests/expect/stats_single/find_empty_3.2.16 +++ b/src/go/tests/expect/stats_single/find_empty_3.2.16 @@ -5,23 +5,23 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{}}}\n", "Fingerprint": "FIND coll", - "FirstSeen": "2017-08-20T15:39:31.294Z", - "LastSeen": "2017-08-20T15:39:31.294Z", + "FirstSeen": "2017-10-15T01:54:33.53Z", + "LastSeen": "2017-10-15T01:54:33.53Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 49 + 0 ], "NScanned": [ - 49 + 0 ], "QueryTime": [ 0 ], "ResponseLength": [ - 2112 + 100 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_empty_3.4.7 b/src/go/tests/expect/stats_single/find_empty_3.4.7 index c8b897fc..6c9a2caf 100755 --- a/src/go/tests/expect/stats_single/find_empty_3.4.7 +++ b/src/go/tests/expect/stats_single/find_empty_3.4.7 @@ -5,23 +5,23 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{}}}\n", "Fingerprint": "FIND coll", - "FirstSeen": "2017-08-20T15:39:37.964Z", - "LastSeen": "2017-08-20T15:39:37.964Z", + "FirstSeen": "2017-10-15T01:54:44.129Z", + "LastSeen": "2017-10-15T01:54:44.129Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 49 + 0 ], "NScanned": [ - 49 + 0 ], "QueryTime": [ 0 ], "ResponseLength": [ - 2094 + 82 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_empty_3.5.11 b/src/go/tests/expect/stats_single/find_empty_3.5.11 index 423b5ba9..937152ea 100755 --- a/src/go/tests/expect/stats_single/find_empty_3.5.11 +++ b/src/go/tests/expect/stats_single/find_empty_3.5.11 @@ -5,23 +5,23 @@ "Operation": "FIND", "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"command\":{\"find\":\"coll\",\"filter\":{},\"$db\":\"test\"}}\n", "Fingerprint": "FIND coll", - "FirstSeen": "2017-08-20T15:39:48.429Z", - "LastSeen": "2017-08-20T15:39:48.429Z", + "FirstSeen": "2017-10-15T01:54:54.87Z", + "LastSeen": "2017-10-15T01:54:54.87Z", "TableScan": false, "Count": 1, "BlockedTime": null, "LockTime": null, "NReturned": [ - 49 + 0 ], "NScanned": [ - 49 + 0 ], "QueryTime": [ 0 ], "ResponseLength": [ - 2094 + 82 ] } ] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_with_sort_2.6.12 b/src/go/tests/expect/stats_single/find_with_sort_2.6.12 new file mode 100755 index 00000000..71dbb104 --- /dev/null +++ b/src/go/tests/expect/stats_single/find_with_sort_2.6.12 @@ -0,0 +1,27 @@ +[ + { + "ID": "20fe80188ec82c9d3c3dcf3f4817f8f9", + "Namespace": "test.coll", + "Operation": "FIND", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{\"c\":1},\"orderby\":{\"b\":-1}}}\n", + "Fingerprint": "FIND coll b,c", + "FirstSeen": "2017-10-15T01:54:10.817Z", + "LastSeen": "2017-10-15T01:54:10.817Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2 + ], + "NScanned": [ + 2 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 108 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_with_sort_3.0.15 b/src/go/tests/expect/stats_single/find_with_sort_3.0.15 new file mode 100755 index 00000000..47318d5e --- /dev/null +++ b/src/go/tests/expect/stats_single/find_with_sort_3.0.15 @@ -0,0 +1,27 @@ +[ + { + "ID": "20fe80188ec82c9d3c3dcf3f4817f8f9", + "Namespace": "test.coll", + "Operation": "FIND", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"query\":{\"c\":1},\"orderby\":{\"b\":-1}}}\n", + "Fingerprint": "FIND coll b,c", + "FirstSeen": "2017-10-15T01:54:20.41Z", + "LastSeen": "2017-10-15T01:54:20.41Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2 + ], + "NScanned": [ + 2 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 108 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_with_sort_3.2.16 b/src/go/tests/expect/stats_single/find_with_sort_3.2.16 new file mode 100755 index 00000000..c1df885f --- /dev/null +++ b/src/go/tests/expect/stats_single/find_with_sort_3.2.16 @@ -0,0 +1,27 @@ +[ + { + "ID": "20fe80188ec82c9d3c3dcf3f4817f8f9", + "Namespace": "test.coll", + "Operation": "FIND", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{\"c\":1},\"sort\":{\"b\":-1}}}\n", + "Fingerprint": "FIND coll b,c", + "FirstSeen": "2017-10-15T01:54:33.762Z", + "LastSeen": "2017-10-15T01:54:33.762Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2 + ], + "NScanned": [ + 2 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 194 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_with_sort_3.4.7 b/src/go/tests/expect/stats_single/find_with_sort_3.4.7 new file mode 100755 index 00000000..36fb38f9 --- /dev/null +++ b/src/go/tests/expect/stats_single/find_with_sort_3.4.7 @@ -0,0 +1,27 @@ +[ + { + "ID": "20fe80188ec82c9d3c3dcf3f4817f8f9", + "Namespace": "test.coll", + "Operation": "FIND", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"query\":{\"find\":\"coll\",\"filter\":{\"c\":1},\"sort\":{\"b\":-1}}}\n", + "Fingerprint": "FIND coll b,c", + "FirstSeen": "2017-10-15T01:54:44.423Z", + "LastSeen": "2017-10-15T01:54:44.423Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2 + ], + "NScanned": [ + 2 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 176 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/find_with_sort_3.5.11 b/src/go/tests/expect/stats_single/find_with_sort_3.5.11 new file mode 100755 index 00000000..736491a6 --- /dev/null +++ b/src/go/tests/expect/stats_single/find_with_sort_3.5.11 @@ -0,0 +1,27 @@ +[ + { + "ID": "20fe80188ec82c9d3c3dcf3f4817f8f9", + "Namespace": "test.coll", + "Operation": "FIND", + "Query": "{\"ns\":\"test.coll\",\"op\":\"query\",\"command\":{\"find\":\"coll\",\"filter\":{\"c\":1},\"sort\":{\"b\":-1},\"$db\":\"test\"}}\n", + "Fingerprint": "FIND coll b,c", + "FirstSeen": "2017-10-15T01:54:55.111Z", + "LastSeen": "2017-10-15T01:54:55.111Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2 + ], + "NScanned": [ + 2 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 176 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/findandmodify_2.6.12 b/src/go/tests/expect/stats_single/findandmodify_2.6.12 index 62d1328d..595cbc6c 100755 --- a/src/go/tests/expect/stats_single/findandmodify_2.6.12 +++ b/src/go/tests/expect/stats_single/findandmodify_2.6.12 @@ -5,8 +5,8 @@ "Operation": "FINDANDMODIFY", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"findandmodify\":\"coll\",\"query\":{\"a\":2},\"update\":{\"$inc\":{\"b\":1}}},\"updateobj\":{\"$inc\":{\"b\":1}}}\n", "Fingerprint": "FINDANDMODIFY coll a", - "FirstSeen": "2017-08-20T15:39:15.903Z", - "LastSeen": "2017-08-20T15:39:15.903Z", + "FirstSeen": "2017-10-15T01:54:11.011Z", + "LastSeen": "2017-10-15T01:54:11.011Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 1 ], "QueryTime": [ - 0 + 6 ], "ResponseLength": [ 131 diff --git a/src/go/tests/expect/stats_single/findandmodify_3.0.15 b/src/go/tests/expect/stats_single/findandmodify_3.0.15 index 3eacc879..c8b17bf8 100755 --- a/src/go/tests/expect/stats_single/findandmodify_3.0.15 +++ b/src/go/tests/expect/stats_single/findandmodify_3.0.15 @@ -5,8 +5,8 @@ "Operation": "FINDANDMODIFY", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"findandmodify\":\"coll\",\"query\":{\"a\":2},\"update\":{\"$inc\":{\"b\":1}}},\"updateobj\":{\"$inc\":{\"b\":1}}}\n", "Fingerprint": "FINDANDMODIFY coll a", - "FirstSeen": "2017-08-20T15:39:21.902Z", - "LastSeen": "2017-08-20T15:39:21.902Z", + "FirstSeen": "2017-10-15T01:54:20.581Z", + "LastSeen": "2017-10-15T01:54:20.581Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/findandmodify_3.2.16 b/src/go/tests/expect/stats_single/findandmodify_3.2.16 index ef71024c..ca6e28c0 100755 --- a/src/go/tests/expect/stats_single/findandmodify_3.2.16 +++ b/src/go/tests/expect/stats_single/findandmodify_3.2.16 @@ -5,8 +5,8 @@ "Operation": "FINDANDMODIFY", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"findandmodify\":\"coll\",\"query\":{\"a\":2},\"update\":{\"$inc\":{\"b\":1}}},\"updateobj\":{\"$inc\":{\"b\":1}}}\n", "Fingerprint": "FINDANDMODIFY coll a", - "FirstSeen": "2017-08-20T15:39:31.548Z", - "LastSeen": "2017-08-20T15:39:31.548Z", + "FirstSeen": "2017-10-15T01:54:34.011Z", + "LastSeen": "2017-10-15T01:54:34.011Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 3 ], "QueryTime": [ - 0 + 1 ], "ResponseLength": [ 116 diff --git a/src/go/tests/expect/stats_single/findandmodify_3.4.7 b/src/go/tests/expect/stats_single/findandmodify_3.4.7 index f351fd0e..d81c37a1 100755 --- a/src/go/tests/expect/stats_single/findandmodify_3.4.7 +++ b/src/go/tests/expect/stats_single/findandmodify_3.4.7 @@ -5,8 +5,8 @@ "Operation": "FINDANDMODIFY", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"findandmodify\":\"coll\",\"query\":{\"a\":2},\"update\":{\"$inc\":{\"b\":1}}},\"updateobj\":{\"$inc\":{\"b\":1}}}\n", "Fingerprint": "FINDANDMODIFY coll a", - "FirstSeen": "2017-08-20T15:39:38.196Z", - "LastSeen": "2017-08-20T15:39:38.196Z", + "FirstSeen": "2017-10-15T01:54:44.656Z", + "LastSeen": "2017-10-15T01:54:44.656Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 3 ], "QueryTime": [ - 0 + 1 ], "ResponseLength": [ 116 diff --git a/src/go/tests/expect/stats_single/findandmodify_3.5.11 b/src/go/tests/expect/stats_single/findandmodify_3.5.11 index ea893ea5..12858348 100755 --- a/src/go/tests/expect/stats_single/findandmodify_3.5.11 +++ b/src/go/tests/expect/stats_single/findandmodify_3.5.11 @@ -5,8 +5,8 @@ "Operation": "FINDANDMODIFY", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"findandmodify\":\"coll\",\"query\":{\"a\":2},\"update\":{\"$inc\":{\"b\":1}},\"$db\":\"test\"}}\n", "Fingerprint": "FINDANDMODIFY coll a", - "FirstSeen": "2017-08-20T15:39:48.636Z", - "LastSeen": "2017-08-20T15:39:48.636Z", + "FirstSeen": "2017-10-15T01:54:55.391Z", + "LastSeen": "2017-10-15T01:54:55.391Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 3 ], "QueryTime": [ - 0 + 1 ], "ResponseLength": [ 116 diff --git a/src/go/tests/expect/stats_single/geonear_2.6.12 b/src/go/tests/expect/stats_single/geonear_2.6.12 index 1a7524ee..cc9e30be 100755 --- a/src/go/tests/expect/stats_single/geonear_2.6.12 +++ b/src/go/tests/expect/stats_single/geonear_2.6.12 @@ -5,8 +5,8 @@ "Operation": "GEONEAR", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"geoNear\":\"coll\",\"near\":{\"type\":\"Point\",\"coordinates\":[1,1]},\"spherical\":true}}\n", "Fingerprint": "GEONEAR coll", - "FirstSeen": "2017-08-20T15:39:16.061Z", - "LastSeen": "2017-08-20T15:39:16.061Z", + "FirstSeen": "2017-10-15T01:54:11.181Z", + "LastSeen": "2017-10-15T01:54:11.181Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/geonear_3.0.15 b/src/go/tests/expect/stats_single/geonear_3.0.15 index 9ffa1ebf..d9c6f994 100755 --- a/src/go/tests/expect/stats_single/geonear_3.0.15 +++ b/src/go/tests/expect/stats_single/geonear_3.0.15 @@ -5,8 +5,8 @@ "Operation": "GEONEAR", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"geoNear\":\"coll\",\"near\":{\"type\":\"Point\",\"coordinates\":[1,1]},\"spherical\":true}}\n", "Fingerprint": "GEONEAR coll", - "FirstSeen": "2017-08-20T15:39:22.055Z", - "LastSeen": "2017-08-20T15:39:22.055Z", + "FirstSeen": "2017-10-15T01:54:20.751Z", + "LastSeen": "2017-10-15T01:54:20.751Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 3 + 2 ], "ResponseLength": [ 1398 diff --git a/src/go/tests/expect/stats_single/geonear_3.2.16 b/src/go/tests/expect/stats_single/geonear_3.2.16 index 71ee8e92..f312b472 100755 --- a/src/go/tests/expect/stats_single/geonear_3.2.16 +++ b/src/go/tests/expect/stats_single/geonear_3.2.16 @@ -5,8 +5,8 @@ "Operation": "GEONEAR", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"geoNear\":\"coll\",\"near\":{\"type\":\"Point\",\"coordinates\":[1,1]},\"spherical\":true}}\n", "Fingerprint": "GEONEAR coll", - "FirstSeen": "2017-08-20T15:39:31.797Z", - "LastSeen": "2017-08-20T15:39:31.797Z", + "FirstSeen": "2017-10-15T01:54:34.27Z", + "LastSeen": "2017-10-15T01:54:34.27Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 8 + 10 ], "ResponseLength": [ 1401 diff --git a/src/go/tests/expect/stats_single/geonear_3.4.7 b/src/go/tests/expect/stats_single/geonear_3.4.7 index 31383313..6e1dd370 100755 --- a/src/go/tests/expect/stats_single/geonear_3.4.7 +++ b/src/go/tests/expect/stats_single/geonear_3.4.7 @@ -5,8 +5,8 @@ "Operation": "GEONEAR", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"geoNear\":\"coll\",\"near\":{\"type\":\"Point\",\"coordinates\":[1,1]},\"spherical\":true}}\n", "Fingerprint": "GEONEAR coll", - "FirstSeen": "2017-08-20T15:39:38.432Z", - "LastSeen": "2017-08-20T15:39:38.432Z", + "FirstSeen": "2017-10-15T01:54:44.873Z", + "LastSeen": "2017-10-15T01:54:44.873Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 10 ], "QueryTime": [ - 11 + 13 ], "ResponseLength": [ 1383 diff --git a/src/go/tests/expect/stats_single/geonear_3.5.11 b/src/go/tests/expect/stats_single/geonear_3.5.11 index 2e633102..0798c825 100755 --- a/src/go/tests/expect/stats_single/geonear_3.5.11 +++ b/src/go/tests/expect/stats_single/geonear_3.5.11 @@ -5,8 +5,8 @@ "Operation": "GEONEAR", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"geoNear\":\"coll\",\"near\":{\"type\":\"Point\",\"coordinates\":[1,1]},\"spherical\":true,\"$db\":\"test\"}}\n", "Fingerprint": "GEONEAR coll", - "FirstSeen": "2017-08-20T15:39:48.842Z", - "LastSeen": "2017-08-20T15:39:48.842Z", + "FirstSeen": "2017-10-15T01:54:55.701Z", + "LastSeen": "2017-10-15T01:54:55.701Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 10 ], "QueryTime": [ - 7 + 11 ], "ResponseLength": [ 1383 diff --git a/src/go/tests/expect/stats_single/getmore_2.6.12 b/src/go/tests/expect/stats_single/getmore_2.6.12 new file mode 100755 index 00000000..317b24ab --- /dev/null +++ b/src/go/tests/expect/stats_single/getmore_2.6.12 @@ -0,0 +1,27 @@ +[ + { + "ID": "db759bfd83441deecc71382323041ce6", + "Namespace": "test.coll", + "Operation": "GETMORE", + "Query": "{\"ns\":\"test.coll\",\"op\":\"getmore\",\"query\":{\"a\":{\"$gt\":0}}}\n", + "Fingerprint": "GETMORE coll", + "FirstSeen": "2017-10-15T01:54:11.36Z", + "LastSeen": "2017-10-15T01:54:11.36Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2 + ], + "NScanned": [ + 0 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 86 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/getmore_3.0.15 b/src/go/tests/expect/stats_single/getmore_3.0.15 new file mode 100755 index 00000000..58571ebe --- /dev/null +++ b/src/go/tests/expect/stats_single/getmore_3.0.15 @@ -0,0 +1,27 @@ +[ + { + "ID": "db759bfd83441deecc71382323041ce6", + "Namespace": "test.coll", + "Operation": "GETMORE", + "Query": "{\"ns\":\"test.coll\",\"op\":\"getmore\",\"query\":{\"a\":{\"$gt\":0}}}\n", + "Fingerprint": "GETMORE coll", + "FirstSeen": "2017-10-15T01:54:20.995Z", + "LastSeen": "2017-10-15T01:54:20.995Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 0 + ], + "NScanned": [ + 0 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 20 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/getmore_3.2.16 b/src/go/tests/expect/stats_single/getmore_3.2.16 new file mode 100755 index 00000000..0524524a --- /dev/null +++ b/src/go/tests/expect/stats_single/getmore_3.2.16 @@ -0,0 +1,27 @@ +[ + { + "ID": "db759bfd83441deecc71382323041ce6", + "Namespace": "test.coll", + "Operation": "GETMORE", + "Query": "{\"ns\":\"test.coll\",\"op\":\"getmore\",\"query\":{\"getMore\":\"62137702161\",\"collection\":\"coll\",\"batchSize\":2}}\n", + "Fingerprint": "GETMORE coll", + "FirstSeen": "2017-10-15T01:54:34.569Z", + "LastSeen": "2017-10-15T01:54:34.569Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 0 + ], + "NScanned": [ + 0 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 81 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/getmore_3.4.7 b/src/go/tests/expect/stats_single/getmore_3.4.7 new file mode 100755 index 00000000..3c572e12 --- /dev/null +++ b/src/go/tests/expect/stats_single/getmore_3.4.7 @@ -0,0 +1,27 @@ +[ + { + "ID": "db759bfd83441deecc71382323041ce6", + "Namespace": "test.coll", + "Operation": "GETMORE", + "Query": "{\"ns\":\"test.coll\",\"op\":\"getmore\",\"query\":{\"getMore\":\"66029137874\",\"collection\":\"coll\",\"batchSize\":2},\"originatingCommand\":{\"find\":\"coll\",\"filter\":{\"a\":{\"$gt\":0}},\"batchSize\":2,\"sort\":{\"a\":1}}}\n", + "Fingerprint": "GETMORE coll", + "FirstSeen": "2017-10-15T01:54:45.251Z", + "LastSeen": "2017-10-15T01:54:45.251Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 2 + ], + "NScanned": [ + 2 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 153 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/getmore_3.5.11 b/src/go/tests/expect/stats_single/getmore_3.5.11 new file mode 100755 index 00000000..66551a8a --- /dev/null +++ b/src/go/tests/expect/stats_single/getmore_3.5.11 @@ -0,0 +1,27 @@ +[ + { + "ID": "db759bfd83441deecc71382323041ce6", + "Namespace": "test.coll", + "Operation": "GETMORE", + "Query": "{\"ns\":\"test.coll\",\"op\":\"getmore\",\"command\":{\"getMore\":\"62495713089\",\"collection\":\"coll\",\"batchSize\":2,\"$db\":\"test\"},\"originatingCommand\":{\"find\":\"coll\",\"filter\":{\"a\":{\"$gt\":0}},\"batchSize\":2,\"sort\":{\"a\":1},\"$db\":\"test\"}}\n", + "Fingerprint": "GETMORE coll", + "FirstSeen": "2017-10-15T01:54:56.186Z", + "LastSeen": "2017-10-15T01:54:56.186Z", + "TableScan": false, + "Count": 1, + "BlockedTime": null, + "LockTime": null, + "NReturned": [ + 0 + ], + "NScanned": [ + 0 + ], + "QueryTime": [ + 0 + ], + "ResponseLength": [ + 81 + ] + } +] \ No newline at end of file diff --git a/src/go/tests/expect/stats_single/group_2.6.12 b/src/go/tests/expect/stats_single/group_2.6.12 index 8c8ebe95..03e19b99 100755 --- a/src/go/tests/expect/stats_single/group_2.6.12 +++ b/src/go/tests/expect/stats_single/group_2.6.12 @@ -5,8 +5,8 @@ "Operation": "GROUP", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"group\":{\"key\":{\"a\":1,\"b\":1},\"cond\":{\"b\":3},\"initial\":{},\"ns\":\"coll\",\"$reduce\":\"\"}}}\n", "Fingerprint": "GROUP coll a,b", - "FirstSeen": "2017-08-20T15:39:16.325Z", - "LastSeen": "2017-08-20T15:39:16.325Z", + "FirstSeen": "2017-10-15T01:54:11.599Z", + "LastSeen": "2017-10-15T01:54:11.599Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 77 + 36 ], "ResponseLength": [ 135 diff --git a/src/go/tests/expect/stats_single/group_3.0.15 b/src/go/tests/expect/stats_single/group_3.0.15 index 8739ac60..60387fad 100755 --- a/src/go/tests/expect/stats_single/group_3.0.15 +++ b/src/go/tests/expect/stats_single/group_3.0.15 @@ -5,8 +5,8 @@ "Operation": "GROUP", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"group\":{\"key\":{\"a\":1,\"b\":1},\"cond\":{\"b\":3},\"initial\":{},\"ns\":\"coll\",\"$reduce\":\"\"}}}\n", "Fingerprint": "GROUP coll a,b", - "FirstSeen": "2017-08-20T15:39:22.271Z", - "LastSeen": "2017-08-20T15:39:22.271Z", + "FirstSeen": "2017-10-15T01:54:21.188Z", + "LastSeen": "2017-10-15T01:54:21.188Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 54 + 26 ], "ResponseLength": [ 139 diff --git a/src/go/tests/expect/stats_single/group_3.2.16 b/src/go/tests/expect/stats_single/group_3.2.16 index 575c0fc2..4a813772 100755 --- a/src/go/tests/expect/stats_single/group_3.2.16 +++ b/src/go/tests/expect/stats_single/group_3.2.16 @@ -5,8 +5,8 @@ "Operation": "GROUP", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"group\":{\"key\":{\"a\":1,\"b\":1},\"cond\":{\"b\":3},\"initial\":{},\"ns\":\"coll\",\"$reduce\":\"\"}}}\n", "Fingerprint": "GROUP coll a,b", - "FirstSeen": "2017-08-20T15:39:32.101Z", - "LastSeen": "2017-08-20T15:39:32.101Z", + "FirstSeen": "2017-10-15T01:54:34.867Z", + "LastSeen": "2017-10-15T01:54:34.867Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 74 + 31 ], "ResponseLength": [ 142 diff --git a/src/go/tests/expect/stats_single/group_3.4.7 b/src/go/tests/expect/stats_single/group_3.4.7 index efc8b21a..00408d13 100755 --- a/src/go/tests/expect/stats_single/group_3.4.7 +++ b/src/go/tests/expect/stats_single/group_3.4.7 @@ -5,8 +5,8 @@ "Operation": "GROUP", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"group\":{\"key\":{\"a\":1,\"b\":1},\"cond\":{\"b\":3},\"initial\":{},\"ns\":\"coll\",\"$reduce\":{\"code\":\"function () {}\"}}}}\n", "Fingerprint": "GROUP coll a,b", - "FirstSeen": "2017-08-20T15:39:38.886Z", - "LastSeen": "2017-08-20T15:39:38.886Z", + "FirstSeen": "2017-10-15T01:54:45.5Z", + "LastSeen": "2017-10-15T01:54:45.5Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 2 ], "QueryTime": [ - 77 + 31 ], "ResponseLength": [ 124 diff --git a/src/go/tests/expect/stats_single/group_3.5.11 b/src/go/tests/expect/stats_single/group_3.5.11 index 7557127d..48c2970e 100755 --- a/src/go/tests/expect/stats_single/group_3.5.11 +++ b/src/go/tests/expect/stats_single/group_3.5.11 @@ -5,8 +5,8 @@ "Operation": "GROUP", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"group\":{\"key\":{\"a\":1,\"b\":1},\"cond\":{\"b\":3},\"initial\":{},\"ns\":\"coll\",\"$reduce\":{\"code\":\"function () {}\"}},\"$db\":\"test\"}}\n", "Fingerprint": "GROUP coll a,b", - "FirstSeen": "2017-08-20T15:39:49.276Z", - "LastSeen": "2017-08-20T15:39:49.276Z", + "FirstSeen": "2017-10-15T01:54:56.478Z", + "LastSeen": "2017-10-15T01:54:56.478Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 2 ], "QueryTime": [ - 68 + 24 ], "ResponseLength": [ 124 diff --git a/src/go/tests/expect/stats_single/insert_2.6.12 b/src/go/tests/expect/stats_single/insert_2.6.12 index b22129d6..821f4847 100755 --- a/src/go/tests/expect/stats_single/insert_2.6.12 +++ b/src/go/tests/expect/stats_single/insert_2.6.12 @@ -5,8 +5,8 @@ "Operation": "INSERT", "Query": "{\"ns\":\"test.coll\",\"op\":\"insert\",\"query\":{\"_id\":1}}\n", "Fingerprint": "INSERT coll", - "FirstSeen": "2017-08-20T15:39:16.473Z", - "LastSeen": "2017-08-20T15:39:16.473Z", + "FirstSeen": "2017-10-15T01:54:11.737Z", + "LastSeen": "2017-10-15T01:54:11.737Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/insert_3.0.15 b/src/go/tests/expect/stats_single/insert_3.0.15 index 4bd31117..23cda336 100755 --- a/src/go/tests/expect/stats_single/insert_3.0.15 +++ b/src/go/tests/expect/stats_single/insert_3.0.15 @@ -5,8 +5,8 @@ "Operation": "INSERT", "Query": "{\"ns\":\"test.coll\",\"op\":\"insert\",\"query\":{\"_id\":1}}\n", "Fingerprint": "INSERT coll", - "FirstSeen": "2017-08-20T15:39:22.409Z", - "LastSeen": "2017-08-20T15:39:22.409Z", + "FirstSeen": "2017-10-15T01:54:21.346Z", + "LastSeen": "2017-10-15T01:54:21.346Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 0 + 4 ], "ResponseLength": [ 0 diff --git a/src/go/tests/expect/stats_single/insert_3.2.16 b/src/go/tests/expect/stats_single/insert_3.2.16 index 8a9c8fbd..296b8be2 100755 --- a/src/go/tests/expect/stats_single/insert_3.2.16 +++ b/src/go/tests/expect/stats_single/insert_3.2.16 @@ -5,8 +5,8 @@ "Operation": "INSERT", "Query": "{\"ns\":\"test.coll\",\"op\":\"insert\",\"query\":{\"insert\":\"coll\",\"documents\":[{\"_id\":1}],\"ordered\":true}}\n", "Fingerprint": "INSERT coll", - "FirstSeen": "2017-08-20T15:39:32.303Z", - "LastSeen": "2017-08-20T15:39:32.303Z", + "FirstSeen": "2017-10-15T01:54:35.088Z", + "LastSeen": "2017-10-15T01:54:35.088Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 0 + 11 ], "ResponseLength": [ 25 diff --git a/src/go/tests/expect/stats_single/insert_3.4.7 b/src/go/tests/expect/stats_single/insert_3.4.7 index b9b96883..4049f3d3 100755 --- a/src/go/tests/expect/stats_single/insert_3.4.7 +++ b/src/go/tests/expect/stats_single/insert_3.4.7 @@ -5,8 +5,8 @@ "Operation": "INSERT", "Query": "{\"ns\":\"test.coll\",\"op\":\"insert\",\"query\":{\"insert\":\"coll\",\"documents\":[{\"_id\":1}],\"ordered\":true}}\n", "Fingerprint": "INSERT coll", - "FirstSeen": "2017-08-20T15:39:39.023Z", - "LastSeen": "2017-08-20T15:39:39.023Z", + "FirstSeen": "2017-10-15T01:54:45.681Z", + "LastSeen": "2017-10-15T01:54:45.681Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 0 + 11 ], "ResponseLength": [ 29 diff --git a/src/go/tests/expect/stats_single/insert_3.5.11 b/src/go/tests/expect/stats_single/insert_3.5.11 index 883aab28..3e856227 100755 --- a/src/go/tests/expect/stats_single/insert_3.5.11 +++ b/src/go/tests/expect/stats_single/insert_3.5.11 @@ -5,8 +5,8 @@ "Operation": "INSERT", "Query": "{\"ns\":\"test.coll\",\"op\":\"insert\",\"command\":{\"insert\":\"coll\",\"ordered\":true,\"$db\":\"test\"}}\n", "Fingerprint": "INSERT coll", - "FirstSeen": "2017-08-20T15:39:49.44Z", - "LastSeen": "2017-08-20T15:39:49.44Z", + "FirstSeen": "2017-10-15T01:54:56.693Z", + "LastSeen": "2017-10-15T01:54:56.693Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 0 + 11 ], "ResponseLength": [ 29 diff --git a/src/go/tests/expect/stats_single/mapreduce_2.6.12 b/src/go/tests/expect/stats_single/mapreduce_2.6.12 index 6fb663ec..aa6e82a1 100755 --- a/src/go/tests/expect/stats_single/mapreduce_2.6.12 +++ b/src/go/tests/expect/stats_single/mapreduce_2.6.12 @@ -5,8 +5,8 @@ "Operation": "MAPREDUCE", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"mapreduce\":\"coll\",\"map\":\"\",\"reduce\":\"\",\"query\":{\"a\":{\"$gte\":0}},\"out\":{\"inline\":1}}}\n", "Fingerprint": "MAPREDUCE coll a", - "FirstSeen": "2017-08-20T15:39:16.701Z", - "LastSeen": "2017-08-20T15:39:16.701Z", + "FirstSeen": "2017-10-15T01:54:11.959Z", + "LastSeen": "2017-10-15T01:54:11.959Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 33 + 29 ], "ResponseLength": [ 233 diff --git a/src/go/tests/expect/stats_single/mapreduce_3.0.15 b/src/go/tests/expect/stats_single/mapreduce_3.0.15 index 6e511a93..808098d4 100755 --- a/src/go/tests/expect/stats_single/mapreduce_3.0.15 +++ b/src/go/tests/expect/stats_single/mapreduce_3.0.15 @@ -5,8 +5,8 @@ "Operation": "MAPREDUCE", "Query": "{\"ns\":\"test.$cmd\",\"op\":\"command\",\"command\":{\"mapreduce\":\"coll\",\"map\":\"\",\"reduce\":\"\",\"query\":{\"a\":{\"$gte\":0}},\"out\":{\"inline\":1}}}\n", "Fingerprint": "MAPREDUCE coll a", - "FirstSeen": "2017-08-20T15:39:22.582Z", - "LastSeen": "2017-08-20T15:39:22.582Z", + "FirstSeen": "2017-10-15T01:54:21.559Z", + "LastSeen": "2017-10-15T01:54:21.559Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 26 + 21 ], "ResponseLength": [ 233 diff --git a/src/go/tests/expect/stats_single/mapreduce_3.2.16 b/src/go/tests/expect/stats_single/mapreduce_3.2.16 index c4da8735..ed6c0364 100755 --- a/src/go/tests/expect/stats_single/mapreduce_3.2.16 +++ b/src/go/tests/expect/stats_single/mapreduce_3.2.16 @@ -5,8 +5,8 @@ "Operation": "MAPREDUCE", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"mapreduce\":\"coll\",\"map\":\"\",\"reduce\":\"\",\"query\":{\"a\":{\"$gte\":0}},\"out\":{\"inline\":1}}}\n", "Fingerprint": "MAPREDUCE coll a", - "FirstSeen": "2017-08-20T15:39:32.572Z", - "LastSeen": "2017-08-20T15:39:32.572Z", + "FirstSeen": "2017-10-15T01:54:35.348Z", + "LastSeen": "2017-10-15T01:54:35.348Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 0 ], "QueryTime": [ - 31 + 41 ], "ResponseLength": [ 218 diff --git a/src/go/tests/expect/stats_single/mapreduce_3.4.7 b/src/go/tests/expect/stats_single/mapreduce_3.4.7 index b49e4a28..5a80d7ba 100755 --- a/src/go/tests/expect/stats_single/mapreduce_3.4.7 +++ b/src/go/tests/expect/stats_single/mapreduce_3.4.7 @@ -5,8 +5,8 @@ "Operation": "MAPREDUCE", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"mapreduce\":\"coll\",\"map\":{\"code\":\"function () {\\n emit(this.a, this.b);\\n}\"},\"reduce\":{\"code\":\"function (a, b) {\\n return Array.sum(b);\\n}\"},\"query\":{\"a\":{\"$gte\":0}},\"out\":{\"inline\":1}}}\n", "Fingerprint": "MAPREDUCE coll a", - "FirstSeen": "2017-08-20T15:39:39.249Z", - "LastSeen": "2017-08-20T15:39:39.249Z", + "FirstSeen": "2017-10-15T01:54:45.925Z", + "LastSeen": "2017-10-15T01:54:45.925Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 3 ], "QueryTime": [ - 43 + 21 ], "ResponseLength": [ 218 diff --git a/src/go/tests/expect/stats_single/mapreduce_3.5.11 b/src/go/tests/expect/stats_single/mapreduce_3.5.11 index b1d0f7da..a682b8f0 100755 --- a/src/go/tests/expect/stats_single/mapreduce_3.5.11 +++ b/src/go/tests/expect/stats_single/mapreduce_3.5.11 @@ -5,8 +5,8 @@ "Operation": "MAPREDUCE", "Query": "{\"ns\":\"test.coll\",\"op\":\"command\",\"command\":{\"mapreduce\":\"coll\",\"map\":{\"code\":\"function () {\\n emit(this.a, this.b);\\n}\"},\"reduce\":{\"code\":\"function (a, b) {\\n return Array.sum(b);\\n}\"},\"query\":{\"a\":{\"$gte\":0}},\"out\":{\"inline\":1},\"$db\":\"test\"}}\n", "Fingerprint": "MAPREDUCE coll a", - "FirstSeen": "2017-08-20T15:39:49.68Z", - "LastSeen": "2017-08-20T15:39:49.68Z", + "FirstSeen": "2017-10-15T01:54:56.951Z", + "LastSeen": "2017-10-15T01:54:56.951Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 3 ], "QueryTime": [ - 35 + 26 ], "ResponseLength": [ 218 diff --git a/src/go/tests/expect/stats_single/update_2.6.12 b/src/go/tests/expect/stats_single/update_2.6.12 index 37b6e372..4611f1e0 100755 --- a/src/go/tests/expect/stats_single/update_2.6.12 +++ b/src/go/tests/expect/stats_single/update_2.6.12 @@ -5,8 +5,8 @@ "Operation": "UPDATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"update\",\"query\":{\"a\":{\"$gte\":2}},\"updateobj\":{\"$set\":{\"c\":1},\"$inc\":{\"a\":-10}}}\n", "Fingerprint": "UPDATE coll a", - "FirstSeen": "2017-08-20T15:39:16.921Z", - "LastSeen": "2017-08-20T15:39:16.921Z", + "FirstSeen": "2017-10-15T01:54:12.161Z", + "LastSeen": "2017-10-15T01:54:12.161Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/update_3.0.15 b/src/go/tests/expect/stats_single/update_3.0.15 index 24c232fb..65af65f5 100755 --- a/src/go/tests/expect/stats_single/update_3.0.15 +++ b/src/go/tests/expect/stats_single/update_3.0.15 @@ -5,8 +5,8 @@ "Operation": "UPDATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"update\",\"query\":{\"a\":{\"$gte\":2}},\"updateobj\":{\"$set\":{\"c\":1},\"$inc\":{\"a\":-10}}}\n", "Fingerprint": "UPDATE coll a", - "FirstSeen": "2017-08-20T15:39:22.788Z", - "LastSeen": "2017-08-20T15:39:22.788Z", + "FirstSeen": "2017-10-15T01:54:21.803Z", + "LastSeen": "2017-10-15T01:54:21.803Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/update_3.2.16 b/src/go/tests/expect/stats_single/update_3.2.16 index dad030bc..f92d8e95 100755 --- a/src/go/tests/expect/stats_single/update_3.2.16 +++ b/src/go/tests/expect/stats_single/update_3.2.16 @@ -5,8 +5,8 @@ "Operation": "UPDATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"update\",\"query\":{\"a\":{\"$gte\":2}},\"updateobj\":{\"$set\":{\"c\":1},\"$inc\":{\"a\":-10}}}\n", "Fingerprint": "UPDATE coll a", - "FirstSeen": "2017-08-20T15:39:32.737Z", - "LastSeen": "2017-08-20T15:39:32.737Z", + "FirstSeen": "2017-10-15T01:54:35.583Z", + "LastSeen": "2017-10-15T01:54:35.583Z", "TableScan": false, "Count": 1, "BlockedTime": null, @@ -18,7 +18,7 @@ 1 ], "QueryTime": [ - 0 + 2 ], "ResponseLength": [ 0 diff --git a/src/go/tests/expect/stats_single/update_3.4.7 b/src/go/tests/expect/stats_single/update_3.4.7 index f0d5f8d9..1a144d52 100755 --- a/src/go/tests/expect/stats_single/update_3.4.7 +++ b/src/go/tests/expect/stats_single/update_3.4.7 @@ -5,8 +5,8 @@ "Operation": "UPDATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"update\",\"query\":{\"a\":{\"$gte\":2}},\"updateobj\":{\"$set\":{\"c\":1},\"$inc\":{\"a\":-10}}}\n", "Fingerprint": "UPDATE coll a", - "FirstSeen": "2017-08-20T15:39:39.434Z", - "LastSeen": "2017-08-20T15:39:39.434Z", + "FirstSeen": "2017-10-15T01:54:46.168Z", + "LastSeen": "2017-10-15T01:54:46.168Z", "TableScan": false, "Count": 1, "BlockedTime": null, diff --git a/src/go/tests/expect/stats_single/update_3.5.11 b/src/go/tests/expect/stats_single/update_3.5.11 index 06acdb1a..43387e92 100755 --- a/src/go/tests/expect/stats_single/update_3.5.11 +++ b/src/go/tests/expect/stats_single/update_3.5.11 @@ -5,8 +5,8 @@ "Operation": "UPDATE", "Query": "{\"ns\":\"test.coll\",\"op\":\"update\",\"command\":{\"q\":{\"a\":{\"$gte\":2}},\"u\":{\"$set\":{\"c\":1},\"$inc\":{\"a\":-10}},\"multi\":false,\"upsert\":false}}\n", "Fingerprint": "UPDATE coll a", - "FirstSeen": "2017-08-20T15:39:49.855Z", - "LastSeen": "2017-08-20T15:39:49.855Z", + "FirstSeen": "2017-10-15T01:54:57.231Z", + "LastSeen": "2017-10-15T01:54:57.231Z", "TableScan": false, "Count": 1, "BlockedTime": null,