Closed nathansobo closed 5 years ago
@as-cii pointed out that we need to take measures to deal with duplicate buffer operations. I had forgotten about that, so let me follow up.
Okay, that was pretty easy. Just waiting on a green build and I will publish a patch version.
Published as 0.1.8.
After reloading a web page or performing a similar refresh in other situations, we may need to populate a
WorkTree
from a set of operations that includes operations produced by the same user that is performing the refresh. Previously, we had only tested applying operations produced by other replicas, and this wasn't working.This PR also makes some adjustments to gracefully handle applying the same operations multiple times to paper over race conditions when subscribing to new operations and fetching existing operations.
This PR adds coverage for both of these scenarios to our randomized tests.
/cc @probablycorey