Coder Social home page Coder Social logo

偶发性崩溃 about chloe HOT 8 CLOSED

nodyang avatar nodyang commented on July 19, 2024
偶发性崩溃

from chloe.

Comments (8)

nodyang avatar nodyang commented on July 19, 2024

这个扩展很多地方在用 唯一的区别别的地方没用
1699839091487
锁。研究好几天了。不知道哪有问题。还不是必现。大分部场景是Mq 并发过来的。直接调用都么有问题

from chloe.

shuxinqin avatar shuxinqin commented on July 19, 2024

看不出问题原因,先不调用 FilterDeletedAndDisabled 方法,改成 query.Where(a=>a.IsDelete == false).Where(a=>a.IsEnabled == false) 试试看效果

from chloe.

shuxinqin avatar shuxinqin commented on July 19, 2024

image
确定一下是否就是这个方法引发的异常?

from chloe.

nodyang avatar nodyang commented on July 19, 2024

看不出问题原因,先不调用 FilterDeletedAndDisabled 方法,改成 query.Where(a=>a.IsDelete == false).Where(a=>a.IsEnabled == false) 试试看效果

目前改成这样了 我在试试。就双11 出现过这样的问题。还是偶发性的。

from chloe.

shuxinqin avatar shuxinqin commented on July 19, 2024

出现那个异常有几种情况:
1 dbContext.Query《Entity》() Entity有IsDeleted属性,但配置了不映射数据库
2 IsDeleted属性映射了数据库,但使用如 dbContext.Query《Entity》().Select(a=> new Entity { Id = a.Id, Name = a.Name ... } ).Where(a=>a.IsDeleted ==true ) ,其中 Select lamda 里不包含 IsDeleted,后续Where又使用了 IsDeleted 属性也会报错

不过这两种用法的情况都是必现的,不会是偶发性。所以目测我也不好猜哪里的问题- -

from chloe.

nodyang avatar nodyang commented on July 19, 2024

出现那个异常有几种情况: 1 dbContext.Query《Entity》() Entity有IsDeleted属性,但配置了不映射数据库 2 IsDeleted属性映射了数据库,但使用如 dbContext.Query《Entity》().Select(a=> new Entity { Id = a.Id, Name = a.Name ... } ).Where(a=>a.IsDeleted ==true ) ,其中 Select lamda 里不包含 IsDeleted,后续Where又使用了 IsDeleted 属性也会报错

不过这两种用法的情况都是必现的,不会是偶发性。所以目测我也不好猜哪里的问题- -

from chloe.

nodyang avatar nodyang commented on July 19, 2024

我是研究了2天。无果才问得。之前都没有问题。最近双11 出现的。 没事我已经改了。双11 也过去了

from chloe.

shuxinqin avatar shuxinqin commented on July 19, 2024

怎么说?还出现这个异常吗?

from chloe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.