I’m planning to drop unused collections.
Before that, I checked the log messages and found two patterns of log messages below.
- command <db>.<collections> command: getMore { getMore: 3165246867793876361, collection: “<collections>”, $readPreference: { mode: “secondaryPreferred” }, $db: “<db>” } originatingCommand: { find: UUID(“<UUID>”), noCursorTimeout: true, $readPreference: { mode: “secondaryPreferred” }, $db: “<db>” } planSummary: COLLSCAN cursorid:3165246867793876361 keysExamined:0 docsExamined:123945 numYields:968 nreturned:123945 reslen:16777435 locks:{ ReplicationStateTransition: { acquireCount: { w: 969 } }, Global: { acquireCount: { r: 969 } }, Database: { acquireCount: { r: 969 } }, Collection: { acquireCount: { r: 969 } }, Mutex: { acquireCount: { r: 1 } } } storage:{ data: { bytesRead: 16805854, timeReadingMicros: 67676 } } protocol:op_msg 124ms
- Unauthorized: not authorized on <db> to execute command { collStats: “<collection>”, verbose: true, lsid: { id: UUID(“<UUID>”) }, $clusterTime: { clusterTime: Timestamp(1688149535, 1486), signature: { hash: BinData(0, D5E8AB41724B30B7D96861F72AB25F4AC3E5B9D8), keyId: 7199120492454744961 } }, $db: “<db>” }
Why do I get this log message when I don’t fully use the collection and what does it mean?