Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

Merge branch 'main' into fix/corpus-resume-honesty

xerj-org931f82eca348
diff --cc CHANGELOG.md
index 80a33c4c4,121e5b2e8..41bd50291
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -9,16 -9,30 +9,40 @@@ and this project adheres to [Semantic V
### Fixed
+ - **Cluster endpoints fabricated topology** (issue
+ [#1169](https://github.com/xerj-org/xerj/issues/1169)) —
+ `GET /_cluster/health?wait_for_nodes=N` echoed `N` back as
+ `number_of_nodes` with `status: green` and `timed_out: false`, so the
+ multinode smoke suite "converged" on a single node that had no cluster
+ at all (the handler comment said so out loud). Health now reports the
+ real configured membership (`1` when cluster mode is off, else the
+ distinct own + peer addresses), an unsatisfiable `wait_for_nodes` times
+ out honestly (408, `timed_out: true`, count stays real), and upper
+ bounds (`<=N`, `<N`, `le(N)`) are enforced instead of collapsed to
+ "always satisfied". `_cat/nodes` lists every configured member (peers
+ with `-` placeholders, no invented metrics), `_nodes` totals the
+ membership while `successful: 1` reflects that only self answered, and
+ `_cluster/state` reports this node's actual cluster address instead of
+ the never-bound 9300 default and `master_node: null` on a configured
+ ring rather than every node claiming mastership. The multinode smoke
+ case now **skips with a recorded reason** instead of passing vacuously;
+ `cluster.health/20_request_timeout` passes through the real timeout
+ path. Cluster config that could only fail silently is refused at load
+ (issue [#1171](https://github.com/xerj-org/xerj/issues/1171)): a peer
+ label differing from its address (which made the node lose every
+ election with no diagnostic of its own) and `cluster.port` colliding
+ with this node's own rest/grpc/es_compat port (which degraded the node
+ to single-node with green health).
+- **`xerj corpus index` reported a converged state as a failure and an
+ uncountable node as "no new records"** (issue
+ [#1173](https://github.com/xerj-org/xerj/issues/1173)) — the resume
+ cleanup's `_delete_by_query` against an index a namespace swap had already
+ retired answered 404 and killed the run (a missing index cannot hold the
+ stale documents the cleanup exists to remove); 404 is now the answer
+ "deleted nothing", the same rule `_count` and `_cat/indices` already
+ follow. And when a failed run's before/after counts could not be read from
+ the node, the tool asserted "wrote no new records" — that claim now
+ requires both counts to be known; an unreadable count prints UNKNOWN.
## [1.0.0-rc.83] - 2026-10-06