当前位置:网站首页>印象深刻的bug汇总(持续更新)
印象深刻的bug汇总(持续更新)
2022-07-01 11:18:00 【飘飞雪】
请求异步问题(20220627)
问题表象
每次切换任务巡查时,有5%左右概率崩溃
根本原因
正确时网络请求顺序:
- 前端请求/api/affair/inspection/mGetInspectionTask
- 前端请求/api/affair/inspection/updateInspectionTask
- /api/affair/inspection/updateInspectionTask修改数据库status=2
- /api/affair/inspection/mGetInspectionTask到达数据库拿到status=2
- /api/affair/inspection/updateInspectionTask返回前端结果,选中该任务巡查
- /api/affair/inspection/mGetInspectionTask返回status=2的结果给前端,状态正确
崩溃请求顺序:
- 前端请求/api/affair/inspection/mGetInspectionTask
- 前端请求/api/affair/inspection/updateInspectionTask
- /api/affair/inspection/mGetInspectionTask到达数据库拿到status=1
- /api/affair/inspection/updateInspectionTask修改数据库status=2
- /api/affair/inspection/updateInspectionTask返回前端结果,选中该任务巡查
- /api/affair/inspection/mGetInspectionTask返回status=1的结果给前端,导致不可巡查
解决方案
mGetInspectionTask巡查任务时,如果访问数据库的时间戳小于修改数据库的时间戳,那么舍弃该状态
边栏推荐
- sshd_config 中 PermitRootLogin 的探讨
- Face detection and recognition system based on mtcnn+facenet
- CVPR22 |CMT:CNN和Transformer的高效结合(开源)
- Graduation season · advanced technology er
- Matrix of numpy
- How does MySQL copy table data from one database to another (two databases are not linked to the same database)
- Nordic nrf52832 flash download M4 error
- 关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法
- 数据库实验报告(一)
- 华泰证券网上开户安全吗?
猜你喜欢

Database experiment report (II)

The idea runs with an error command line is too long Shorten command line for...

Face detection and recognition system based on mtcnn+facenet

Combination of Oracle and JSON

Brief analysis of edgedb architecture

Tianrunyun, invested by Tian Suning, was listed: its market value was 2.2 billion Hong Kong, and its first year profit decreased by 75%

PHP有哪些优势和劣势

y48.第三章 Kubernetes从入门到精通 -- Pod的状态和探针(二一)

CPI教程-异步接口创建及使用

Intel Labs announces new progress in integrated photonics research
随机推荐
谷歌新论文-Minerva:用语言模型解决定量推理问题
Face detection and recognition system based on mtcnn+facenet
Cann operator: using iterators to efficiently realize tensor data cutting and blocking processing
Website source code whole site download website template source code download
CVPR22 |CMT:CNN和Transformer的高效结合(开源)
YoDA统一数据应用——融合计算在蚂蚁风险场景下的探索与实践
China's cellular Internet of things users have reached 1.59 billion, and are expected to surpass mobile phone users within this year
No statements may be issued when any streaming result sets are open and in use on a given connection
Can I open an account today and buy stocks today? Is it safe to open an account online?
全局过滤器(处理时间格式)
LeetCode 438. Find all letter ectopic words in the string__ sliding window
The first anniversary of the data security law, which four major changes are coming?
Tianrunyun, invested by Tian Suning, was listed: its market value was 2.2 billion Hong Kong, and its first year profit decreased by 75%
solo 可以通过 IPV6 访问吗?
Tempest HDMI leak receive 3
Technology sharing | introduction to linkis parameters
Shangtang entered the lifting period: the core management voluntarily banned and strengthened the company's long-term value confidence
How to realize the four isolation levels of MySQL (brief)
MySQL IN 和 NOT IN () 空列表报错
LeetCode.每日一题 剑指 Offer II 091. 粉刷房子 (DP问题)