openim-sdk-core icon indicating copy to clipboard operation
openim-sdk-core copied to clipboard

Bug: When flooding, some messages in the middle fail to send.

Open wxuanF opened this issue 1 year ago • 2 comments

What happened?

When flooding, some messages in the middle fail to send. image

Upon re-entering the group chat after flooding, the messages that failed to send are not visible (Upon re-entering the group chat after flooding, it is unclear whether the messages have disappeared or if the exclamation marks indicating failure are missing.).

What did you expect to happen?

.

How can we reproduce it (as minimally and precisely as possible)?

.

Anything else we need to know?

No response

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

wxuanF avatar Jan 26 '24 03:01 wxuanF

The issue is caused by SQLite's concurrency limitations. When the message reception speed is too high, database access concurrency increases, leading to db is locked errors. The SDK has now added a global read-write lock at the application layer to prevent this issue.

FGadvancer avatar Oct 29 '24 04:10 FGadvancer