Error code

CONFLICT

Conflict

  • HTTP status409
  • Classdomain
  • Severitywarning
  • Retryableno

Conflict

Generic 409 — the operation cannot be applied because of the current state (duplicate key, version mismatch, state machine collision).

Common causes

  • Race between two writers.
  • Optimistic-lock version stale.
  • Trying to transition a state that already moved.

What to do

Re-fetch the current state, then retry. If a duplicate is benign, switch to upsert.

התנגשות

409 כללי — הפעולה אינה ישימה במצב הנוכחי (מפתח כפול, אי־התאמת גרסאות, התנגשות מכונת מצבים).

סיבות נפוצות

  • Race בין שני כותבים.
  • גרסת optimistic-lock מיושנת.
  • מעבר מצב למצב שכבר השתנה.

פעולה מומלצת

משכו מחדש את המצב הנוכחי ונסו שוב. אם הכפל לגיטימי — עברו ל־upsert.