Skip to content

[BUG] High async storage usage #294

Open
@matinzd

Description

@matinzd

Is there an existing issue for this?

  • I have searched the existing issues

SDK Version

3.2.2

Current Behavior

High storage usage on AsyncStorage.

Expected Behavior

The storage should be flushed when old data is not needed anymore.

Steps To Reproduce

  1. Install optimizely SDK
  2. Release it to production with a error reporting tool
  3. You may see some users getting out of storage errors or hit limits for async storage manifest

React Framework

React Native

Browsers impacted

No response

Link

No response

Logs

Failed to write manifest file.Error Domain=NSCocoaErrorDomain Code=640 "You can’t save the file “manifest.json” because the volume “User” is out of space." UserInfo={NSURL=file:///var/mobile/Containers/Data/Application/...

Severity

Affecting users

Workaround/Solution

To follow up on optimizely/javascript-sdk#952, it's better to move the storage implementation outside of the optimizely SDK so that we can use other solutions that have better performance and reliablity overall.

Recent Change

No response

Conflicts

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions