-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in readFully
method from client-utils
: Rejected promise with missing vStorage data
#10574
Comments
cc: @Chris-Hibbert |
I can't tell whether you're attributing the cause of this problem to #10566. Are you saying that it worked before? (i.e. Are you saying "Even after the changes…" or "Because of the changes…") |
I am saying "Even after the changes…". |
I hope we can migrate toward something like readHistory that provides an async iterator. If the tail end of the iterator is flaky, at least the iterations before that are useful. |
Following @dckc's suggestion, I replaced the use of However, during further testing, I noticed inconsistent behavior in the context of the a3p-integration acceptance tests. Specifically, when readHistory is used after the execution of both
I am unsure whether this behavior is expected or documented. |
State-sync prunes history so it's expected that not all the history would be available after state-sync. The "Internal Server Error" is a surprise, but out of scope. For your purposes I think you'll just need do any tests depending on history before the state-sync test. |
Thank you for the feedback @turadg |
I don't remember what the genesis test does, but it might similarly affect availability of historical data. |
Describe the bug
After the changes introduced to the
client-utils
package in PR #10566, thereadFully
method from the Agoric client-utils package fails when attempting to read a vstorage node. Instead of returning the expected value, it produces a rejected promise with the following error message:To Reproduce
Steps to reproduce the behavior:
Expected behavior
The readFully method should correctly return the values stored in a specific node, recorded after a given block height.
Platform Environment
OS: macOS Sequoia v15.0.1
Node.js: v20.9.0
Agoric-SDK: agoric-upgrade-16av-1172-g3de052bbe8
The text was updated successfully, but these errors were encountered: