You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
comments: surface a conflict when a reply loses a create race with different text #346
Gaia will answer the loser of two concurrent PUTs that create the same topic, comment or complication with 409 instead of a raw unique-violation error (novem-code/gaia#8065).
The reply helper (novem/comments.py:655) treats any 409 as "exists, update it" and POSTs its own text, so the loser of a race overwrites the winner. Overwriting is right when the caller is retrying its own write, but not when the existing content differs. Compare before POSTing, or raise a conflict error the caller can handle.
Activity