awslabs / awslabs/aws-mobile-appsync-sdk-android
Fatal Exception: android.database.sqlite.SQLiteDatabaseLockedException
- Dominant language
- Java
- Stars
- 106
- Forks
- 56
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Database is locked when AppSyncMutationSqlCacheOperations.deleteRecord is called (see stacktrace)
**Expected behavior**
SQLiteDatabase should not throw the LockedException.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment(please complete the following information):**
- AppSync SDK Version: 2.7.9
**Device Information (please complete the following information):**
- Device: samsung, OPPO, Xiaomi, LGE
- Android Version: 5, 6, 7, 8
Contributor guide
Research direction
Start with AppSyncMutationSqlCacheOperations.deleteRecord and the linked stacktrace screenshot, then investigate the SQLite locking path on the listed Android versions and devices. No source file or test is named in the issue. Done means the operation no longer throws SQLiteDatabaseLockedException under the reported conditions, with regression coverage added where appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, graphql, java, sqlite
- Domain
- databases, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100