Skip to content

v0.1.1

Choose a tag to compare

@Kryst4lskyxx Kryst4lskyxx released this 18 Jun 03:38
· 2 commits to main since this release
a516d6a

Wrapper fixes from a real chproxy-fronted production debugging session, plus docs for the proxy/fleet realities it surfaced. No methodology changes.

Fixed

  • chq.sh passed settings in the POST body, parsed as raw SQL → Code: 62 ... Syntax error at position 29 (&). Settings now ride in the URL via curl -G.
  • readonly=1 was sent unconditionally, rejected by read-only accounts → Code: 164 ... Cannot modify 'readonly' setting in readonly mode. Now opt-in via CH_READONLY.
  • result_overflow_mode=break collided with the query cacheCode: 731. Wrapper now always sends use_query_cache=0.
  • Arg parsing assumed a TTY ([ -t 0 ]), ignoring the SQL arg under the Bash tool → Code: 62 ... Empty query. Now prefers $1/-f, falls back to stdin.

Added

  • Heavy-read override path + clusterAllReplicas() fan-out caution (Code: 307).
  • "Single node vs. proxy-fronted fleet" guidance (clusterAllReplicas() + hostName()).
  • Metric-name discovery via __name__ regex instead of dumping the label catalog.

Full changelog: https://github.com/Kryst4lskyxx/clickhouse-debug-skills/blob/main/CHANGELOG.md