Skip to content

Make the Solr result cache read-only by default - #143

Merged
Robbie1977 merged 1 commit into
mainfrom
cache-read-only-by-default
Nov 12, 2026
Merged

Robbie1977 merged 1 commit into
mainfrom
cache-read-only-by-default

Conversation

@Robbie1977

Copy link
Copy Markdown
Contributor

VFBquery now only writes, clears or purges cache entries when VFBQUERY_CACHE_READONLY=false, which the VFB-run service sets. Copies installed elsewhere still read the cache but no longer try to write to the public Solr hosts, which refuse updates.

  • purge_namespace, cleanup_expired_entries and the term-info/query-field backfill writers now honour read-only.
  • The performance workflow runs read-only on every event; the service warms the cache itself.
  • Tests that exercise writes set VFBQUERY_CACHE_READONLY=false explicitly; new tests cover the default.

Deploy note: the cluster deployment must set VFBQUERY_CACHE_READONLY=false first (vfb-k8s vfbquery-cache-writer).

VFBquery only writes, clears or purges cache entries when VFBQUERY_CACHE_READONLY=false, which the VFB-run service sets. Copies installed elsewhere no longer try to write to the public Solr hosts, which refuse updates. purge_namespace, cleanup_expired_entries and the term-info/query-field backfill writers now honour read-only too. The performance workflow runs read-only on every event.
@github-actions

Copy link
Copy Markdown

⚠️ 510 test(s) skipped — an upstream data source was unreachable

The full suite ran, but 510 test(s) were skipped because an upstream data source (VFB's Neo4j / SOLR / Owlery, or FlyBase's Chado) did not answer during this run.

These are not failures and not a problem with this branch — but those queries went unverified, so a green check here is an incomplete run.

To re-run: open this workflow run and click Re-run all jobs once the data sources are healthy (re-running the “Run completeness” check itself does nothing — it has no job behind it).

2 failed, 472 passed, 510 skipped, 77 warnings in 550.28s (0:09:10)

Posted automatically. This comment is removed once a run completes with zero skips.

@Robbie1977
Robbie1977 merged commit 0f56d1a into main Nov 12, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant