175 QueryPlanKilled: Query plan killed during execution(查询计划在执行期间被终止)
MongoDB含义
由于底层数据/集合发生变化,正在运行的查询的计划失效并被终止。查询因无法安全继续而被中止。
原因
在查询运行期间(尤其是游标处于打开状态时),集合被删除、其使用的索引被删除,或发生了重命名/重新配置。长时间运行的 getMore 调用期间发生底层变更是典型诱因。
解决方法
重新启动查询/游标(重试)。确保在查询运行期间不对集合或索引执行破坏性 DDL(drop、dropIndex、rename);将此类维护安排在查询流量之外。缩短长时间运行的读取,并确保所需的索引是长期保留的。
同一数据库的其他条目
- 189 PrimarySteppedDownPrimary stepped down while operation was in progress(操作进行期间主节点已降级)
- 24 LockTimeoutOperation exceeded time limit waiting for a lock(操作等待锁时超出时间限制)
- 7 HostNotFoundCould not find host(找不到主机)
- 11602 InterruptedDueToReplStateChangeOperation interrupted due to a replication state change(操作因复制状态变化而被中断)
- 136 CappedPositionLostCapped collection position lost(固定集合位置丢失)
- 28 PathNotViableCannot use the part of the path to traverse the element(无法使用路径的一部分遍历元素)
- 216 ElectionInProgressElectionInProgress