bo808080
bo808080
  • 发布:2021-12-27 21:03
  • 更新:2022-01-17 16:05
  • 阅读:872

uniCloud 报 Unable to acquire lock 具体是什么原因?

分类:uniCloud
2021-12-27T19:13:11.774Z START  
2021-12-27T19:13:12.472Z REPORT RequestId:fa8c6066-6705-11ec-a727-5af6d5992abd Duration:195ms Memory:256MB MemUsage:49.706398MB  
2021-12-27T19:13:12.472Z END  
2021-12-27T19:13:12.472Z ERROR RequestId:fa8c6066-6705-11ec-a727-5af6d5992abd Result:{"errCode":1,"errMsg":"user code exception caught","stackTrace":"[FailedOperation.Update] (LockTimeout) Unable to acquire lock '{7073718380437575470: Database, 156189352796493614}' within a max lock request timeout of '5ms' milliseconds.  
Error: [FailedOperation.Update] (LockTimeout) Unable to acquire lock '{7073718380437575470: Database, 156189352796493614}' within a max lock request timeout of '5ms' milliseconds.  
    at Object.exports.E (/var/user/node_modules/@cloudbase/node-sdk/lib/utils/utils.js:24:12)  
    at processReturn (/var/user/node_modules/@cloudbase/node-sdk/lib/utils/utils.js:43:19)  
    at Object.exports.default (/var/user/node_modules/@cloudbase/node-sdk/lib/utils/httpRequest.js:377:20)  
    at \u003canonymous\u003e  
    at process._tickCallback (internal/process/next_tick.js:188:7)"}  
2021-12-27 21:03 负责人:无 分享
已邀请:
DCloud_uniCloud_WYQ

DCloud_uniCloud_WYQ

什么操作触发的?是不是云函数return之后还有其他逻辑还在执行?

bo808080

bo808080 (作者)

最新报错

2022-01-17T12:38:50.540Z START  
2022-01-17T12:38:50.641Z "3"  
2022-01-17T12:38:50.723Z "newPrice:4605"  
2022-01-17T12:38:51.778Z REPORT RequestId:5e086004-774f-11ec-bebd-5254000b3561 Duration:332ms Memory:1024MB MemUsage:52.122849MB  
2022-01-17T12:38:51.778Z END  
2022-01-17T12:38:51.778Z ERROR RequestId:5e086004-774f-11ec-bebd-5254000b3561 Result:{"errCode":1,"errMsg":"user code exception caught","stackTrace":"[FailedOperation.Insert] (LockTimeout) Unable to acquire lock '{7073718380437575470: Database, 156189352796493614}' within a max lock request timeout of '5ms' milliseconds.  
Error: [FailedOperation.Insert] (LockTimeout) Unable to acquire lock '{7073718380437575470: Database, 156189352796493614}' within a max lock request timeout of '5ms' milliseconds.  
    at Object.exports.E (/var/user/node_modules/@cloudbase/node-sdk/lib/utils/utils.js:24:12)  
    at processReturn (/var/user/node_modules/@cloudbase/node-sdk/lib/utils/utils.js:43:19)  
    at Object.exports.default (/var/user/node_modules/@cloudbase/node-sdk/lib/utils/httpRequest.js:377:20)  
    at \u003canonymous\u003e  
    at process._tickCallback (internal/process/next_tick.js:188:7)"}  

排查了代码, return 之后没有逻辑在执行

该问题目前已经被锁定, 无法添加新回复