-
Notifications
You must be signed in to change notification settings - Fork 37
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
SubscribeToStreamAsync will start with the next event after a given position #80
Comments
Following @thefringeninja advice, the workaround for reading from the start is to use the overload without the position. It indeed starts from the beginning of the stream. |
Updated the description. |
We have experienced this issue as well. Since we needed to also use a starting position in some cases we had to use the parameterless overload when a starting point is not specified and subtract 1 and use the bugged overload otherwise. Needless to say, we would appreciate if this bug is fixed soon as it's a fundamental problem in gRPC client. |
This is by design - subscribing is an exclusive operation. If you have no checkpoint, please user the overload that does not take a |
I don't think off-by-one errors are by design and the behavior is different than the old TCP client. |
This is extremely confusing and should be properly documented. Wuth the concept of start as a position is natural to think the start of the stream is the event number 0, not whatever the underlying limitation of the implementation of the event store.
Is way more natural just do
|
this has been fixed in version 22.0.0 of the client, |
Describe the bug
SubscribeToStreamAsync with StreamPosition.Start will start from the second event in the stream
When subscribing from
StreamPosition.Start
, the first event delivered toeventAppeared
will be the second event in the stream.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Subscription delivers all events when using
StreamPosition.Start
.Actual behavior
Subscription starts with the second event in the stream.
EventStore details
EventStore server version: 20.6.1
Operating system: macOS
EventStore client version (if applicable): 20.6.1
Additional context
https://github.com/alexeyzimarev/EsdbSubscriptionBug
The text was updated successfully, but these errors were encountered: