awslabs / awslabs/aws-mobile-appsync-sdk-android

Fatal Exception: android.database.sqlite.SQLiteDatabaseLockedException

Open
#147 3 comments 0 reactions 0 assignees View on GitHub
bug
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.
![image](https://user-images.githubusercontent.com/39388837/55952615-3bc95700-5c84-11e9-9ae5-447d40bbdfdd.png)

**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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.