Operational Defect Database

BugZero found this defect 74 days ago.

MongoDB | 2600845

Make removeQuerySettings retryable

Last update date:

3/12/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

8.0.0-rc0

Description:

Info

Symptom: the 'removeQuerySettings' command is retried by the client mongo (legacy) shell on primary step-down, even though the original command has succeeded. [js_test:query_settings_debug_query_shape] =-=-=-= Retrying on network error for command :: removeQuerySettings, CommandID: 22, error: Error: network error while attempting to run command 'removeQuerySettings' on host 'localhost:20000' :: caused by :: dbclient error communicating with server localhost:20000 :: caused by :: futurize :: caused by :: Connection closed by peer, command: { "removeQuerySettings" : { "aggregate" : "query_settings_debug_query_shape", "$db" : "test", "pipeline" : [ { "$lookup" : { "from" : "inventory", "localField" : "item", "foreignField" : "sku", "as" : "inventory_docs" } }, { "$match" : { "qty" : { "$lt" : 5 }, "manufacturer" : { "$in" : [ "Acme Corporation", "Umbrella Corporation" ] } } }, { "$count" : "itemsLowOnStock" } ] }, "lsid" : { "id" : UUID("eb8945be-1f3d-44c8-8478-309175475b16") }, "$clusterTime" : { "clusterTime" : Timestamp(1705536600, 6), "signature" : { "hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="), "keyId" : NumberLong(0) } } }

Top User Comments

xgen-internal-githook commented on Tue, 12 Mar 2024 03:53:15 +0000: Author: {'name': 'romanskas', 'email': '30618745+romanskas@users.noreply.github.com', 'username': 'romanskas'} Message: SERVER-87585 Make removeQuerySettings retryable (#19802) Until this change 'removeQuerySettings' would throw when the setting is not found. With this behaviour 'removeQuerySettings' cannot be re-tried, which causes problems in test infrastructure. Therefore we have decided not to throw when the settings was not found. GitOrigin-RevId: fd2ff323d5831eedeb130609097d4fbdc49d238e Branch: master https://github.com/mongodb/mongo/commit/68eb5e43e5ae5445ee3b91f14902c91b8e5c3f97

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...