Dynamic PricingClickHouse Workshops

Recovery and diagnostics

Recover an interrupted analytical exercise without hiding its evidence.

Your computer
macOS terminal: Run workshop commands in Terminal using zsh or bash.

Historical import

Keep the writer stopped. Check staged row totals before rerunning a manual INSERT; a second insert duplicates facts. retail-register-history verifies an existing manual load. retail-import resumes its verified staged import. A fresh stack is available through the owned destroy/recreate flow in Module 00.

Aggregates

Keep ingestion stopped during backfill and registration. retail-register-rollup checks manually built schemas and populated table metadata by default. The learner compares a representative raw/aggregate result separately. Use --full-check before starting live sales only when exhaustive grouped-data parity is needed; it scans the dataset and can take several minutes. Do not backfill a populated table again. Compare raw and merged states at identical cutoffs before drawing performance conclusions.

Writer and CDC

Check the separate writer terminal, container status, and the latest source batch state. Missing payloads, partial inserts, or expired deduplication windows hold the run rather than retrying blindly. Preserve the durable spool. Use the delivery reconciliation and stopped-writer aggregate repair routines with the recorded batch IDs; never substitute an unverified retry or OPTIMIZE FINAL.

A ClickPipe marked Running does not prove a selected revision is visible. Inspect the relevant version, acknowledgement, event count and completed boundary. The first opportunity window requires 15 business minutes. Resuming a paused UI control does not start a missing writer process.

Approval and outcomes

Refresh changed evidence and review again. Reuse the same approval request when recovering an ambiguous acknowledgement; a new independent request is a different decision. Query receipt-scoped observed events. Missing CDC receipts can delay the chart without undoing a committed application.

Managed agent

Verify the actual connection and limits. An unused SQL role provides no protection. A missing agent capability or failed query is incomplete evidence, not a successful replay. Preserve the failed tool result and continue the SQL exercise manually while resolving access.

Windows

Use Ubuntu WSL2, a checkout under /home/, and Docker Desktop WSL integration. Native PowerShell is for WSL installation only. A bash\r error indicates CRLF script line endings; restore LF and keep core.autocrlf=input in the Linux checkout.

If a command reports "not recognized" in PowerShell, open Ubuntu and run the Bash command there. Check uname -s reports Linux and Docker shows both Client and Server.

If Docker runs out of memory, inspect %UserProfile%/.wslconfig from Windows. Allocate memory to WSL while leaving enough for the host. Run wsl --shutdown in PowerShell after changing that file, then restart Ubuntu and Docker Desktop.

All products show no_stock

Check stock across the selected district rather than just the first ten rows. A legacy continuous high-rate writer can deplete inventory. Stop that writer; retail-initialize --new-run creates a fresh stocked run without reloading history or rebuilding aggregates. Use the Module 02 command with its bounded two-minute burst and 10,000/minute continuing rate. The ordinary initializer is idempotent and does not replenish an existing run. Avoid changing inventory directly in ClickHouse: operational stock and versioned inventory records originate in Managed Postgres and arrive through CDC.

Trên trang này

VI