重现步骤

[步骤]

MongoDB.Driver.MongoBulkWriteException`1[Zhcxkj.AutoChoose.MgoModels.ProductFeatures.Advert_Word_Listing]: A bulk write operation resulted in one or more errors. WriteErrors: [ { Category : "DuplicateKey", Code : 11000, Message : "E11000 duplicate key error collection: zhcxkj_autochoose.Advert_Word_Listing index: uidx_key dup key: { : "31323734312d31353232363058424a4958572de3838fe383a0e382b9e382bfe383bc20e382b1e383bce382b820e9bb84e889b2" }" } ].
at MongoDB.Driver.MongoCollectionImpl`1.BulkWriteAsync(IClientSessionHandle session, IEnumerable`1 requests, BulkWriteOptions options, CancellationToken cancellationToken)
at MongoDB.Driver.MongoCollectionImpl`1.UsingImplicitSessionAsync[TResult](Func`2 funcAsync, CancellationToken cancellationToken)
at Zhcxkj.MongoDB.DbRepository.Repository`1.BatchUpdateAsync(IEnumerable`1 items, List`1 filterFields, List`1 onlyInsertFields, String collName, Boolean isMany, Boolean isUpsert, List`1 incrementFields)
at Zhcxkj.MongoDB.DbRepository.Repository`1.BatchUpdateAsync(IEnumerable`1 items, List`1 filterFields, List`1 onlyUpdateFields, List`1 incrementFields, String collName, Boolean isMany, Boolean isUpsert)
at Zhcxkj.AutoChoose.MgoRepositories.Implement.ProductFeatures.Advert_Word_Listing_MgoRepository.SaveAsync(List`1 list) in /src/Zhcxkj.AutoChoose.MgoRepositories/Implement/ProductFeatures/Advert_Word_Listing_MgoRepository.cs:line 81
at Zhcxkj.AutoChoose.Services.Implement.ProductFeatures.Advert_Word_Service.SaveWordListingAsync(List`1 list) in /src/Zhcxkj.AutoChoose.Services/Implement/ProductFeatures/Advert_Word_Service.cs:line 103。A bulk write operation resulted in one or more errors. WriteErrors: [ { Category : "DuplicateKey", Code : 11000, Message : "E11000 duplicate key error collection: zhcxkj_autochoose.Advert_Word_Listing index: uidx_key dup key: { : "31323734312d31353232363058424a4958572de3838fe383a0e382b9e382bfe383bc20e382b1e383bce382b820e9bb84e889b2" }" } ].

[结果]


[期望]


历史记录  
  1. 2023-08-11 17:53:28, 由 程宽 创建。
  2. 2023-08-11 18:53:14, 由 张家添 解决,方案为 服务器原因 。
    修改了 解决方案,旧值为 "",新值为 "server"。
    修改了 解决版本,旧值为 "",新值为 "trunk"。
    修改了 解决日期,旧值为 "",新值为 "2023-08-11 18:52:18"。
    修改了 指派给 ,旧值为 "zhangjiatian",新值为 "chengkuan"。
    修改了 Bug状态 ,旧值为 "active",新值为 "resolved"。
    修改了 是否确认,旧值为 "0",新值为 "1"。
    修改了 解决者 ,旧值为 "",新值为 "zhangjiatian"。
    用的方法是不存在插入,不知道为什么会报这个错,架构师看服务器有打挂情况
  3. 2023-08-14 14:51:20, 由 程宽 关闭。
    修改了 Bug状态 ,旧值为 "resolved",新值为 "closed"。
    修改了 指派给 ,旧值为 "chengkuan",新值为 "closed"。
    修改了 由谁关闭,旧值为 "",新值为 "chengkuan"。
    修改了 关闭日期,旧值为 "",新值为 "2023-08-14 14:51:20"。
所属项目 智能中心-需求池
所属模块 战略独立项目   智能选品
所属计划
所属迭代 智能中心-智能选品迭代
Bug类型
严重程度 提示
优先级 P2
Bug状态 已关闭
业务部门
影响功能
开发责任人 张家添
测试责任人 程宽
解决时效 0
激活次数 0
激活日期
是否确认 是
当前指派 Closed 于 2023-08-14 14:51:20
截止日期 0000-00-00
上线时间
上线时效
操作系统
浏览器
关键词
抄送给
所属迭代 智能中心-智能选品迭代
相关需求
相关任务
由谁创建 程宽 于 2023-08-11 17:53:27
影响环境 600
由谁解决 张家添 于 2023-08-11 18:52:18
解决版本 主干
解决方案 服务器原因
由谁关闭 程宽 于 2023-08-14 14:51:20
最后修改 程宽 于 2023-08-14 14:51:20
相关Bug