This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns customer-bank.core | |
(:require | |
[clojure.core.async :as async :refer [go timeout close! put! chan <! >!! go-loop]]) | |
(:gen-class)) | |
(defrecord TransactionLog [action account-number data]) | |
(defn add-to-bank-account [bank-balance deposit-amount] | |
(let [new-balance (+ bank-balance deposit-amount)] | |
(prn new-balance) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- depending on how far through the migration you progressed, parts of this may fail | |
-- this assumes you're using the default name of "OpsCenter" for the opscenter keyspace, otherwise | |
-- you'll have to rename the "OpsCenter" part. | |
-- in between each step wait a few minutes, you need to wait for the migrations to propagate around the cluster | |
-- 5 mins should be more than enough | |
-- If you don't wait, CQLSH can report success but in reality, it may fail | |
ALTER TABLE "OpsCenter"."events" ADD message text; | |
ALTER TABLE "OpsCenter"."events" ADD column_family text; | |
ALTER TABLE "OpsCenter"."events" ADD target_node text; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If opsc created these backups, there should be no problem, if the customer did something manual, then there is a problem. | |
This file will be found in a directory structure that looks something like this | |
/phil-lwc/snapshots/63c75f99-17e1-4b18-b4c7-43b474940192/opscenter_adhoc_2014-12-17-20-22-57-UTC/backup.json | |
| | | | |
bucket name | snapshot name | |
cassandra host id unique to each node | |
{ | |
"checksums": { | |
"OpsCenter-events-jb-1-CompressionInfo.db": "3748e83735796d180be2592e46cebf14", |