Skip to content
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

fix: avoid flushing KV store when worker fails #91

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

Angelmmiguel
Copy link
Contributor

Now, the wasm_handler stores the WasmOutput result and a boolean to confirm if this is the default value or it was generated by the worker. The boolean will determine if the kv store is overwritten or not.

Note this not solves the issue of concurrent requests writting the KV store. This will be managed in a separate store as we may modify the way we're setting and getting data from the KV store and its persistence after v1.0.0.

It closes #54

@Angelmmiguel Angelmmiguel added this to the v1.0.0 milestone Feb 13, 2023
@Angelmmiguel Angelmmiguel requested a review from a team February 13, 2023 13:05
@Angelmmiguel Angelmmiguel self-assigned this Feb 13, 2023
@Angelmmiguel Angelmmiguel merged commit 7c95a92 into main Feb 14, 2023
@Angelmmiguel Angelmmiguel deleted the 54-avoid-flushing-kv-store-when-failing branch May 8, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The KV data is flushed when a module fails to process a request
3 participants