Open callistino opened 6 years ago
Hello @callistino
Is this issue still topical ? I can't reproduce the case on 3.0
thanks for taking a look @Th3Mouk. I have some local changes made in the mean time but I'll go back and do a test from scratch again and post results. Just give me at least today.
I can't reproduce either on 2.3, I'm on 7.1 and I can't upgrade at the moment since we are going through a product launch. I'll be closing.
Further tests in prod revealed that this issue still exists in 2.x branch and posibly 3.x too. I've drilled down the issue to this line src/Rxnet/EventStore/EventStore.php:570
when it reads the last page. I've deleted the line and the issue doesn't happen. I don't want to assume anything about observables since I learn more about them everyday. The duplicates only happen on the last page.
I'm using a catchup subscription to read events and it works fine as long as it get's to the first "catchup" point. If I try to write more events while the catchup is running, that's when I see the issue AND the subscription completes too which is not what I thought it should do and please correct me if I'm wrong.
examples/write.php
script. I modified to only write 50 events. examples/catchup.php
script and let it finish....
received b1dc207b53a248bf86695708ea214872 98@domain-test.fr /foo/bar created at 2019-04-08T12:27:11+00:00
received e9b7d7787cec432793354761d003e371 99@domain-test.fr /foo/pub created at 2019-04-08T12:27:11+00:00
received 8d3bfe1900114f13baaf14ed0c528c06 0@domain-test.fr /foo/bar created at 2019-04-08T12:27:11+00:00
received 944d09670f3644108abe5b8fe10d9f78 1@domain-test.fr /foo/pub created at 2019-04-08T12:27:11+00:00
...
Like I mentioned before, I commented out this src/Rxnet/EventStore/EventStore.php:570
and all works fine. I don't know what other places this may break but I haven't seen an issue anywhere else.
This still doesn't fix the issue of the stopping subscription, I've had to add the script to supervisor in order to restart it.
FWIW I'm experiencing this as well
When reading from a stream with the client's
readEventsForward
I'm getting duplicates.With the following
examples/write5.php
example file:When you run:
If we then do a readAll we'll get 10 events back instead of 5: