T-190: M2.3q — tools/curate-etl: send-ilp CLI command wiring discover_ilp_shard_files + tcp_ilp_connector + send_ilp_shard_files into cli.rs + main.rs with parser tests and a loopback TcpListener end-to-end test (explicit --addr, no default target, no new crates, no bench changes, no live QuestDB)
This commit is contained in:
parent
e9fbea3dda
commit
b1f2c3bd0c
1 changed files with 2 additions and 2 deletions
|
|
@ -1757,10 +1757,10 @@ CLI command wiring `discover_ilp_shard_files`, `tcp_ilp_connector`, and `send_il
|
|||
curate-etl send-ilp \
|
||||
--dir ./out \
|
||||
--prefix bars_1m \
|
||||
--addr 127.0.0.1:9009
|
||||
--addr <approved-questdb-host:ilp-port>
|
||||
```
|
||||
|
||||
- **Required flags (no default target):** `--dir <published-shard-dir>`, `--prefix <bars_1m|bars_1m_qm|fx_1m>`, and `--addr <host:port>` are all required (accepting both `--flag value` and `--flag=value`). There is **no default address and no environment-variable fallback**, so QA QuestDB is never targeted by accident.
|
||||
- **Required flags (no default target):** `--dir <published-shard-dir>`, `--prefix <bars_1m|bars_1m_qm|fx_1m>`, and `--addr <host:port>` are all required (accepting both `--flag value` and `--flag=value`). There is **no default address and no environment-variable fallback**, which prevents implicit targeting; operators must explicitly supply and verify an approved endpoint so QA QuestDB is not targeted by mistake.
|
||||
- **Allowed prefixes:** restricted to `bars_1m` (`curate-bars-1m`), `bars_1m_qm` (`run_curate_qm_bars_1m`), and `fx_1m` (`curate-fx-1m`).
|
||||
- **Fail-closed order & reporting:** validates and discovers the contiguous `0..N` shard set in `--dir` before resolving `--addr` or opening any socket; streams each shard verbatim over its own TCP socket using `IlpTcpOptions::default()` and `IlpSendOptions::default()`; prints `format_ilp_send_report` to stdout on exit `0`, or `error: ...` plus any formatted partial report (`per_shard_bytes`) to stderr on non-zero exit.
|
||||
- **Delivery & protocol caveats:** TCP ILP provides no per-row or per-batch server acknowledgement — exit `0` means all bytes were accepted by local sockets and write-half shutdown succeeded, **not** that rows were committed in QuestDB; verify committed row counts and representative values via PGWire after loading. QuestDB `10.2.0` acceptance of ILP v2 binary `DOUBLE` payloads over TCP without a handshake remains **unverified** until the manual `quant` load check.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue