Compare commits

..

4 Commits

Author SHA1 Message Date
Carlos Salguero
55dedf2347 PT-1800 Updated docs 2021-08-30 14:26:40 -03:00
Sergey Pronin
ee6a9da438 Update installation.rst (#508)
1. the list of operation systems is outdated
2. not on any installation page we have the list of supported OSes
3. we have supported OSes in our lifecycle doc - why add it here?
2021-08-20 11:22:54 +03:00
Paul Jacobs
e71fc0376b Spelling 2021-08-20 08:21:18 +03:00
Carlos Salguero
4b8ae0563f PMM-8489 Cluster ID for standalone server (#507)
* PMM-8489 Cluster ID for standalone server

* Updated error type

* Updated MyState to ignore errors on standalone servers

* Deleted dep files

* Revert "Deleted dep files"

This reverts commit 236303196b.

* Removed go.mod &^ updated lock

* Updated mongodb driver

* PMM-8489 Updated errors list
2021-08-18 11:22:47 -03:00
419 changed files with 1435 additions and 8472 deletions

122
Gopkg.lock generated
View File

@@ -79,6 +79,14 @@
revision = "97b6244175ae18ea6eef668034fd6565847501c9"
version = "v1.2.4"
[[projects]]
digest = "1:a01080d20c45c031c13f3828c56e58f4f51d926a482ad10cc0316225097eb7ea"
name = "github.com/go-stack/stack"
packages = ["."]
pruneopts = ""
revision = "2fee6af1a9795aafbe0253a0cfbdf668e1fb8a9a"
version = "v1.8.0"
[[projects]]
digest = "1:d69d2ba23955582a64e367ff2b0808cdbd048458c178cea48f11ab8c40bd7aea"
name = "github.com/gogo/protobuf"
@@ -91,15 +99,7 @@
version = "v1.3.1"
[[projects]]
digest = "1:a01080d20c45c031c13f3828c56e58f4f51d926a482ad10cc0316225097eb7ea"
name = "github.com/go-stack/stack"
packages = ["."]
pruneopts = ""
revision = "2fee6af1a9795aafbe0253a0cfbdf668e1fb8a9a"
version = "v1.8.0"
[[projects]]
digest = "1:530233672f656641b365f8efb38ed9fba80e420baff2ce87633813ab3755ed6d"
digest = "1:68c64bb61d55dcd17c82ca0b871ddddb5ae18b30cfe26f6bfd4b6df6287dc2e0"
name = "github.com/golang/mock"
packages = ["gomock"]
pruneopts = ""
@@ -114,14 +114,6 @@
pruneopts = ""
revision = "ff6b7dc882cf4cfba7ee0b9f7dcc1ac096c554aa"
[[projects]]
digest = "1:ad92aa49f34cbc3546063c7eb2cabb55ee2278b72842eda80e2a20a8a06a8d73"
name = "github.com/google/uuid"
packages = ["."]
pruneopts = ""
revision = "0cd6bf5da1e1c83f8b45653022c74f71af0538a4"
version = "v1.1.1"
[[projects]]
digest = "1:16ecf9e89b8b1310d9566a53484c31c5241bb47c32162eba780b46c0dfb58fef"
name = "github.com/google/gofuzz"
@@ -130,6 +122,14 @@
revision = "db92cf7ae75e4a7a28abc005addab2b394362888"
version = "v1.1.0"
[[projects]]
digest = "1:ad92aa49f34cbc3546063c7eb2cabb55ee2278b72842eda80e2a20a8a06a8d73"
name = "github.com/google/uuid"
packages = ["."]
pruneopts = ""
revision = "0cd6bf5da1e1c83f8b45653022c74f71af0538a4"
version = "v1.1.1"
[[projects]]
branch = "master"
digest = "1:4fbfcfe715329e2f09ea644657aa791b81e73a0c835a4f79b9a0dfff0513e2b8"
@@ -270,23 +270,39 @@
version = "v1.6.1"
[[projects]]
branch = "master"
digest = "1:ad74f33a69bd6ab0bd7287003b7c1069b94cfb5213eb5597005fe2963d7dfca9"
name = "github.com/xdg/scram"
digest = "1:e3c192bbd32961c2aa86ac067d695fda6dcaa27c14d5b334ba5e1e8e1caf0d02"
name = "github.com/xdg-go/pbkdf2"
packages = ["."]
pruneopts = ""
revision = "7eeb5667e42c09cb51bf7b7c28aea8c56767da90"
revision = "7f452ef1dac88350356f1bb84a23748205e64b96"
version = "v1.0.0"
[[projects]]
branch = "master"
digest = "1:62f6eb06f6f39d18fc961956116a50a0e52b89961ed8a83bbb950b4cfb09fe67"
name = "github.com/xdg/stringprep"
digest = "1:c690666fc473c441d92d0765c1f773825b34086d1148e357e7b5ea8ae0925e8c"
name = "github.com/xdg-go/scram"
packages = ["."]
pruneopts = ""
revision = "73f8eece6fdcd902c185bf651de50f3828bed5ed"
revision = "2ad501880a7f7bcc9af290278baa3658c9a2f2cd"
version = "v1.0.2"
[[projects]]
digest = "1:6085253f6bc0d9e4761ce971e02849b626de51735b35f362a34dbe5dbc3a2168"
digest = "1:371e44514be249a0554857dbed1f36f0632a3c95703c2287215eb951ffd27ff7"
name = "github.com/xdg-go/stringprep"
packages = ["."]
pruneopts = ""
revision = "4fcaaf19bc2a8e388ba275a82eb34c29abcd0bc9"
version = "v1.0.2"
[[projects]]
digest = "1:96a6e88dae5c6c3e9540fa4069a7112427de946ed7f6ecec851ecb425a585aeb"
name = "github.com/youmark/pkcs8"
packages = ["."]
pruneopts = ""
revision = "1be2e3e5546da8a58903ff4adcfab015022538ea"
version = "v1.1"
[[projects]]
digest = "1:3770bc03c28f87e5aedc27f3a668f3578d37087187b149641131ca98ae447356"
name = "go.mongodb.org/mongo-driver"
packages = [
"bson",
@@ -298,6 +314,8 @@
"event",
"internal",
"mongo",
"mongo/address",
"mongo/description",
"mongo/options",
"mongo/readconcern",
"mongo/readpref",
@@ -307,14 +325,14 @@
"x/bsonx",
"x/bsonx/bsoncore",
"x/mongo/driver",
"x/mongo/driver/address",
"x/mongo/driver/auth",
"x/mongo/driver/auth/internal/awsv4",
"x/mongo/driver/auth/internal/gssapi",
"x/mongo/driver/connstring",
"x/mongo/driver/description",
"x/mongo/driver/dns",
"x/mongo/driver/mongocrypt",
"x/mongo/driver/mongocrypt/options",
"x/mongo/driver/ocsp",
"x/mongo/driver/operation",
"x/mongo/driver/session",
"x/mongo/driver/topology",
@@ -322,14 +340,15 @@
"x/mongo/driver/wiremessage",
]
pruneopts = ""
revision = "4ce2db174a8ec022f504b9bc0e768e284e44708f"
version = "v1.3.4"
revision = "9e49b5bdd709ca89dad07357876ee04871074f62"
version = "v1.7.1"
[[projects]]
branch = "master"
digest = "1:2f8d339c3b89d5abf9a78aafe1e9fbe548f3b1fb9be5c3117036940904d39527"
name = "golang.org/x/crypto"
packages = [
"ocsp",
"pbkdf2",
"ssh/terminal",
]
@@ -338,23 +357,25 @@
[[projects]]
branch = "master"
digest = "1:adcb9e84ce154ef1d45851b57c40f8a211db3e36373a65b7c4f10c79b7428718"
digest = "1:2f0f30e07781039c6be667da33716cb1b11ca7999a3fac00271cd998618eff29"
name = "golang.org/x/net"
packages = [
"context",
"http/httpguts",
"http2",
"http2/hpack",
"idna",
]
pruneopts = ""
revision = "112230192c580c3556b8cee6403af37a4fc5f28c"
revision = "aaa1db679c0d7765d2b1cb1f92cac8ebf4d94c53"
[[projects]]
branch = "master"
digest = "1:9f6efefb4e401a4f699a295d14518871368eb89403f2dd23ec11dfcd2c0836ba"
name = "golang.org/x/sync"
packages = ["semaphore"]
packages = [
"errgroup",
"semaphore",
]
pruneopts = ""
revision = "112230192c580c3556b8cee6403af37a4fc5f28c"
@@ -371,29 +392,6 @@
pruneopts = ""
revision = "749cb33beabd9aa6d3178e3de05bcc914f70b2bf"
[[projects]]
digest = "1:740b51a55815493a8d0f2b1e0d0ae48fe48953bf7eaf3fcc4198823bf67768c0"
name = "golang.org/x/text"
packages = [
"internal/gen",
"internal/triegen",
"internal/ucd",
"transform",
"unicode/cldr",
"unicode/norm",
]
pruneopts = ""
revision = "342b2e1fbaa52c93f31447ad2c6abc048c63e475"
version = "v0.3.2"
[[projects]]
digest = "1:15d017551627c8bb091bde628215b2861bed128855343fdd570c62d08871f6e1"
name = "gopkg.in/alecthomas/kingpin.v2"
packages = ["."]
pruneopts = ""
revision = "947dcec5ba9c011838740e680966fd7087a71d0d"
version = "v2.2.6"
[[projects]]
digest = "1:fccda34e4c58111b1908d8d69bf8d57c41c8e2542bc18ec8cd38c4fa21057f71"
name = "golang.org/x/text"
@@ -419,6 +417,14 @@
revision = "23ae387dee1f90d29a23c0e87ee0b46038fbed0e"
version = "v0.3.3"
[[projects]]
digest = "1:15d017551627c8bb091bde628215b2861bed128855343fdd570c62d08871f6e1"
name = "gopkg.in/alecthomas/kingpin.v2"
packages = ["."]
pruneopts = ""
revision = "947dcec5ba9c011838740e680966fd7087a71d0d"
version = "v2.2.6"
[[projects]]
digest = "1:75fb3fcfc73a8c723efde7777b40e8e8ff9babf30d8c56160d01beffea8a95a6"
name = "gopkg.in/inf.v0"
@@ -518,9 +524,9 @@
"go.mongodb.org/mongo-driver/bson/primitive",
"go.mongodb.org/mongo-driver/mongo",
"go.mongodb.org/mongo-driver/mongo/options",
"go.mongodb.org/mongo-driver/x/mongo/driver/topology",
"golang.org/x/crypto/ssh/terminal",
"gopkg.in/mgo.v2/bson",
"gopkg.in/mgo.v2/dbtest",
"k8s.io/api/core/v1",
]
solver-name = "gps-cdcl"

View File

@@ -1307,6 +1307,11 @@ Include the following information in your bug report:
If possible, include debugging output by running the tool with C<PTDEBUG>;
see L<"ENVIRONMENT">.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 DOWNLOADING
Visit L<http://www.percona.com/software/percona-toolkit/> to download the

View File

@@ -8571,6 +8571,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -5832,6 +5832,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -5624,6 +5624,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -5596,6 +5596,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
This tool requires Perl v5.8.0 or newer and the F</proc> filesystem, unless

View File

@@ -5685,6 +5685,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -1567,6 +1567,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -5046,6 +5046,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -2159,6 +2159,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -4608,6 +4608,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -7306,6 +7306,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -7615,6 +7615,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -1075,6 +1075,11 @@ Include the following information in your bug report:
If possible, include debugging output by running the tool with C<PTDEBUG>;
see L<"ENVIRONMENT">.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 DOWNLOADING
Visit L<http://www.percona.com/software/percona-toolkit/> to download the

View File

@@ -8486,6 +8486,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -752,6 +752,11 @@ Include the following information in your bug report:
If possible, include debugging output by running the tool with C<PTDEBUG>;
see L<"ENVIRONMENT">.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 DOWNLOADING
Visit L<http://www.percona.com/software/percona-toolkit/> to download the

View File

@@ -3237,6 +3237,11 @@ Include the following information in your bug report:
If possible, include debugging output by running the tool with C<PTDEBUG>;
see L<"ENVIRONMENT">.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 DOWNLOADING
Visit L<http://www.percona.com/software/percona-toolkit/> to download the

View File

@@ -13345,6 +13345,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 EXIT STATUS
INVALID_PARAMETERS = 1

View File

@@ -844,6 +844,11 @@ Include the following information in your bug report:
If possible, include debugging output by running the tool with C<PTDEBUG>;
see L<"ENVIRONMENT">.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 DOWNLOADING
Visit L<http://www.percona.com/software/percona-toolkit/> to download the

View File

@@ -16759,6 +16759,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -2532,6 +2532,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -1193,6 +1193,11 @@ Include the following information in your bug report:
If possible, include debugging output by running the tool with C<PTDEBUG>;
see L<"ENVIRONMENT">.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 DOWNLOADING
Visit L<http://www.percona.com/software/percona-toolkit/> to download the

View File

@@ -4907,6 +4907,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -4442,6 +4442,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -6078,6 +6078,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -2367,6 +2367,11 @@ Include the following information in your bug report:
If possible, include debugging output by running the tool with C<PTDEBUG>;
see L<"ENVIRONMENT">.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 DOWNLOADING
Visit L<http://www.percona.com/software/percona-toolkit/> to download the

View File

@@ -2671,6 +2671,11 @@ Include the following information in your bug report:
If possible, include debugging output by running the tool with C<PTDEBUG>;
see L<"ENVIRONMENT">.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 DOWNLOADING
Visit L<http://www.percona.com/software/percona-toolkit/> to download the

View File

@@ -14097,6 +14097,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -12951,6 +12951,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -8430,6 +8430,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -11363,6 +11363,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -6177,6 +6177,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -3222,6 +3222,11 @@ To enable debugging and capture all output to a file, run the tool like:
Be careful: debugging output is voluminous and can generate several megabytes
of output.
=head1 ATTENTION
Using <PTDEBUG> might expose passwords. When debug is enabled, all command line
parameters are shown in the output.
=head1 SYSTEM REQUIREMENTS
You need Perl, DBI, DBD::mysql, and some core packages that ought to be

View File

@@ -4,19 +4,6 @@
Installing Percona Toolkit
==========================
Percona provides packages for most popular 64-bit Linux distributions:
* Debian 9 ("Stretch")
* Debian 10 ("Buster")
* Ubuntu 18.04 LTS ("Bionic Beaver")
* Ubuntu 20.04 LTS ("Focal Fossa")
* Red Hat Enterprise Linux or CentOS 7 ("Maipo")
* Red Hat Enterprise Linux or CentOS 8 ("Ootpa")
.. note:: Percona Toolkit should work on other DEB-based and RPM-based systems
(for example, Oracle Linux and Amazon Linux AMI),
but it is tested only on those listed above.
It is recommended to install Percona software from official repositories:
1. Configure Percona repositories as described in
@@ -34,8 +21,8 @@ It is recommended to install Percona software from official repositories:
sudo yum install percona-toolkit
.. rubric:: Generating an instance UUID for statistics
During the installating process, the percona-toolkit installer records a unique
During the installation process, the percona-toolkit installer records a unique
identifier specific to the given percona-toolkit instance. This ID is a the
product UUID stored in |product-uuid|. The installer copies the product_uuid to
|toolkit-uuid|.
@@ -46,7 +33,7 @@ percona-toolkit. Note that no other information is gathered for this purpose.
In cases when the installer is not able to read the contents of
|product-uuid|, a random UUID is generated. A random UUID is
also generated if percona-toolkit is run from the binary in the *tar.gz* file.
Alternative Install Methods
===========================

34
go.mod
View File

@@ -1,34 +0,0 @@
module github.com/percona/percona-toolkit
go 1.14
require (
github.com/Masterminds/semver v1.4.2
github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6 // indirect
github.com/alecthomas/kingpin v2.2.6+incompatible
github.com/go-ini/ini v1.46.0
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/golang/mock v1.3.1-0.20190508161146-9fa652df1129
github.com/golang/snappy v0.0.2-0.20190904063534-ff6b7dc882cf // indirect
github.com/google/uuid v1.1.2
github.com/hashicorp/go-version v1.2.1-0.20190424083514-192140e6f3e6
github.com/howeyc/gopass v0.0.0-20170109162249-bf9dde6d0d2c
github.com/klauspost/compress v1.10.10 // indirect
github.com/lib/pq v1.2.0
github.com/mattn/go-shellwords v1.0.6
github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe
github.com/pborman/getopt v0.0.0-20190409184431-ee0cd42419d3
github.com/percona/go-mysql v0.0.0-20190903141930-197f4ad8db8d
github.com/pkg/errors v0.9.1
github.com/prometheus/common v0.13.0
github.com/shirou/gopsutil v2.20.8+incompatible
github.com/sirupsen/logrus v1.6.0
github.com/stretchr/testify v1.6.1
go.mongodb.org/mongo-driver v1.5.1
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 // indirect
gopkg.in/ini.v1 v1.61.0 // indirect
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
k8s.io/api v0.20.1
)

View File

@@ -7,7 +7,6 @@ import (
"os"
"path/filepath"
"reflect"
"regexp"
"strings"
"testing"
@@ -66,8 +65,8 @@ func TestSingleFingerprint(t *testing.T) {
func TestFingerprints(t *testing.T) {
t.Parallel()
dir := filepath.Join(vars.RootPath, "src/go/tests/doc/out/")
dirExpect := filepath.Join(vars.RootPath, "src/go/tests/expect/fingerprints/")
dir := filepath.Join(vars.RootPath, "/src/go/tests/doc/profiles")
dirExpect := filepath.Join(vars.RootPath, "/src/go/tests/expect/fingerprints/")
files, err := ioutil.ReadDir(dir)
if err != nil {
t.Fatalf("cannot list samples: %s", err)
@@ -86,9 +85,7 @@ func TestFingerprints(t *testing.T) {
t.Errorf("cannot create fingerprint: %s", err)
}
re := regexp.MustCompile(`(_(mongo|psmdb).*)$`)
fname := re.ReplaceAllString(file.Name(), "")
fExpect := filepath.Join(dirExpect, fname)
fExpect := filepath.Join(dirExpect, file.Name())
fExpect = strings.TrimSuffix(fExpect, ".bson")
if tutil.ShouldUpdateSamples() {
@@ -105,7 +102,7 @@ func TestFingerprints(t *testing.T) {
}
if !reflect.DeepEqual(got, expect) {
t.Errorf("fp.Fingerprint(doc) = %+v, want %+v", got, expect)
t.Errorf("fp.Fingerprint(doc) = %s, want %s", got, expect)
}
})
}

View File

@@ -14,6 +14,7 @@ import (
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/mongo/options"
"go.mongodb.org/mongo-driver/x/mongo/driver/topology"
"gopkg.in/mgo.v2/bson"
)
@@ -27,6 +28,7 @@ const (
shardingNotEnabledErrorCode = 203
ErrNotYetInitialized = int32(94)
ErrNoReplicationEnabled = int32(76)
ErrNotPrimaryOrSecondary = int32(13436)
)
var (
@@ -460,7 +462,9 @@ func ClusterID(ctx context.Context, client *mongo.Client) (string, error) {
if e, ok := err.(mongo.CommandError); ok && IsReplicationNotEnabledError(e) {
return "", nil
}
if _, ok := err.(topology.ServerSelectionError); ok {
return "", nil
}
return "", err
}
@@ -468,12 +472,18 @@ func ClusterID(ctx context.Context, client *mongo.Client) (string, error) {
}
func IsReplicationNotEnabledError(err mongo.CommandError) bool {
return err.Code == ErrNotYetInitialized || err.Code == ErrNoReplicationEnabled
return err.Code == ErrNotYetInitialized || err.Code == ErrNoReplicationEnabled ||
err.Code == ErrNotPrimaryOrSecondary
}
func MyState(ctx context.Context, client *mongo.Client) (int, error) {
var ms proto.MyState
if err := client.Database("admin").RunCommand(ctx, bson.M{"getDiagnosticData": 1}).Decode(&ms); err != nil {
err := client.Database("admin").RunCommand(ctx, bson.M{"getDiagnosticData": 1}).Decode(&ms)
if _, ok := err.(topology.ServerSelectionError); ok {
return 0, nil
}
if err != nil {
return 0, err
}

6
src/go/tests/doc/docker-compose.yml Executable file → Normal file
View File

@@ -2,12 +2,6 @@ version: '3'
services:
mongo:
image: ${MONGO_IMAGE:-mongo}
ports:
- 127.0.0.1:27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root-password
volumes:
- ./script:/script
- ./out:/out
- ./home/mongodb:/home/mongodb

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"aggregate":"coll","pipeline":[{"$match":{"a":{"$gte":2}}}],"cursor":{},"$db":"test"}}

View File

@@ -1,66 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"aggregate": "test_db.coll",
"pipeline": [
{
"$match": {
"a": {
"$gte": 2
}
}
}
],
"cursor": {},
"lsid": {
"id": {
"$binary": "NdVmYCGDTZ23vw77F9e/Nw==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 8,
"docsExamined": 8,
"cursorExhausted": true,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "4"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
}
},
"nreturned": 8,
"responseLength": 379,
"protocol": "op_msg",
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,76 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"aggregate": "test_db.coll",
"pipeline": [
{
"$match": {
"a": {
"$gte": 2
}
}
}
],
"cursor": {},
"lsid": {
"id": {
"$binary": "3xuPBJ9pREyIssK7lXFHZw==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 8,
"docsExamined": 8,
"cursorExhausted": true,
"numYield": 0,
"nreturned": 8,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "4"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
}
},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "170"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"responseLength": 395,
"protocol": "op_msg",
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,93 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"aggregate": "test_db.coll",
"pipeline": [
{
"$match": {
"a": {
"$gte": 2
}
}
}
],
"cursor": {},
"lsid": {
"id": {
"$binary": "fw0z6rEQR8ms0reMW71sxg==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 8,
"docsExamined": 8,
"cursorExhausted": true,
"numYield": 0,
"nreturned": 8,
"queryHash": "0D966491",
"planCacheKey": "BCC9CBED",
"locks": {
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "170"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"responseLength": 395,
"protocol": "op_msg",
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,93 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"aggregate": "test_db.coll",
"pipeline": [
{
"$match": {
"a": {
"$gte": 2
}
}
}
],
"cursor": {},
"lsid": {
"id": {
"$binary": "HEWMc+tzR0Gj6VqFQOb9Jw==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 8,
"docsExamined": 8,
"cursorExhausted": true,
"numYield": 0,
"nreturned": 8,
"queryHash": "0D966491",
"planCacheKey": "BCC9CBED",
"locks": {
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "171"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"responseLength": 395,
"protocol": "op_msg",
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"count":"coll","query":{},"fields":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"count":"coll","query":{},"fields":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{},"fields":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{},"fields":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{},"fields":{},"$db":"test"}}

View File

@@ -1,71 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"count": "test_db.coll",
"query": {},
"fields": {},
"lsid": {
"id": {
"$binary": "ZPO/7w6aSFytwW3YX7vAdg==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 0,
"docsExamined": 0,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"responseLength": 29,
"protocol": "op_msg",
"millis": 42,
"planSummary": "COUNT",
"execStats": {
"stage": "COUNT",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 0,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"nCounted": 10,
"nSkipped": 0
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,71 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"count": "test_db.coll",
"query": {},
"fields": {},
"lsid": {
"id": {
"$binary": "kVak4jKLTmGTSLaZ/wcTjg==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 0,
"docsExamined": 0,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "3"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"responseLength": 45,
"protocol": "op_msg",
"millis": 42,
"planSummary": "COUNT",
"execStats": {
"stage": "COUNT",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 0,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"nCounted": 10,
"nSkipped": 0
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,84 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"count": "test_db.coll",
"query": {},
"lsid": {
"id": {
"$binary": "HJJIKdRRQLqMJrPDvJRX6A==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 0,
"docsExamined": 0,
"numYield": 0,
"locks": {
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {},
"responseLength": 45,
"protocol": "op_msg",
"millis": 42,
"planSummary": "RECORD_STORE_FAST_COUNT",
"execStats": {
"stage": "RECORD_STORE_FAST_COUNT",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 0,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"nCounted": 10,
"nSkipped": 0
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,84 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"count": "test_db.coll",
"query": {},
"lsid": {
"id": {
"$binary": "We3OR+TIScuk7NaneZTA+g==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 0,
"docsExamined": 0,
"numYield": 0,
"locks": {
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {},
"responseLength": 45,
"protocol": "op_msg",
"millis": 42,
"planSummary": "RECORD_STORE_FAST_COUNT",
"execStats": {
"stage": "RECORD_STORE_FAST_COUNT",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 0,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"nCounted": 10,
"nSkipped": 0
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"count":"coll","query":{"a":{"$gt":5}},"fields":{},"$db":"test"}}

View File

@@ -1,95 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"count": "test_db.coll",
"query": {
"a": {
"$gt": 5
}
},
"fields": {},
"lsid": {
"id": {
"$binary": "1nOQhU+eSPyA5aQepKm8sQ==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 0,
"docsExamined": 10,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"responseLength": 29,
"protocol": "op_msg",
"millis": 42,
"planSummary": "COLLSCAN",
"execStats": {
"stage": "COUNT",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 12,
"advanced": 0,
"needTime": 11,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"nCounted": 4,
"nSkipped": 0,
"inputStage": {
"stage": "COLLSCAN",
"filter": {
"a": {
"$gt": 5
}
},
"nReturned": 4,
"executionTimeMillisEstimate": 0,
"works": 12,
"advanced": 4,
"needTime": 7,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"direction": "forward",
"docsExamined": 10
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,96 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"count": "test_db.coll",
"query": {
"a": {
"$gt": 5
}
},
"fields": {},
"lsid": {
"id": {
"$binary": "2LDhaOM5RiqWd7EN5kpRfw==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 0,
"docsExamined": 10,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "3"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"storage": {},
"responseLength": 45,
"protocol": "op_msg",
"millis": 42,
"planSummary": "COLLSCAN",
"execStats": {
"stage": "COUNT",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 12,
"advanced": 0,
"needTime": 11,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"nCounted": 4,
"nSkipped": 0,
"inputStage": {
"stage": "COLLSCAN",
"filter": {
"a": {
"$gt": 5
}
},
"nReturned": 4,
"executionTimeMillisEstimate": 0,
"works": 12,
"advanced": 4,
"needTime": 7,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"direction": "forward",
"docsExamined": 10
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,110 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"count": "test_db.coll",
"query": {
"a": {
"$gt": 5
}
},
"lsid": {
"id": {
"$binary": "71enoTyxTcKlQbr43k81Kg==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 0,
"docsExamined": 10,
"numYield": 0,
"queryHash": "7D364BCC",
"planCacheKey": "7D364BCC",
"locks": {
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {},
"storage": {},
"responseLength": 45,
"protocol": "op_msg",
"millis": 42,
"planSummary": "COLLSCAN",
"execStats": {
"stage": "COUNT",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 12,
"advanced": 0,
"needTime": 11,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"nCounted": 4,
"nSkipped": 0,
"inputStage": {
"stage": "COLLSCAN",
"filter": {
"a": {
"$gt": 5
}
},
"nReturned": 4,
"executionTimeMillisEstimate": 0,
"works": 12,
"advanced": 4,
"needTime": 7,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"direction": "forward",
"docsExamined": 10
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,110 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"count": "test_db.coll",
"query": {
"a": {
"$gt": 5
}
},
"lsid": {
"id": {
"$binary": "BRKnQ5KtSuW8t9026WelxQ==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 0,
"docsExamined": 10,
"numYield": 0,
"queryHash": "7D364BCC",
"planCacheKey": "7D364BCC",
"locks": {
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {},
"storage": {},
"responseLength": 45,
"protocol": "op_msg",
"millis": 42,
"planSummary": "COLLSCAN",
"execStats": {
"stage": "COUNT",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 12,
"advanced": 0,
"needTime": 11,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"nCounted": 4,
"nSkipped": 0,
"inputStage": {
"stage": "COLLSCAN",
"filter": {
"a": {
"$gt": 5
}
},
"nReturned": 4,
"executionTimeMillisEstimate": 0,
"works": 12,
"advanced": 4,
"needTime": 7,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"direction": "forward",
"docsExamined": 10
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","command":{"q":{"a":{"$gte":2},"b":{"$gte":2}},"limit":1}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","query":{"a":{"$gte":2},"b":{"$gte":2}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"remove","command":{"q":{"a":{"$gte":2},"b":{"$gte":2}},"limit":0}}

View File

@@ -1,129 +0,0 @@
{
"op": "remove",
"ns": "admin.test_db.coll",
"command": {
"q": {
"a": {
"$gte": 2
},
"b": {
"$gte": 2
}
},
"limit": 0
},
"keysExamined": 8,
"docsExamined": 8,
"ndeleted": 8,
"keysDeleted": 16,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "1"
},
"w": {
"$numberLong": "1"
}
}
},
"Database": {
"acquireCount": {
"W": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"w": {
"$numberLong": "1"
}
}
}
},
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"execStats": {
"stage": "DELETE",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 0,
"needTime": 8,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"nWouldDelete": 8,
"nInvalidateSkips": 0,
"inputStage": {
"stage": "FETCH",
"filter": {
"b": {
"$gte": 2
}
},
"nReturned": 8,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 8,
"needTime": 0,
"needYield": 0,
"saveState": 8,
"restoreState": 8,
"isEOF": 1,
"invalidates": 0,
"docsExamined": 8,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 8,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 8,
"needTime": 0,
"needYield": 0,
"saveState": 8,
"restoreState": 8,
"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": [
"[2.0, inf.0]"
]
},
"keysExamined": 8,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0,
"seenInvalidated": 0
}
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,139 +0,0 @@
{
"op": "remove",
"ns": "admin.test_db.coll",
"command": {
"q": {
"a": {
"$gte": 2
},
"b": {
"$gte": 2
}
},
"limit": 0
},
"keysExamined": 8,
"docsExamined": 8,
"ndeleted": 8,
"keysDeleted": 16,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "3"
},
"w": {
"$numberLong": "1"
}
}
},
"Database": {
"acquireCount": {
"W": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"w": {
"$numberLong": "1"
}
}
}
},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "170"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"execStats": {
"stage": "DELETE",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 0,
"needTime": 8,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"nWouldDelete": 8,
"nInvalidateSkips": 0,
"inputStage": {
"stage": "FETCH",
"filter": {
"b": {
"$gte": 2
}
},
"nReturned": 8,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 8,
"needTime": 0,
"needYield": 0,
"saveState": 8,
"restoreState": 8,
"isEOF": 1,
"invalidates": 0,
"docsExamined": 8,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 8,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 8,
"needTime": 0,
"needYield": 0,
"saveState": 8,
"restoreState": 8,
"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": [
"[2.0, inf.0]"
]
},
"keysExamined": 8,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0,
"seenInvalidated": 0
}
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,162 +0,0 @@
{
"op": "remove",
"ns": "admin.test_db.coll",
"command": {
"q": {
"a": {
"$gte": 2
},
"b": {
"$gte": 2
}
},
"limit": 0
},
"keysExamined": 8,
"docsExamined": 8,
"ndeleted": 8,
"keysDeleted": 16,
"numYield": 0,
"queryHash": "CB67518C",
"planCacheKey": "1A9D8F44",
"locks": {
"ParallelBatchWriterMode": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "1"
},
"w": {
"$numberLong": "1"
}
}
},
"Database": {
"acquireCount": {
"W": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"w": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "17"
}
}
}
},
"flowControl": {
"acquireCount": {
"$numberLong": "1"
}
},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "170"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"execStats": {
"stage": "DELETE",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 0,
"needTime": 8,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"nWouldDelete": 8,
"inputStage": {
"stage": "FETCH",
"filter": {
"b": {
"$gte": 2
}
},
"nReturned": 8,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 8,
"needTime": 0,
"needYield": 0,
"saveState": 8,
"restoreState": 8,
"isEOF": 1,
"docsExamined": 8,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 8,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 8,
"needTime": 0,
"needYield": 0,
"saveState": 8,
"restoreState": 8,
"isEOF": 1,
"keyPattern": {
"a": 1
},
"indexName": "a_1",
"isMultiKey": false,
"multiKeyPaths": {
"a": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"a": [
"[2.0, inf.0]"
]
},
"keysExamined": 8,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0
}
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,162 +0,0 @@
{
"op": "remove",
"ns": "admin.test_db.coll",
"command": {
"q": {
"a": {
"$gte": 2
},
"b": {
"$gte": 2
}
},
"limit": 0
},
"keysExamined": 8,
"docsExamined": 8,
"ndeleted": 8,
"keysDeleted": 16,
"numYield": 0,
"queryHash": "CB67518C",
"planCacheKey": "1A9D8F44",
"locks": {
"ParallelBatchWriterMode": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "1"
},
"w": {
"$numberLong": "1"
}
}
},
"Database": {
"acquireCount": {
"W": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"w": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {
"acquireCount": {
"$numberLong": "1"
}
},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "171"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"execStats": {
"stage": "DELETE",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 0,
"needTime": 8,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"nWouldDelete": 8,
"inputStage": {
"stage": "FETCH",
"filter": {
"b": {
"$gte": 2
}
},
"nReturned": 8,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 8,
"needTime": 0,
"needYield": 0,
"saveState": 8,
"restoreState": 8,
"isEOF": 1,
"docsExamined": 8,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 8,
"executionTimeMillisEstimate": 0,
"works": 9,
"advanced": 8,
"needTime": 0,
"needYield": 0,
"saveState": 8,
"restoreState": 8,
"isEOF": 1,
"keyPattern": {
"a": 1
},
"indexName": "a_1",
"isMultiKey": false,
"multiKeyPaths": {
"a": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"a": [
"[2.0, inf.0]"
]
},
"keysExamined": 8,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0
}
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,129 +0,0 @@
{
"op": "remove",
"ns": "admin.test_db.coll",
"command": {
"q": {
"a": {
"$gte": 2
},
"b": {
"$gte": 2
}
},
"limit": 1
},
"keysExamined": 1,
"docsExamined": 1,
"ndeleted": 1,
"keysDeleted": 2,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "1"
},
"w": {
"$numberLong": "1"
}
}
},
"Database": {
"acquireCount": {
"W": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"w": {
"$numberLong": "1"
}
}
}
},
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"execStats": {
"stage": "DELETE",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 2,
"advanced": 0,
"needTime": 1,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"nWouldDelete": 1,
"nInvalidateSkips": 0,
"inputStage": {
"stage": "FETCH",
"filter": {
"b": {
"$gte": 2
}
},
"nReturned": 1,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 1,
"needTime": 0,
"needYield": 0,
"saveState": 1,
"restoreState": 1,
"isEOF": 0,
"invalidates": 0,
"docsExamined": 1,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 1,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 1,
"needTime": 0,
"needYield": 0,
"saveState": 1,
"restoreState": 1,
"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": [
"[2.0, inf.0]"
]
},
"keysExamined": 1,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0,
"seenInvalidated": 0
}
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,139 +0,0 @@
{
"op": "remove",
"ns": "admin.test_db.coll",
"command": {
"q": {
"a": {
"$gte": 2
},
"b": {
"$gte": 2
}
},
"limit": 1
},
"keysExamined": 1,
"docsExamined": 1,
"ndeleted": 1,
"keysDeleted": 2,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "3"
},
"w": {
"$numberLong": "1"
}
}
},
"Database": {
"acquireCount": {
"W": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"w": {
"$numberLong": "1"
}
}
}
},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "170"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"execStats": {
"stage": "DELETE",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 2,
"advanced": 0,
"needTime": 1,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"nWouldDelete": 1,
"nInvalidateSkips": 0,
"inputStage": {
"stage": "FETCH",
"filter": {
"b": {
"$gte": 2
}
},
"nReturned": 1,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 1,
"needTime": 0,
"needYield": 0,
"saveState": 1,
"restoreState": 1,
"isEOF": 0,
"invalidates": 0,
"docsExamined": 1,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 1,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 1,
"needTime": 0,
"needYield": 0,
"saveState": 1,
"restoreState": 1,
"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": [
"[2.0, inf.0]"
]
},
"keysExamined": 1,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0,
"seenInvalidated": 0
}
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,165 +0,0 @@
{
"op": "remove",
"ns": "admin.test_db.coll",
"command": {
"q": {
"a": {
"$gte": 2
},
"b": {
"$gte": 2
}
},
"limit": 1
},
"keysExamined": 1,
"docsExamined": 1,
"ndeleted": 1,
"keysDeleted": 2,
"numYield": 0,
"queryHash": "CB67518C",
"planCacheKey": "1A9D8F44",
"locks": {
"ParallelBatchWriterMode": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "1"
},
"w": {
"$numberLong": "1"
}
}
},
"Database": {
"acquireCount": {
"W": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"w": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "3"
}
}
}
},
"flowControl": {
"acquireCount": {
"$numberLong": "1"
},
"timeAcquiringMicros": {
"$numberLong": "1"
}
},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "170"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"execStats": {
"stage": "DELETE",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 2,
"advanced": 0,
"needTime": 1,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"nWouldDelete": 1,
"inputStage": {
"stage": "FETCH",
"filter": {
"b": {
"$gte": 2
}
},
"nReturned": 1,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 1,
"needTime": 0,
"needYield": 0,
"saveState": 1,
"restoreState": 1,
"isEOF": 0,
"docsExamined": 1,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 1,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 1,
"needTime": 0,
"needYield": 0,
"saveState": 1,
"restoreState": 1,
"isEOF": 0,
"keyPattern": {
"a": 1
},
"indexName": "a_1",
"isMultiKey": false,
"multiKeyPaths": {
"a": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"a": [
"[2.0, inf.0]"
]
},
"keysExamined": 1,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0
}
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,165 +0,0 @@
{
"op": "remove",
"ns": "admin.test_db.coll",
"command": {
"q": {
"a": {
"$gte": 2
},
"b": {
"$gte": 2
}
},
"limit": 1
},
"keysExamined": 1,
"docsExamined": 1,
"ndeleted": 1,
"keysDeleted": 2,
"numYield": 0,
"queryHash": "CB67518C",
"planCacheKey": "1A9D8F44",
"locks": {
"ParallelBatchWriterMode": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "1"
},
"w": {
"$numberLong": "1"
}
}
},
"Database": {
"acquireCount": {
"W": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"w": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {
"acquireCount": {
"$numberLong": "1"
},
"timeAcquiringMicros": {
"$numberLong": "1"
}
},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "171"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"millis": 42,
"planSummary": "IXSCAN { a: 1 }",
"execStats": {
"stage": "DELETE",
"nReturned": 0,
"executionTimeMillisEstimate": 0,
"works": 2,
"advanced": 0,
"needTime": 1,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"nWouldDelete": 1,
"inputStage": {
"stage": "FETCH",
"filter": {
"b": {
"$gte": 2
}
},
"nReturned": 1,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 1,
"needTime": 0,
"needYield": 0,
"saveState": 1,
"restoreState": 1,
"isEOF": 0,
"docsExamined": 1,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 1,
"executionTimeMillisEstimate": 0,
"works": 1,
"advanced": 1,
"needTime": 0,
"needYield": 0,
"saveState": 1,
"restoreState": 1,
"isEOF": 0,
"keyPattern": {
"a": 1
},
"indexName": "a_1",
"isMultiKey": false,
"multiKeyPaths": {
"a": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"a": [
"[2.0, inf.0]"
]
},
"keysExamined": 1,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0
}
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}}}}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}}}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"distinct":"coll","key":"a","query":{"b":{"$gte":5}},"$db":"test"}}

View File

@@ -1,111 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"distinct": "test_db.coll",
"key": "a",
"query": {
"b": {
"$gte": 5
}
},
"lsid": {
"id": {
"$binary": "3VuocJZcQ9CWJYWXrV8mmA==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 5,
"docsExamined": 5,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"responseLength": 90,
"protocol": "op_msg",
"millis": 42,
"planSummary": "IXSCAN { b: 1 }",
"execStats": {
"stage": "FETCH",
"nReturned": 5,
"executionTimeMillisEstimate": 0,
"works": 6,
"advanced": 5,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"docsExamined": 5,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 5,
"executionTimeMillisEstimate": 0,
"works": 6,
"advanced": 5,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"keyPattern": {
"b": 1
},
"indexName": "b_1",
"isMultiKey": false,
"multiKeyPaths": {
"b": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"b": [
"[5.0, inf.0]"
]
},
"keysExamined": 5,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0,
"seenInvalidated": 0
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,121 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"distinct": "test_db.coll",
"key": "a",
"query": {
"b": {
"$gte": 5
}
},
"lsid": {
"id": {
"$binary": "Ij6ywjJlS7GvjQGmJDuSew==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 5,
"docsExamined": 5,
"numYield": 0,
"locks": {
"Global": {
"acquireCount": {
"r": {
"$numberLong": "3"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "170"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"responseLength": 106,
"protocol": "op_msg",
"millis": 42,
"planSummary": "IXSCAN { b: 1 }",
"execStats": {
"stage": "FETCH",
"nReturned": 5,
"executionTimeMillisEstimate": 0,
"works": 6,
"advanced": 5,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"docsExamined": 5,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 5,
"executionTimeMillisEstimate": 0,
"works": 6,
"advanced": 5,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"invalidates": 0,
"keyPattern": {
"b": 1
},
"indexName": "b_1",
"isMultiKey": false,
"multiKeyPaths": {
"b": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"b": [
"[5.0, inf.0]"
]
},
"keysExamined": 5,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0,
"seenInvalidated": 0
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,135 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"distinct": "test_db.coll",
"key": "a",
"query": {
"b": {
"$gte": 5
}
},
"lsid": {
"id": {
"$binary": "w0+//lTwRfusp4NGWN2KTw==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 5,
"docsExamined": 5,
"numYield": 0,
"queryHash": "0E87FD37",
"planCacheKey": "35E4240C",
"locks": {
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "170"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"responseLength": 106,
"protocol": "op_msg",
"millis": 42,
"planSummary": "IXSCAN { b: 1 }",
"execStats": {
"stage": "FETCH",
"nReturned": 5,
"executionTimeMillisEstimate": 0,
"works": 6,
"advanced": 5,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"docsExamined": 5,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 5,
"executionTimeMillisEstimate": 0,
"works": 6,
"advanced": 5,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"keyPattern": {
"b": 1
},
"indexName": "b_1",
"isMultiKey": false,
"multiKeyPaths": {
"b": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"b": [
"[5.0, inf.0]"
]
},
"keysExamined": 5,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -1,135 +0,0 @@
{
"op": "command",
"ns": "admin.test_db.coll",
"command": {
"distinct": "test_db.coll",
"key": "a",
"query": {
"b": {
"$gte": 5
}
},
"lsid": {
"id": {
"$binary": "1nZKpzSHT3y9/RwVfbXRkw==",
"$type": "04"
}
},
"$db": "admin"
},
"keysExamined": 5,
"docsExamined": 5,
"numYield": 0,
"queryHash": "0E87FD37",
"planCacheKey": "35E4240C",
"locks": {
"ReplicationStateTransition": {
"acquireCount": {
"w": {
"$numberLong": "2"
}
}
},
"Global": {
"acquireCount": {
"r": {
"$numberLong": "2"
}
}
},
"Database": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Collection": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
},
"Mutex": {
"acquireCount": {
"r": {
"$numberLong": "1"
}
}
}
},
"flowControl": {},
"storage": {
"data": {
"bytesRead": {
"$numberLong": "171"
},
"timeReadingMicros": {
"$numberLong": "1"
}
}
},
"responseLength": 106,
"protocol": "op_msg",
"millis": 42,
"planSummary": "IXSCAN { b: 1 }",
"execStats": {
"stage": "FETCH",
"nReturned": 5,
"executionTimeMillisEstimate": 0,
"works": 6,
"advanced": 5,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"docsExamined": 5,
"alreadyHasObj": 0,
"inputStage": {
"stage": "IXSCAN",
"nReturned": 5,
"executionTimeMillisEstimate": 0,
"works": 6,
"advanced": 5,
"needTime": 0,
"needYield": 0,
"saveState": 0,
"restoreState": 0,
"isEOF": 1,
"keyPattern": {
"b": 1
},
"indexName": "b_1",
"isMultiKey": false,
"multiKeyPaths": {
"b": []
},
"isUnique": false,
"isSparse": false,
"isPartial": false,
"indexVersion": 2,
"direction": "forward",
"indexBounds": {
"b": [
"[5.0, inf.0]"
]
},
"keysExamined": 5,
"seeks": 1,
"dupsTested": 0,
"dupsDropped": 0
}
},
"ts": "2020-01-01T00:00:00.000Z",
"client": "127.0.0.1",
"appName": "MongoDB Shell",
"allUsers": [
{
"user": "root",
"db": "admin"
}
],
"user": "root@admin"
}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"$eval":"1"}}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"$eval":"1"}}

View File

@@ -0,0 +1 @@
{"ns":"test","op":"command","command":{"$eval":"1"}}

View File

@@ -0,0 +1 @@
{"ns":"test","op":"command","command":{"$eval":"1"}}

View File

@@ -0,0 +1 @@
{"ns":"test","op":"command","command":{"$eval":"1","$db":"test"}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"query","query":{"query":{},"$explain":true}}

View File

@@ -0,0 +1 @@
{"ns":"test.$cmd","op":"command","command":{"explain":{"find":"coll","filter":{},"options":{}},"verbosity":"queryPlanner"}}

View File

@@ -0,0 +1 @@
{"ns":"test.coll","op":"command","command":{"explain":{"find":"coll","filter":{}},"verbosity":"queryPlanner"}}

Some files were not shown because too many files have changed in this diff Show More