EventStore icon indicating copy to clipboard operation
EventStore copied to clipboard

Persistent Subscription stopped at last checkpoint

Open StevenBlair123 opened this issue 4 years ago • 8 comments

Describe the bug Persistent subscription Checkpoint is 950052 and Known is 1032562 Tried reconnecting Persistent Subscription, and it will not process any events.

Digging around, I can see the source stream is being written to (i.e. Known is going up)

The Checkpoint stream has this:

"950052"

Look at the source stream, I can see scavenged data. My guess is this is related to the problem:

I will probably write a new Checkpoint record to try and skip past this, but assuming the Evenstore should be able to handle this situation.

EventStore details

  • EventStore server version: 21.10.1.0

DB-297

StevenBlair123 avatar Mar 08 '22 15:03 StevenBlair123

Happened again, but noticed if I hit Replay Parked Message, it seems to wake up and start processing again. Not sure if that helps. We going to look at writing a process which checks all the persistent subscriptions and replays the parked queue each night to prevent our data being late.

StevenBlair123 avatar Mar 15 '22 09:03 StevenBlair123

@StevenBlair123 are there actually parked messages when you hit the replay parked messaage or is it empty ?

ylorph avatar Apr 11 '22 08:04 ylorph

@ylorph - there were parked messages on all occassions (it's happened a few more times)

StevenBlair123 avatar Apr 12 '22 18:04 StevenBlair123

Can we try to see what happens if there are not parked messages? I know this can be a bit tricky to deliberately run into but I am curious what the behaviour would be.

gregoryyoung avatar Apr 12 '22 18:04 gregoryyoung

When (if) the problem happens again, I will check each persistent subscriptions parked queue and report back.

StevenBlair123 avatar Apr 12 '22 19:04 StevenBlair123

Right, it's happened again:

image

The last checkpoint written looks like this:

image

Parked queue does have message (last written to on 6th April 2022 14:12:30)

Included the stream the persistent subscription reads from (no truncated events)

image

I am almost certain when I hit Replay Parked, this will magically fix itself, however, I can keep this in this state for a short time (before customer notices) if you need any more information.

StevenBlair123 avatar Apr 14 '22 12:04 StevenBlair123

Anything in logs?

gregoryyoung avatar Apr 14 '22 12:04 gregoryyoung

log20220404.zip

here are all the log files. Couple of projections which had faulted (but were successfully restarted)

StevenBlair123 avatar Apr 14 '22 12:04 StevenBlair123