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

Consistency changes/fixes for ISyncContext.Version #282

Merged
merged 1 commit into from
Mar 11, 2021
Merged

Conversation

bartelink
Copy link
Collaborator

This addresses a problem at two levels:

  • Equinox.Cosmos v 2.5.0 can return a Version of 0 when re-reading a stream that
    a) uses AccessStrategy.Unoptimized
    b) uses a cache
  • the Version field was defined in an ambiguous manner, indicating it was a store-native version field
    a) That doesn't make sense for an interface in the Equinox package
    b) There's a reasonable general way to express it in a neutral way

The fix consists of:

  • a doc change for the property
  • patching the bug in the corner case that caused the actual issue (will follow up with a V3 edition of this shortly - its likely that the events in Tip impl removed the issue on that side)
  • changing the impl of the SSS, ESDB and MemoryStore stores to match the new definition

@bartelink bartelink force-pushed the version-fixes branch 2 times, most recently from a8a3fa5 to debcef7 Compare March 11, 2021 18:19
@bartelink bartelink merged commit 2d6bfe0 into v2 Mar 11, 2021
@bartelink bartelink deleted the version-fixes branch March 11, 2021 23:01
bartelink added a commit that referenced this pull request Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant