[SERVER-27819] getMore on views are logged differently than on find Created: 26/Jan/17  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Logging, Querying
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Asya Kamsky Assignee: Backlog - Query Execution
Resolution: Unresolved Votes: 0
Labels: neweng, query-44-grooming, read-only-views
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Query Execution
Operating System: ALL
Participants:

 Description   

Views log find as command on the view but getMore as having originatingCommand on the underlying collection. Could lead to confusion when searching logs.

2017-01-24T15:53:09.023-0600 I COMMAND  [conn341] command bestbuy.prodview appName: "MongoDB Shell" command: find { find: "prodview", filter: { type: "BlackTie" } } planSummary: IXSCAN { type: 1.0, customerReviewCount: -1.0 } cursorid:22217593970 keysExamined:141 docsExamined:141 numYields:1 nreturned:101 reslen:10113431 locks:{ Global: { acquireCount: { r: 14 } }, Database: { acquireCount: { r: 7 } }, Collection: { acquireCount: { r: 6 } } } protocol:op_command 20ms
2017-01-24T15:53:09.050-0600 I COMMAND  [conn341] command bestbuy.prodview appName: "MongoDB Shell" command: getMore { getMore: 22217593970, collection: "prodview" } originatingCommand: { aggregate: "products", pipeline: [ { $match: { type: "BlackTie" } } ], cursor: { batchSize: 101 } } planSummary: IXSCAN { type: 1.0, customerReviewCount: -1.0 } cursorid:22217593970 keysExamined:127 docsExamined:127 numYields:0 nreturned:144 reslen:16741683 locks:{ Global: { acquireCount: { r: 8 } }, Database: { acquireCount: { r: 4 } }, Collection: { acquireCount: { r: 4 } } } protocol:op_command 16ms
2017-01-24T15:53:09.077-0600 I COMMAND  [conn341] command bestbuy.prodview appName: "MongoDB Shell" command: getMore { getMore: 22217593970, collection: "prodview" } originatingCommand: { aggregate: "products", pipeline: [ { $match: { type: "BlackTie" } } ], cursor: { batchSize: 101 } } planSummary: IXSCAN { type: 1.0, customerReviewCount: -1.0 } cursorid:22217593970 keysExamined:118 docsExamined:118 numYields:0 nreturned:132 reslen:16639805 locks:{ Global: { acquireCount: { r: 8 } }, Database: { acquireCount: { r: 4 } }, Collection: { acquireCount: { r: 4 } } } protocol:op_command 16ms


Generated at Thu Feb 08 04:16:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.