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 remote-tracking branch 'origin/main' into fix/corpus-resume-honesty

xerj-org1d494c244ce8
diff --cc CHANGELOG.md
index 41bd50291,0b1e56946..c5630f2b6
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -33,16 -33,23 +33,34 @@@ and this project adheres to [Semantic V
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).
+ - **A degraded cluster boot was invisible after the first log line**
+ (issue [#1171](https://github.com/xerj-org/xerj/issues/1171), remaining
+ half) — a configured ring whose TCP transport failed to bind, or whose
+ cluster-state storage was unavailable, degraded to single-node with one
+ ERROR line at boot and then `status: green` forever on
+ `/_cluster/health`: the operator believed the node was clustered and
+ no API could say otherwise. The boot outcome is now recorded on the
+ application state (`ClusterTransportStatus`: Disabled / Running /
+ Degraded) before the first router exists, and health answers from it:
+ `status: yellow`, `number_of_nodes: 1` (the node actually serving —
+ counting the unreachable configured peers would be the same fabrication
+ #1169 removed), and an additive `xerj_cluster_transport: "degraded"`
+ marker that says *why* it is yellow, present exactly when true. Waits
+ stay honest from the degraded side too (`wait_for_nodes=2` of the one
+ serving node → 408 with the real count), and red still outranks the
+ degraded-yellow (an unopenable index remains the headline, with the
+ transport marker beside it).
+- **`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
++ [#1173](https://github.com/xerj-org/xerj/issues/1173), honesty half —
++ the crawl-throughput half stays open) — 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