Skip to content

Instantly share code, notes, and snippets.

View maedhroz's full-sized avatar

Caleb Rackliffe maedhroz

View GitHub Profile
@maedhroz
maedhroz / mt-preview-repair.md
Last active October 20, 2026 03:23
Preview Repair Support for Tracked Keyspaces

Preview Repair Support for Tracked Keyspaces

Goal and scope

Give nodetool repair --validate a real implementation for tracked keyspaces: validate already-reconciled data across replicas and confirm it's identical everywhere. Reject the operation if the keyspace isn't fully migrated to mutation tracking, or if the cluster's topology changes mid-run. ALL and UNREPAIRED previews on tracked keyspaces are out of scope here.

Operator-facing interface

Same as classic REPAIRED preview:

@maedhroz
maedhroz / cassandra-15452-20551.md
Created June 9, 2026 04:36
C-15452 and C-20551 summary

CASSANDRA-15452 + CASSANDRA-20551: Read-Ahead Buffer for Compressed SSTable Scans


CASSANDRA-15452: Read-Ahead Buffer for Compressed SSTable Scans

1. Executive Summary

Introduces a thread-local read-ahead buffer for sequential scan workloads (compaction, range queries) over compressed SSTables. The existing path issued one channel.read() syscall per compressed chunk (~64 KiB); by pre-reading 256 KiB at a time and serving subsequent chunk reads from that in-process buffer, the patch cuts syscall count ~4× for sequential scans without touching the random-access path.

@maedhroz
maedhroz / go_brew_zsh
Created May 6, 2014 21:34
Get Brew to Play Nicely w/ Go
GOVERSION=$(brew list go | head -n 1 | cut -d '/' -f 6)
export GOROOT=$(brew --prefix)/Cellar/go/$GOVERSION/libexec
export GOPATH=/Users/[user]/go
@maedhroz
maedhroz / hub_apply_pr_from_private
Created May 6, 2014 21:23
Apply Pull Request from Private Repo w/ Hub
brew install hub
...then in ~/.gitconfig...
[alias]
# public repo
cpr = "!f() { curl https://github.com/cqlengine/cqlengine/pull/${1}.patch | git apply -3 - ; }; f "
# private repo
spr = "!f() { hub apply -3 https://github.com/[your org]/[your project]/pull/${1} ; }; f "