-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Properly update retry_last_ts when hitting the maximum retry interval #16156
Conversation
Basically the problem is that if the retry ts is older than 8 days, but the retry interval is already 7 days, we would never update the last retry. This solution might cause a few too many writes, but those should only happen if we retry for other reasons, I hope? |
Actually, converting this to a draft, since this does not work, if the retry interval in the db is bigger than the new max retry interval and the server never was online in between... |
8f045f8
to
491a609
Compare
Okay, I think this works, but there where clauses confuses me :D |
This was broken in 1.87 when the maximum retry interval got changed from almost infinite to a week (and made configurable). fixes matrix-org#16101 Signed-off-by: Nicolas Werner <[email protected]>
491a609
to
42b3d91
Compare
I added a test, and change the fix for something looking more legit to me, since I had trouble understanding exactly how your fix was working @deepbluev7. |
Ah, didn't spot that the fix has changed. I think the current fix does work, but equally for clarity I think we should add a clause to the upsert to ensure that we do update the |
This was broken in 1.87 when the maximum retry interval got changed from almost infinite to a week (and made configurable).
fixes #16101
Pull Request Checklist
EventStore
toEventWorkerStore
.".code blocks
.(run the linters)