fix(preview): Handle unique constraints violation exception - #61950
Conversation
|
/backport to stable34 |
|
I don't think the recovery path works as written, worth review in case I'm missing a key info here.
So the exact race this PR targets would still crash, just with a different exception than before. |
b373378 to
8785794
Compare
Delete the preview from storage and fetch the actual one from the DB. This should not happen often. Signed-off-by: Carl Schwan <carlschwan@kde.org>
8785794 to
7629df9
Compare
|
Hey @CarlSchwan still seeing this on NC 34.0.2 do need to open a new request? or will it be on NC34.0.3 |
It will be in NC34.0.3 |
|
Thanks @artonge really appreciate your feedback :) |
Summary
Delete the preview from storage and fetch the actual one from the DB. This should not happen often.
TODO
Checklist
3. to review, feature component)stable32)AI (if applicable)