当前位置:网站首页>Impressive bug summary (continuously updated)
Impressive bug summary (continuously updated)
2022-07-01 11:23:00 【Floating snow】
Request asynchronous problem (20220627)
The appearance of the problem
Every time you switch tasks for patrol , Yes 5% About the probability of collapse
The root cause
When correct, the network request sequence :
- The front end requests /api/affair/inspection/mGetInspectionTask
- The front end requests /api/affair/inspection/updateInspectionTask
- /api/affair/inspection/updateInspectionTask modify the database status=2
- /api/affair/inspection/mGetInspectionTask Arrive at the database and get status=2
- /api/affair/inspection/updateInspectionTask Return front end results , Select this task to patrol
- /api/affair/inspection/mGetInspectionTask return status=2 The results are given to the front end , The status is correct
Crash request sequence :
- The front end requests /api/affair/inspection/mGetInspectionTask
- The front end requests /api/affair/inspection/updateInspectionTask
- /api/affair/inspection/mGetInspectionTask Arrive at the database and get status=1
- /api/affair/inspection/updateInspectionTask modify the database status=2
- /api/affair/inspection/updateInspectionTask Return front end results , Select this task to patrol
- /api/affair/inspection/mGetInspectionTask return status=1 The results are given to the front end , As a result, patrol inspection is not allowed
Solution
mGetInspectionTask During patrol task , If the timestamp of accessing the database is less than that of modifying the database , Then abandon this state
边栏推荐
猜你喜欢

Several cases of index failure

y48.第三章 Kubernetes从入门到精通 -- Pod的状态和探针(二一)
![[AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >](/img/62/562e93e66addc8e86c0a19bc514389.png)
[AI information monthly] 350 + resources! All the information and trends that can't be missed in June are here! < Download attached >

Why must we move from Devops to bizdevops?

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

Tempest HDMI leak reception 4

Intel Labs annonce de nouveaux progrès en photonique intégrée

Unittest 框架介绍及第一个demo

Comment Cao définit la décimale de dimension

"Target detection" + "visual understanding" to realize the understanding and translation of the input image (with source code)
随机推荐
"Target detection" + "visual understanding" to realize the understanding and translation of the input image (with source code)
获取键代码
Why must we move from Devops to bizdevops?
Raspberry pie 4B installation tensorflow2.0[easy to understand]
How to realize the four isolation levels of MySQL (brief)
Are the consequences of securities account cancellation safe
In June 2022, it was the first programming language?!
Nordic nrf52832 flash 下载M4错误
Neurips 2022 | cell image segmentation competition officially launched!
Brief analysis of edgedb architecture
[buuctf.reverse] 144_[XMAN2018排位赛]easyvm
Web foundation of network security note 02
Wechat applet development - user authorization to log in to "suggestions collection"
Give up high paying jobs in Shenzhen and go back home
Whether lending a bank card to others constitutes a crime
关于Keil编译程序出现“File has been changed outside the editor,reload?”的解决方法
Kafuka learning path (I) Kafuka installation and simple use
ES6 Promise用法小结
Tempest HDMI leak reception 4
solo 可以通过 IPV6 访问吗?