You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a few subsequent event insertion, SQLite sqlite3_step() returns busy state. The SDK does not retry the assertion attempt.
Observation
Function saveEvent(_ message: String) does not check for SQLITE_BUSY and assumes error when no SQLITE_DONE is returned. In fact sqlite3_step can return the following values:
Describe the bug
After a few subsequent event insertion, SQLite
sqlite3_step()
returns busy state. The SDK does not retry the assertion attempt.Observation
Function
saveEvent(_ message: String)
does not check for SQLITE_BUSY and assumes error when noSQLITE_DONE
is returned. In factsqlite3_step
can return the following values:References:
https://github.com/rudderlabs/rudder-sdk-ios/blob/master-v2/Sources/Classes/Client/RSDatabaseManager.swift#L50
https://www.sqlite.org/c3ref/step.html
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
Upon receiving a busy state, we expect the SDK to retry insertion again later.
Version of the iOS SDK
iOS SDK v2.4.2
** Initialization used **
The text was updated successfully, but these errors were encountered: