nassh: restoring large backups runs into quota limits |
||
Issue description
create like 30 connections, save the backup, then attempt to restore it. doing so runs into:
nassh_preferences_editor.html:1
Unchecked runtime.lastError while running storage.set: This request exceeds the MAX_WRITE_OPERATIONS_PER_MINUTE quota.
at lib.Storage.Chrome.setItem (.../js/nassh_deps.concat.js:3022:17)
at nassh.PreferenceManager.lib.PreferenceManager.set (.../js/nassh_deps.concat.js:2696:18)
at nassh.PreferenceManager.lib.PreferenceManager.createChild (.../js/nassh_deps.concat.js:2399:8)
at nassh.PreferenceManager.lib.PreferenceManager.importFromJson (.../js/nassh_deps.concat.js:2767:35)
at Object.nassh.importPreferences (.../js/nassh.js:173:14)
at FileReader.reader.onloadend (.../js/nassh_preferences_editor.js:177:13)
,
Sep 21 2017
should be fixed in libdot-1.19+ and nassh-0.8.38+
,
Dec 20 2017
The following revision refers to this bug: https://chromium.googlesource.com/apps/libapps/+/c4ec8bd5fbdb5ffc36dfe8303b855ac944d96efb commit c4ec8bd5fbdb5ffc36dfe8303b855ac944d96efb Author: Mike Frysinger <vapier@chromium.org> Date: Wed Dec 20 22:42:38 2017 libdot: fix storage write callbacks with shallow prefs While extending the storage write API to work with callbacks, importing shallow backups (no children prefs set) broke. The set helper function doesn't have a callback (even though we tried to pass it one), so pull that back out and make the final call ourselves in this scenario. BUG= chromium:764759 Change-Id: Ie6d38668d1f4ad3db0806d2a83742ec28b1cc9a7 Reviewed-on: https://chromium-review.googlesource.com/828396 Reviewed-by: Brandon Gilmore <varz@google.com> Tested-by: Mike Frysinger <vapier@chromium.org> [modify] https://crrev.com/c4ec8bd5fbdb5ffc36dfe8303b855ac944d96efb/libdot/js/lib_preference_manager.js
,
Nov 20
The following revision refers to this bug: https://chromium.googlesource.com/apps/libapps/+/6f8bccb14faf428cbb09677f87946937cf264de4 commit 6f8bccb14faf428cbb09677f87946937cf264de4 Author: Mike Frysinger <vapier@chromium.org> Date: Tue Nov 20 16:48:27 2018 libdot: coalesce writes when importing json files When importing many children elements, we end up rewriting the array list many times and committing each update to storage. This in turn eats up our quota and cause use to overrun it when there are many active profiles. Change the json import logic so that we suppress the intermediate and do a single flush at the end. Bug: chromium:764759 Change-Id: I8fe0725ccfc006f2d269a88cb9bb4d672c4da929 Reviewed-on: https://chromium-review.googlesource.com/c/665670 Reviewed-by: Vitaliy Shipitsyn <vsh@google.com> Tested-by: Mike Frysinger <vapier@chromium.org> [modify] https://crrev.com/6f8bccb14faf428cbb09677f87946937cf264de4/libdot/js/lib_preference_manager.js |
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Sep 21 2017