Hello,
I am trying to migrate to v5.0.2 (from 4.1.1 backup). Everything sounds great at first, $by_correlation_id projection starts.
But at 83.8%, the projection is stuck but still marked as running without error (in the UI).
In the log, when it reaches this point, I notice :
- lots of VERY SLOW QUEUE MSG on ReadAllEventsForward (with 17/18s response time)
- lots of “Read All Stream Events Forward operation has expired” at the position the projection is blocked
- lots of “Read Stream Events Forward operation has expired” on $users-password-notifications
- lots of “Read Stream Events Backward operation has expired” on $scavenges
- without any connection on the ES, so can only be internal processing (ReadAll make me think it can be projection processing)
- the UI became mostly unresponsive.
If I stop the $by_correlation_id projection, no more VERY SLOW QUEUE MSG, eveything come back to normal.
I tried it on several computers (the best one have with 12 logical cores, 16Go RAM, SSD), several times, each time stopping at the same point where the projection is stuck (C:129373076598/P:129372351362). Note I also tried an index rebuilding, it just changed a bit the stuck position (C:129373076532/P:129372352150).
Here is in extract of the logs (repeating):
[25940,33,07:59:00.629] Read Stream Events Forward operation has expired for Stream: “$users-password-notifications”, From Event Number: 5, Max Count: 20. Operation Expired at 28/08/2019 07:58:56
[25940,33,07:59:00.629] Read All Stream Events Forward operation has expired for C:129373076532/P:129372352150. Operation Expired at 28/08/2019 07:58:58
[25940,06,07:59:12.635] Timeout reading stream: “$users-password-notifications”. Trying again in 10 seconds.
[25940,32,07:59:13.466] SLOW QUEUE MSG [“StorageReaderQueue #3”]: “ReadAllEventsForward” - 15072ms. Q: 0/3.
[25940,32,07:59:13.466] —!!! VERY SLOW QUEUE MSG [“StorageReaderQueue #3”]: “ReadAllEventsForward” - 15072ms. Q: 0/3.
[25940,32,07:59:13.466] Read Stream Events Forward operation has expired for Stream: “$users-password-notifications”, From Event Number: 5, Max Count: 100. Operation Expired at 28/08/2019 07:59:12
[25940,32,07:59:30.345] SLOW QUEUE MSG [“StorageReaderQueue #3”]: “ReadAllEventsForward” - 16879ms. Q: 0/5.
[25940,32,07:59:30.345] —!!! VERY SLOW QUEUE MSG [“StorageReaderQueue #3”]: “ReadAllEventsForward” - 16879ms. Q: 0/5.
[25940,32,07:59:30.345] Read Stream Events Backward operation has expired for Stream: “$scavenges”, From Event Number: -1, Max Count: 1. Operation Expired at 28/08/2019 07:59:23
[25940,32,07:59:30.345] Read All Stream Events Forward operation has expired for C:154482221397/P:0. Operation Expired at 28/08/2019 07:59:26
Does anyone have an idea what is happening ? Does the support could help on this (we have to subscribe…time passing) ?
Regards
Clément