Skip to content

fix: stabilize 2PC, idempotency hits, and mock bank integration#13

Merged
chatterjee-sid merged 1 commit into
mainfrom
fix/stabilize-2pc-idempotency
Apr 22, 2026
Merged

fix: stabilize 2PC, idempotency hits, and mock bank integration#13
chatterjee-sid merged 1 commit into
mainfrom
fix/stabilize-2pc-idempotency

Conversation

@MananVelani

Copy link
Copy Markdown
Owner
  • placeholder/main.go: add /charge route (workers POST to /charge, not /v1/payments)
  • placeholder/main.go: return SUCCESS status so workers mark bank calls as successful
  • payment-log/store.go: add PREPARED state validation before COMMIT/ROLLBACK
  • proto/worker/worker.pb.go: add IdempotencyKey field + GetIdempotencyKey() to TaskResult
  • coordinator/main.go: fix InFlight map to key by TaskId (was WorkerId)
  • coordinator/main.go: retrieve idempotency key from InFlight before WriteResult to C4
  • worker/internal/service/worker_impl.go: include IdempotencyKey in outbox TaskResult
  • worker/internal/transport/grpc/client_c2.go: pass IdempotencyKey in ReportResult
  • monitor/scraper/scraper.go: flexible prefix/substring metric label matching for tasks/min
  • monitor/dashboard/static/index.html: frontend connected to backend WebSocket pipeline
  • docker-compose.yml: updated service configs and environment variables

- placeholder/main.go: add /charge route (workers POST to /charge, not /v1/payments)
- placeholder/main.go: return SUCCESS status so workers mark bank calls as successful
- payment-log/store.go: add PREPARED state validation before COMMIT/ROLLBACK
- proto/worker/worker.pb.go: add IdempotencyKey field + GetIdempotencyKey() to TaskResult
- coordinator/main.go: fix InFlight map to key by TaskId (was WorkerId)
- coordinator/main.go: retrieve idempotency key from InFlight before WriteResult to C4
- worker/internal/service/worker_impl.go: include IdempotencyKey in outbox TaskResult
- worker/internal/transport/grpc/client_c2.go: pass IdempotencyKey in ReportResult
- monitor/scraper/scraper.go: flexible prefix/substring metric label matching for tasks/min
- monitor/dashboard/static/index.html: frontend connected to backend WebSocket pipeline
- docker-compose.yml: updated service configs and environment variables
@chatterjee-sid chatterjee-sid merged commit c63b764 into main Apr 22, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants