Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrency control when requesting the kernel API #9939

Closed
3 tasks done
zxhd863943427 opened this issue Dec 20, 2023 · 7 comments
Closed
3 tasks done

Concurrency control when requesting the kernel API #9939

zxhd863943427 opened this issue Dec 20, 2023 · 7 comments
Assignees
Milestone

Comments

@zxhd863943427
Copy link
Contributor

zxhd863943427 commented Dec 20, 2023

并发执行api失败

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

图片

最终的结果是块中缺失属性。

Expected result

两者都能正确地执行

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.11.3
- Operating System: win10 
- Browser (if used):

Log file

无需日志

More information

No response

@88250
Copy link
Member

88250 commented Dec 20, 2023

我看好像返回状态是 200 哦,具体是什么表现?

@zxhd863943427
Copy link
Contributor Author

api调用成功,但是查看块属性时发现并没有成功设置属性。

@88250
Copy link
Member

88250 commented Dec 20, 2023

是被覆盖了还是?

@88250
Copy link
Member

88250 commented Dec 21, 2023

暂时无法确定重现步骤,我先关闭了,后续如果有测试代码或者重现步骤请随时跟帖,谢谢。

@88250 88250 closed this as completed Dec 21, 2023
@zxhd863943427
Copy link
Contributor Author

最简单的方式:

fetchSyncPost('/api/riff/addRiffCards',{"deckID":"20230218211946-2kw8jgx","blockIDs":["20230428155440-s8hzxrz"]})
fetchSyncPost('/api/attr/setBlockAttrs',{"id":"20230428155440-s8hzxrz","attrs":{"custom-attr1":"true"}})
fetchSyncPost('/api/attr/setBlockAttrs',{"id":"20230428155440-s8hzxrz","attrs":{"custom-attr2":"true"}})
fetchSyncPost('/api/attr/setBlockAttrs',{"id":"20230428155440-s8hzxrz","attrs":{"custom-attr3":"true"}})
fetchSyncPost('/api/attr/setBlockAttrs',{"id":"20230428155440-s8hzxrz","attrs":{"custom-attr4":"true"}})

大概率属性会缺失。
这是我这边的执行效果:
图片

@88250
Copy link
Member

88250 commented Dec 21, 2023

好的,稍晚点我试试。

@88250 88250 self-assigned this Dec 22, 2023
@88250 88250 added this to the 2.11.4 milestone Dec 22, 2023
@88250 88250 reopened this Dec 22, 2023
@88250
Copy link
Member

88250 commented Dec 22, 2023

可以重现问题了,下个版本改进,感谢反馈。

@88250 88250 changed the title 并发执行api失败 Concurrency control when requesting the kernel API Dec 22, 2023
@88250 88250 closed this as completed Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants