---
title: "Cancellation Succeeded but Local State Stale"
description: "Provider cancellation başarılı olduğu halde local booking state güncellenmediğinde webhook, persistence, ordering ve reconciliation katmanlarını teşhis edin."
slug: "cancellation-local-state-stale-troubleshooting"
translationKey: "troubleshooting-cancellation-local-state-stale"
locale: "tr"
type: "troubleshooting"
category: "troubleshooting"
tags: ["cancellation","stale-state","webhook","reconciliation","booking"]
publishedAt: "2026-09-27"
updatedAt: "2026-09-27"
reviewedAt: "2026-09-27"
technicalVerifiedAt: "2026-09-27"
codeExampleStatus: "illustrative"
---

Provider cancellation başarılıyken local booking hâlâ CONFIRMED görünüyorsa problem cancellation'dan çok **state propagation ve evidence processing** katmanındadır.

## Symptom

- provider booking cancelled,
- local UI confirmed gösteriyor,
- refund/cancel akışı tetiklenmiyor,
- webhook veya reconcile sonucu local state'e yansımamış.

## Possible causes

- cancellation response persist edilmedi,
- webhook kayboldu,
- stale event yeni state'i overwrite etti,
- optimistic concurrency update kaybetti,
- event işlendi ama materialized view güncellenmedi.

## Diagnosis

1. Cancellation attempt sonucunu bulun.
2. Provider retrieve ile authoritative state'i doğrulayın.
3. Event store ve materialized booking state'i karşılaştırın.
4. Webhook delivery/queue/DLQ kontrol edin.
5. Version conflict veya failed DB write var mı inceleyin.
6. Refund/payment flow cancellation state'e bağlı mı kontrol edin.

## Recovery

Authoritative provider state CANCELLED ise local state'i reconciliation evidence ile düzeltin. Event history'yi silmeyin; neden stale kaldığını ayrıca işaretleyin.

## Prevention

- transactional outbox,
- versioned state updates,
- webhook fallback reconciliation,
- stale-state detector,
- event/materialized-state consistency check.

## Observability

- provider/local state drift,
- cancelled-but-local-confirmed count,
- state propagation latency,
- reconciliation repair count,
- failed materialization updates.
