当前位置:网站首页>印象深刻的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巡查任务时,如果访问数据库的时间戳小于修改数据库的时间戳,那么舍弃该状态
边栏推荐
- Paxos 入门
- Internal control of fund managers
- CVPR22 |CMT:CNN和Transformer的高效结合(开源)
- Neurips 2022 | cell image segmentation competition officially launched!
- activity工作流引擎
- Tempest HDMI leak receive 5
- Website source code whole site download website template source code download
- 编译调试Net6源码
- VScode快捷键(最全)[通俗易懂]
- China's cellular Internet of things users have reached 1.59 billion, and are expected to surpass mobile phone users within this year
猜你喜欢
金融壹账通拟7月4日香港上市:2年亏近30亿 市值蒸发超90%
CVPR 2022 | self enhanced unpaired image defogging based on density and depth decomposition
Brief analysis of edgedb architecture
Tempest HDMI leak receive 5
【MAUI】为 Label、Image 等控件添加点击事件
数据库实验报告(一)
JS foundation -- data type
Unittest框架中跳过要执行的测试用例
MIT's latest paper, "the need for interpretable features: motivation and classification": building interpretability in the constituent elements of machine learning models
CVPR22 |CMT:CNN和Transformer的高效结合(开源)
随机推荐
Website source code whole site download website template source code download
超详细黑苹果安装图文教程送EFI配置合集及系统
名创拟7月13日上市:最高发行价22.1港元 单季净利下降19%
flutter path_provider: ^2.0.10可以获取临时目录
Face detection and recognition system based on mtcnn+facenet
Combination of Oracle and JSON
Intel Labs annonce de nouveaux progrès en photonique intégrée
开发说,“ 这个不用测,回归正常流程就行 “,测试人员怎么办?
Wonderful! MarkBERT
Tempest HDMI leak receive 3
How does MySQL copy table data from one database to another (two databases are not linked to the same database)
Mysql的四个隔离级别是如何实现的 (简要)
LeetCode. 515. Find the maximum value in each tree row___ BFS + DFS + BFS by layer
MySQL IN 和 NOT IN () 空列表报错
关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法
全局过滤器(处理时间格式)
Cvpr22 | CMT: efficient combination of CNN and transformer (open source)
CVPR 2022 | 基于密度与深度分解的自增强非成对图像去雾
Getting started with Paxos
TMUX usage